aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fns.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/fns.c b/src/fns.c
index 79b5a1e9930..7914bd47790 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -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".
5914It's discouraged to use single-key answers because `yes-or-no-p' is 5912When non-nil, `yes-or-no-p' will use `y-or-n-p' to read the answer.
5915intended to be used when it's thought that you should not respond too 5913We recommend against setting this variable non-nil, because `yes-or-no-p'
5916quickly, so you take time and perhaps think more about the answer. 5914is intended to be used when users are expected not to respond too
5917When non-nil, then `yes-or-no-p' uses `y-or-n-p' to read an answer. 5915quickly, but to take their time and perhaps think about the answer.
5918The same variable also affects the function `read-answer'. */); 5916The same variable also affects the function `read-answer'. */);
5919 use_short_answers = false; 5917 use_short_answers = false;
5920 5918