emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Avoiding moving point into minibuffer prompt area


From: Lennart Borgman
Subject: Avoiding moving point into minibuffer prompt area
Date: Tue, 16 Aug 2005 03:29:11 +0200
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

I think it is quite confusing that you can move the point into the prompt area in the minibuffer. Why don't we use something like the code below to avoid this:

(defun minibuff-post-command()
 (when (active-minibuffer-window)
   (when (< (point) (minibuffer-prompt-end))
     (forward-char (- (minibuffer-prompt-end) (point))))))

(add-hook 'post-command-hook 'minibuff-post-command)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]