diff options
Diffstat (limited to 'doc/lispref/control.texi')
| -rw-r--r-- | doc/lispref/control.texi | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi index 3f48c458c02..0cdb03548bf 100644 --- a/doc/lispref/control.texi +++ b/doc/lispref/control.texi | |||
| @@ -1100,10 +1100,13 @@ These examples show typical uses of @code{error}: | |||
| 1100 | error symbol @code{error}, and a list containing the string returned by | 1100 | error symbol @code{error}, and a list containing the string returned by |
| 1101 | @code{format-message}. | 1101 | @code{format-message}. |
| 1102 | 1102 | ||
| 1103 | In a format string containing single quotes, curved quotes @t{‘like | 1103 | The @code{text-quoting-style} variable controls what quotes are |
| 1104 | this’} and grave quotes @t{`like this'} work better than straight | 1104 | generated; @xref{Keys in Documentation}. A call using a format like |
| 1105 | quotes @t{'like this'}, as @code{error} typically formats every | 1105 | @t{"Missing `%s'"} with grave accents and apostrophes typically |
| 1106 | straight quote as a curved closing quote. | 1106 | generates a message like @t{"Missing ‘foo’"} with matching curved |
| 1107 | quotes. In contrast, a call using a format like @t{"Missing '%s'"} | ||
| 1108 | with only apostrophes typically generates a message like @t{"Missing | ||
| 1109 | ’foo’"} with only closing curved quotes, an unusual style in English. | ||
| 1107 | 1110 | ||
| 1108 | @strong{Warning:} If you want to use your own string as an error message | 1111 | @strong{Warning:} If you want to use your own string as an error message |
| 1109 | verbatim, don't just write @code{(error @var{string})}. If @var{string} | 1112 | verbatim, don't just write @code{(error @var{string})}. If @var{string} |