Mercurial > emacs
diff lisp/simple.el @ 25046:dedb45548663
(next-history-element): Set point to the end of the
prompt if minibuffer-prompt-in-buffer.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 23 Jul 1999 10:59:35 +0000 |
parents | 57d2a2f294cb |
children | 820b95325cb5 |
line wrap: on
line diff
--- a/lisp/simple.el Fri Jul 23 08:46:55 1999 +0000 +++ b/lisp/simple.el Fri Jul 23 10:59:35 1999 +0000 @@ -824,7 +824,9 @@ (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."