mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-28 07:45:00 +00:00
(next-complete-history-element): Use only buffer contents before point
to match history elements.
This commit is contained in:
parent
d0678801de
commit
c7e6987699
@ -536,8 +536,8 @@ If N is negative, find the previous or Nth previous match."
|
||||
"\
|
||||
Get previous element of history which is a completion of minibuffer contents."
|
||||
(interactive "p")
|
||||
(next-matching-history-element (concat "^" (regexp-quote (buffer-string)))
|
||||
n))
|
||||
(next-matching-history-element
|
||||
(concat "^" (regexp-quote (buffer-substring (point-min) (point)))) n))
|
||||
|
||||
(defun previous-complete-history-element (n)
|
||||
"Get next element of history which is a completion of minibuffer contents."
|
||||
|
Loading…
Reference in New Issue
Block a user