aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorFederico Tedin2019-12-05 10:30:17 +0100
committerLars Ingebrigtsen2019-12-05 10:30:28 +0100
commit3586fef263ccf3b68cc1289d55ef44a3d9ac7e1d (patch)
tree9afa19b840fbef8fc61a3efbc4e148904195596c /etc
parent9027084793831031926c12d3bdfa132ec6ac4e60 (diff)
downloademacs-3586fef263ccf3b68cc1289d55ef44a3d9ac7e1d.tar.gz
emacs-3586fef263ccf3b68cc1289d55ef44a3d9ac7e1d.zip
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.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 20b86173e93..d4f31aeb85d 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -522,6 +522,12 @@ Note that this key binding will not work on MS-Windows systems if
522key binding with an upper case letter - if you can type it, you can 522key binding with an upper case letter - if you can type it, you can
523bind it. 523bind it.
524 524
525+++
526** 'read-from-minibuffer' now works with buffer-local history variables.
527The HIST argument of 'read-from-minibuffer' now works correctly with
528buffer-local variables. This means that different buffers can have
529their own separated input history list if desired.
530
525 531
526* Editing Changes in Emacs 27.1 532* Editing Changes in Emacs 27.1
527 533