diff options
| author | Eli Zaretskii | 2021-02-25 20:58:44 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2021-02-25 20:58:44 +0200 |
| commit | 6bf56a3614ccd23a31e34ae997b2a6bb0d158489 (patch) | |
| tree | 7b7ffb602c6afba5779e6d20164096de90e50e5c /src | |
| parent | 297c0e0306f111c1e7564b2bb49a7e1a925a55bb (diff) | |
| download | emacs-6bf56a3614ccd23a31e34ae997b2a6bb0d158489.tar.gz emacs-6bf56a3614ccd23a31e34ae997b2a6bb0d158489.zip | |
Fix documentation of a recent change
* src/fns.c (Fyes_or_no_p): Don't use braces around one-line
block.
(syms_of_fns) <use-short-answers>: Improve the wording of the doc
string.
* etc/NEWS: Improve wording of the entry about 'use-short-answers'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 12 |
1 files changed, 5 insertions, 7 deletions
| @@ -2874,9 +2874,7 @@ if `last-nonmenu-event' is nil, and `use-dialog-box' is non-nil. */) | |||
| 2874 | } | 2874 | } |
| 2875 | 2875 | ||
| 2876 | if (use_short_answers) | 2876 | if (use_short_answers) |
| 2877 | { | 2877 | return call1 (intern ("y-or-n-p"), prompt); |
| 2878 | return call1 (intern ("y-or-n-p"), prompt); | ||
| 2879 | } | ||
| 2880 | 2878 | ||
| 2881 | AUTO_STRING (yes_or_no, "(yes or no) "); | 2879 | AUTO_STRING (yes_or_no, "(yes or no) "); |
| 2882 | prompt = CALLN (Fconcat, prompt, yes_or_no); | 2880 | prompt = CALLN (Fconcat, prompt, yes_or_no); |
| @@ -5911,10 +5909,10 @@ this variable. */); | |||
| 5911 | 5909 | ||
| 5912 | DEFVAR_BOOL ("use-short-answers", use_short_answers, | 5910 | DEFVAR_BOOL ("use-short-answers", use_short_answers, |
| 5913 | doc: /* Non-nil means `yes-or-no-p' uses shorter answers "y" or "n". | 5911 | doc: /* Non-nil means `yes-or-no-p' uses shorter answers "y" or "n". |
| 5914 | It's discouraged to use single-key answers because `yes-or-no-p' is | 5912 | When non-nil, `yes-or-no-p' will use `y-or-n-p' to read the answer. |
| 5915 | intended to be used when it's thought that you should not respond too | 5913 | We recommend against setting this variable non-nil, because `yes-or-no-p' |
| 5916 | quickly, so you take time and perhaps think more about the answer. | 5914 | is intended to be used when users are expected not to respond too |
| 5917 | When non-nil, then `yes-or-no-p' uses `y-or-n-p' to read an answer. | 5915 | quickly, but to take their time and perhaps think about the answer. |
| 5918 | The same variable also affects the function `read-answer'. */); | 5916 | The same variable also affects the function `read-answer'. */); |
| 5919 | use_short_answers = false; | 5917 | use_short_answers = false; |
| 5920 | 5918 | ||