aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMiles Bader <[email protected]>2000-11-21 15:58:33 +0000
committerMiles Bader <[email protected]>2000-11-21 15:58:33 +0000
commit6e7d0ff7bc8ac16899501cebf9460bcfc26c9fb0 (patch)
treec06750c3cdf39e9a9db916575effceee4cfaf06b /lisp
parentcc64f5c9e6675dd0f9b0d50ad4bdcefdc9ccf3e6 (diff)
(minibuffer-avoid-prompt): New function.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/simple.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 155f8468d5..78f5e8044a 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