]> git.eshelyaron.com Git - emacs.git/commitdiff
(next-history-element): Set point to the end of the
authorGerd Moellmann <gerd@gnu.org>
Fri, 23 Jul 1999 10:59:35 +0000 (10:59 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 23 Jul 1999 10:59:35 +0000 (10:59 +0000)
prompt if minibuffer-prompt-in-buffer.

lisp/simple.el

index 58e8f5aff42960881dbdecad2f862812ebb6b0dd..a187ebbf8eabcff48b5f7aa9a93c9ff8639771ba 100644 (file)
@@ -824,7 +824,9 @@ An uppercase letter in REGEXP makes the search case-sensitive."
             (let ((print-level nil))
               (prin1-to-string elt))
           elt))
-       (goto-char (point-min)))))
+       (if (boundp 'minibuffer-prompt-in-buffer)
+           (goto-char (minibuffer-prompt-width))
+         (goto-char (point-min))))))
 
 (defun previous-history-element (n)
   "Inserts the previous element of the minibuffer history into the minibuffer."