]> git.eshelyaron.com Git - emacs.git/commit
New variable 'use-short-answers' to use 'y-or-n-p' instead of 'yes-or-no-p'
authorJuri Linkov <juri@linkov.net>
Thu, 25 Feb 2021 18:45:40 +0000 (20:45 +0200)
committerJuri Linkov <juri@linkov.net>
Thu, 25 Feb 2021 18:45:40 +0000 (20:45 +0200)
commit297c0e0306f111c1e7564b2bb49a7e1a925a55bb
treef21135ef195dc0b8f74689888fec8a4e3f641f6c
parent056b468f74ff0aab41febaf6dbd4db23f3bebba2
New variable 'use-short-answers' to use 'y-or-n-p' instead of 'yes-or-no-p'

* lisp/cus-start.el: Add use-short-answers.

* lisp/emacs-lisp/map-ynp.el (read-answer): Handle use-short-answers.
(read-answer-short): Add use-short-answers to docstring.

* src/fns.c (Fyes_or_no_p): Call y-or-n-p if use_short_answers is true.
(syms_of_fns): Add DEFVAR_BOOL use-short-answers (bug#46594).
etc/NEWS
lisp/cus-start.el
lisp/emacs-lisp/map-ynp.el
src/fns.c