Mercurial > emacs
diff lispref/tips.texi @ 65332:c2fb39cb93f0
(Programming Tips): Add conventions for minibuffer questions and prompts.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 04 Sep 2005 01:48:26 +0000 |
parents | d16e2016fc7d |
children | 77b6aaba307a a3716f7538f2 |
line wrap: on
line diff
--- a/lispref/tips.texi Sun Sep 04 01:37:17 2005 +0000 +++ b/lispref/tips.texi Sun Sep 04 01:48:26 2005 +0000 @@ -374,6 +374,20 @@ with a period. @item +A question asked in the minibuffer with @code{y-or-n-p} or +@code{yes-or-no-p} should start with a capital letter and end with +@samp{? }. + +@item +When you mention a default value in a minibuffer prompt, +put it and the word @samp{default} inside parentheses. +It should look like this: + +@example +Enter the answer: (default 42) +@end example + +@item In @code{interactive}, if you use a Lisp expression to produce a list of arguments, don't try to provide the ``correct'' default values for region or position arguments. Instead, provide @code{nil} for those