]> git.eshelyaron.com Git - emacs.git/commit
Handle help-form in y-or-n-p and use this in find-file-noselect (bug#5423)
authorJuri Linkov <juri@linkov.net>
Sat, 21 Nov 2020 19:49:46 +0000 (21:49 +0200)
committerJuri Linkov <juri@linkov.net>
Sat, 21 Nov 2020 19:49:46 +0000 (21:49 +0200)
commit0a8cd0116204354e95fbb4ebde64c58123502aa2
tree3111349cc32718d7493645b4bd0c381df748ed83
parent789ee3e1d55a86b9ce38d1374c0e01d04f97eb7d
Handle help-form in y-or-n-p and use this in find-file-noselect (bug#5423)

* doc/lispref/help.texi (Help Functions): Mention help-form for
read-char-from-minibuffer and y-or-n-p.

* doc/lispref/minibuf.texi (Yes-or-No Queries): Mention help-form
for y-or-n-p.
(Multiple Queries): Mention help-form for read-char-from-minibuffer.

* lisp/files.el (find-file-noselect): Let-bind multi-line help text
to help-form for y-or-n-p.

* lisp/subr.el (read-char-choice): Mention help-form in docstring.
(read-char-from-minibuffer): Mention help-form in docstring.
(y-or-n-p-map): Remove handling of 'help'.
(y-or-n-p): Mention help-form in docstring.
When help-form is non-nil: add help-char to 'prompt', and bind
help-char to help-form-show in composed-keymap.
doc/lispref/help.texi
doc/lispref/minibuf.texi
etc/NEWS
lisp/files.el
lisp/subr.el