diff lisp/simple.el @ 33683:8fc77111dd98

(minibuffer-avoid-prompt): New function.
author Miles Bader <miles@gnu.org>
date Tue, 21 Nov 2000 15:58:33 +0000
parents bd48e8729dbb
children 67e0378863cf
line wrap: on
line diff
--- a/lisp/simple.el	Tue Nov 21 15:57:34 2000 +0000
+++ b/lisp/simple.el	Tue Nov 21 15:58:33 2000 +0000
@@ -686,6 +686,10 @@
 (defun minibuffer-history-initialize ()
   (setq minibuffer-text-before-history nil))
 
+(defun minibuffer-avoid-prompt (new old)
+  "A point-motion hook for the minibuffer, that moves point out of the prompt."
+  (constrain-to-field nil (point-max)))
+
 (defcustom minibuffer-history-case-insensitive-variables nil
   "*Minibuffer history variables for which matching should ignore case.
 If a history variable is a member of this list, then the