mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-07 15:21:46 +00:00
(Programming Tips): Add conventions for minibuffer questions and prompts.
This commit is contained in:
parent
0c6087a609
commit
f37e01634c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user