Mercurial > emacs
changeset 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 | 0ce8f4e050c2 |
children | 6d261c2eb3dd |
files | lispref/tips.texi |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
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