# HG changeset patch # User Richard M. Stallman # Date 1125798506 0 # Node ID c2fb39cb93f03b21937038a62234190f22b5088e # Parent 0ce8f4e050c26ce3479983fd4fadd74d68b8798d (Programming Tips): Add conventions for minibuffer questions and prompts. diff -r 0ce8f4e050c2 -r c2fb39cb93f0 lispref/tips.texi --- 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