aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-11-29 15:12:50 +0000
committerRichard M. Stallman2002-11-29 15:12:50 +0000
commitb56f98ab9a4eb1d8801f669f1f45e5c162dd00b9 (patch)
tree067fe8e0741db36acf69437a34d689f321d0694c
parenta4e19cc2cbae505640275a61be78e01552bbd8a8 (diff)
downloademacs-b56f98ab9a4eb1d8801f669f1f45e5c162dd00b9.tar.gz
emacs-b56f98ab9a4eb1d8801f669f1f45e5c162dd00b9.zip
Explain about ordering of alternatives in `choice'.
-rw-r--r--lisp/ChangeLog21
-rw-r--r--lispref/customize.texi13
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 @@
12002-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
12002-11-29 Kim F. Storm <storm@cua.dk> 202002-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
2762002-11-16 Alan Shutko <ats@acm.org> 2952002-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
661a @code{const}, you should specify a valid default for that alternative 661a @code{const}, you should specify a valid default for that alternative
662using the @code{:value} keyword. @xref{Type Keywords}. 662using the @code{:value} keyword. @xref{Type Keywords}.
663 663
664If some values are covered by more than one of the alternatives,
665customize will choose the first alternative that the value fits. This
666means you should always list the most specific types first, and the
667most 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
674This way, the special value @code{nil} is not treated like other
675symbols, and symbols are not treated like other Lisp expressions.
676
664@item (radio @var{element-types}@dots{}) 677@item (radio @var{element-types}@dots{})
665This is similar to @code{choice}, except that the choices are displayed 678This is similar to @code{choice}, except that the choices are displayed
666using `radio buttons' rather than a menu. This has the advantage of 679using `radio buttons' rather than a menu. This has the advantage of