mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 03:40:56 -08:00
(Programming Tips): Add conventions for minibuffer questions and prompts.
This commit is contained in:
parent
0c6087a609
commit
f37e01634c
1 changed files with 14 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue