Improve coding conventions for error messages
* doc/lispref/tips.texi (Programming Tips): Clarify coding conventions for error messages to say that an error message can start with a Lisp symbol. (Bug#50658)
This commit is contained in:
parent
a5b8140d4e
commit
e9c7ef3348
1 changed files with 7 additions and 1 deletions
|
@ -393,7 +393,13 @@ Don't use @code{message}, @code{throw}, @code{sleep-for}, or
|
|||
|
||||
@item
|
||||
An error message should start with a capital letter but should not end
|
||||
with a period.
|
||||
with a period or other punctuation.
|
||||
|
||||
It is occasionally useful to tell the user where an error originated,
|
||||
even if @code{debug-on-error} is nil. In such cases, a lower-case
|
||||
Lisp symbol can be prepended to the error message. For example, the
|
||||
error message ``Invalid input'' could be extended to say
|
||||
``some-function: Invalid input''.
|
||||
|
||||
@item
|
||||
A question asked in the minibuffer with @code{yes-or-no-p} or
|
||||
|
|
Loading…
Add table
Reference in a new issue