From f37e01634cc3ea6561fc031fd09912ed4b732820 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 4 Sep 2005 01:48:26 +0000 Subject: [PATCH] (Programming Tips): Add conventions for minibuffer questions and prompts. --- lispref/tips.texi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lispref/tips.texi b/lispref/tips.texi index 46eb887dce8..d651eb95f0e 100644 --- a/lispref/tips.texi +++ b/lispref/tips.texi @@ -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 -- 2.39.2