]> code.delx.au - gnu-emacs/commitdiff
(Programming Tips): Add conventions for minibuffer questions and prompts.
authorRichard M. Stallman <rms@gnu.org>
Sun, 4 Sep 2005 01:48:26 +0000 (01:48 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 4 Sep 2005 01:48:26 +0000 (01:48 +0000)
lispref/tips.texi

index 46eb887dce885f2cd8ff32725d57511ca1a53c93..d651eb95f0efeadedabb646316cba80676175c85 100644 (file)
@@ -373,6 +373,20 @@ or @code{beep} to report errors.
 An error message should start with a capital letter but should not end
 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