changeset 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 5312a58f3397
children b69a152b82e3
files lisp/simple.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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."