summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2005-09-04 01:48:26 +0000
committerRichard M. Stallman <rms@gnu.org>2005-09-04 01:48:26 +0000
commitf37e01634cc3ea6561fc031fd09912ed4b732820 (patch)
tree2188fcb813ca1e4125f15efcc357064df64eae70
parent0c6087a609a6042e3daea9d1fa27c140c992952c (diff)
downloademacs-f37e01634cc3ea6561fc031fd09912ed4b732820.tar.gz
(Programming Tips): Add conventions for minibuffer questions and prompts.
-rw-r--r--lispref/tips.texi14
1 files changed, 14 insertions, 0 deletions
diff --git a/lispref/tips.texi b/lispref/tips.texi
index 46eb887dce8..d651eb95f0e 100644
--- a/lispref/tips.texi
+++ b/lispref/tips.texi
@@ -374,6 +374,20 @@ 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
region or position arguments. Instead, provide @code{nil} for those