changeset 1812:32248d533b4b

(next-complete-history-element): Use only buffer contents before point to match history elements.
author Roland McGrath <roland@gnu.org>
date Mon, 25 Jan 1993 16:59:48 +0000
parents 3e4f8b1da4e9
children a8f3ef142271
files lisp/simple.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/simple.el	Mon Jan 25 00:45:01 1993 +0000
+++ b/lisp/simple.el	Mon Jan 25 16:59:48 1993 +0000
@@ -536,8 +536,8 @@
   "\
 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."