]> git.eshelyaron.com Git - emacs.git/commit
Make HIST arg of read-from-minibuffer work with buffer-local vars
authorFederico Tedin <federicotedin@gmail.com>
Thu, 5 Dec 2019 09:30:17 +0000 (10:30 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 5 Dec 2019 09:30:28 +0000 (10:30 +0100)
commit3586fef263ccf3b68cc1289d55ef44a3d9ac7e1d
tree9afa19b840fbef8fc61a3efbc4e148904195596c
parent9027084793831031926c12d3bdfa132ec6ac4e60
Make HIST arg of read-from-minibuffer work with buffer-local vars

* lisp/simple.el (minibuffer-history-values): New function, should be
used to access the minibuffer input history variable when the
minibuffer might be active.  If the variable is buffer-local, the
previous buffer's value will be used.
(goto-history-element): Use the new function to access the minibuffer
history.
(minibuffer-history-isearch-wrap): Use the new function to access the
minibuffer history.
* src/minibuf.c (read_minibuf): Switch to previous buffer temporarily
before updating history list (Bug#38317).
(read-from-minibuffer): Extend documentation to mention that the
result of using the command will be added to the history list by
default.
* doc/lispref/minibuf.texi (Minibuffer History): Mention the
possibility of using a buffer-local variable as history.
* etc/NEWS: Announce changes.
doc/lispref/minibuf.texi
etc/NEWS
lisp/simple.el
src/minibuf.c