emacs-devel
[Top][All Lists]
Advanced

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

Re: Start value in minibuffer


From: Kim F. Storm
Subject: Re: Start value in minibuffer
Date: Mon, 14 Nov 2005 00:48:06 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>     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?

.. and delete-selection-mode and cua-mode as well.

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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