[Top][All Lists]

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

Re: Start value in minibuffer

From: Stefan Monnier
Subject: Re: Start value in minibuffer
Date: Sun, 13 Nov 2005 18:22:50 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>     For those of you that use pc-selection-mode, I believe there is a
>     natural way to fulfill these requirements. Just try this:

>     (add-hook 'minibuffer-setup-hook 'select-minibuffer-contents)

>     (defun select-minibuffer-contents ()
>       "Select minibuffer contents."
>       (set-mark (point-max))
>       (goto-char (minibuffer-prompt-end)))

>     (defadvice next-history-element (after select-minibuffer-contents 
> activate)
>       "Select minibuffer contents."
>       (set-mark (point-max))
>       (goto-char (minibuffer-prompt-end))
>       (setq deactivate-mark nil))

BTW, shouldn't pc-selection-mode do that?

> It has been decided that the INITIAL-VALUE parameter to minibuffer-input
> functions is more or less deprecated, in favor of the DEF (default-value)
> parameter alone.

Not for file names, which is why /tmp//foo is interpreted as /foo.


reply via email to

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