]> git.eshelyaron.com Git - emacs.git/commit
Use buffer local value of 'history-add-new-input' in minibuffer
authorEshel Yaron <me@eshelyaron.com>
Sun, 11 Feb 2024 15:18:48 +0000 (16:18 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 11 Feb 2024 15:18:48 +0000 (16:18 +0100)
commit4b7f1443e88cde920b6afc9099cbbb45f4c1490f
tree00a9ba83a7bde0897b0d85755c9aa8781cfaf19f
parent1fc1f93ab088c3aaefa05eed75c2053449dc0db6
Use buffer local value of 'history-add-new-input' in minibuffer

Avoid let-binding 'history-add-new-input', since that affects all nested
recursive minibuffers, and instead use a buffer-local setting in the
appropriate minibuffer.

* doc/lispref/minibuf.texi (Minibuffer History): Update.
* lisp/emacs-lisp/crm.el (completing-read-multiple): Use
'history-add-new-input' instead of manually removing raw input from
minibuffer history.
* lisp/isearch.el (isearch-edit-string)
* lisp/replace.el (query-replace-read-from)
(query-replace-read-to, read-regexp)
* lisp/simple.el (read-from-kill-ring): Set 'history-add-new-input'
locally in the minibuffer, instead of let-binding it.
* src/minibuf.c (read_minibuf): Use 'history-add-new-input' local value.
doc/lispref/minibuf.texi
lisp/emacs-lisp/crm.el
lisp/isearch.el
lisp/replace.el
lisp/simple.el
src/minibuf.c