From: Miles Bader Date: Tue, 21 Nov 2000 15:58:33 +0000 (+0000) Subject: (minibuffer-avoid-prompt): New function. X-Git-Tag: emacs-pretest-21.0.92~238 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6e7d0ff7bc8ac16899501cebf9460bcfc26c9fb0;p=emacs.git (minibuffer-avoid-prompt): New function. --- diff --git a/lisp/simple.el b/lisp/simple.el index 155f8468d5a..78f5e8044a2 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -686,6 +686,10 @@ in this use of the minibuffer.") (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