Variable: read-answer-short
read-answer-short is a customizable variable defined in map-ynp.el.gz.
Value
auto
Documentation
If non-nil, read-answer accepts single-character answers.
If t, accept short (single key-press) answers to the question.
If nil, require long answers. If auto, accept short answers if
use-short-answers is non-nil, or the function cell of yes-or-no-p
is set to y-or-n-p.
This variable was added, or its default value changed, in Emacs 26.2.
Probably introduced at or before Emacs version 26.2.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/map-ynp.el.gz
;; read-answer is a general-purpose question-asker that supports
;; either long or short answers.
;; For backward compatibility check if short y/n answers are preferred.
(defcustom read-answer-short 'auto
"If non-nil, `read-answer' accepts single-character answers.
If t, accept short (single key-press) answers to the question.
If nil, require long answers. If `auto', accept short answers if
`use-short-answers' is non-nil, or the function cell of `yes-or-no-p'
is set to `y-or-n-p'."
:type '(choice (const :tag "Accept short answers" t)
(const :tag "Require long answer" nil)
(const :tag "Guess preference" auto))
:version "26.2"
:group 'minibuffer)