diff options
| author | Richard M. Stallman | 2002-11-29 15:12:50 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-11-29 15:12:50 +0000 |
| commit | b56f98ab9a4eb1d8801f669f1f45e5c162dd00b9 (patch) | |
| tree | 067fe8e0741db36acf69437a34d689f321d0694c | |
| parent | a4e19cc2cbae505640275a61be78e01552bbd8a8 (diff) | |
| download | emacs-b56f98ab9a4eb1d8801f669f1f45e5c162dd00b9.tar.gz emacs-b56f98ab9a4eb1d8801f669f1f45e5c162dd00b9.zip | |
Explain about ordering of alternatives in `choice'.
| -rw-r--r-- | lisp/ChangeLog | 21 | ||||
| -rw-r--r-- | lispref/customize.texi | 13 |
2 files changed, 33 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 636f5ec8867..ead4b7580b2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,22 @@ | |||
| 1 | 2002-11-29 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * mail/rmail.el (rmail-convert-to-babyl-format): | ||
| 4 | Make search for message delimiter case-sensitive. | ||
| 5 | |||
| 6 | * simple.el (yank-window-start): New variable. | ||
| 7 | (yank): Record yank-window-start | ||
| 8 | (yank-pop): Use yank-window-start. | ||
| 9 | |||
| 10 | * info.el (Info-additional-directory-list): Doc fix. | ||
| 11 | |||
| 12 | * indent.el (indent-according-to-mode, indent-region): Doc fix. | ||
| 13 | |||
| 14 | * tooltip.el (tooltip-gud-tips-p): Doc fix. | ||
| 15 | |||
| 16 | * eshell/em-script.el: Require eshell. | ||
| 17 | |||
| 18 | * eshell/esh-ext.el, eshell/em-cmpl.el: Require esh-util. | ||
| 19 | |||
| 1 | 2002-11-29 Kim F. Storm <storm@cua.dk> | 20 | 2002-11-29 Kim F. Storm <storm@cua.dk> |
| 2 | 21 | ||
| 3 | * mwheel.el: Avoid accidental yanking of text while scrolling with | 22 | * mwheel.el: Avoid accidental yanking of text while scrolling with |
| @@ -273,7 +292,7 @@ | |||
| 273 | * emacs-lisp/autoload.el (update-autoloads-from-directories): | 292 | * emacs-lisp/autoload.el (update-autoloads-from-directories): |
| 274 | Sort the list of files with no autoloads. | 293 | Sort the list of files with no autoloads. |
| 275 | 294 | ||
| 276 | 2002-11-16 Alan Shutko <ats@acm.org> | 295 | 2002-11-16 Alan Shutko <Rats@acm.org> |
| 277 | 296 | ||
| 278 | * calendar/diary-lib.el (list-diary-entries): Pass a marker | 297 | * calendar/diary-lib.el (list-diary-entries): Pass a marker |
| 279 | indicating source of entry to add-to-diary-list. | 298 | indicating source of entry to add-to-diary-list. |
diff --git a/lispref/customize.texi b/lispref/customize.texi index 3f107b3fb00..1fee9f8d6dd 100644 --- a/lispref/customize.texi +++ b/lispref/customize.texi | |||
| @@ -661,6 +661,19 @@ In any alternative for which @code{nil} is not a valid value, other than | |||
| 661 | a @code{const}, you should specify a valid default for that alternative | 661 | a @code{const}, you should specify a valid default for that alternative |
| 662 | using the @code{:value} keyword. @xref{Type Keywords}. | 662 | using the @code{:value} keyword. @xref{Type Keywords}. |
| 663 | 663 | ||
| 664 | If some values are covered by more than one of the alternatives, | ||
| 665 | customize will choose the first alternative that the value fits. This | ||
| 666 | means you should always list the most specific types first, and the | ||
| 667 | most general last. Here's an example of proper usage: | ||
| 668 | |||
| 669 | @example | ||
| 670 | (choice (const :tag "Off" nil) symbol (sexp :tag "Other")) | ||
| 671 | @end example | ||
| 672 | |||
| 673 | @noindent | ||
| 674 | This way, the special value @code{nil} is not treated like other | ||
| 675 | symbols, and symbols are not treated like other Lisp expressions. | ||
| 676 | |||
| 664 | @item (radio @var{element-types}@dots{}) | 677 | @item (radio @var{element-types}@dots{}) |
| 665 | This is similar to @code{choice}, except that the choices are displayed | 678 | This is similar to @code{choice}, except that the choices are displayed |
| 666 | using `radio buttons' rather than a menu. This has the advantage of | 679 | using `radio buttons' rather than a menu. This has the advantage of |