help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Selecting default prompt text


From: Richard Riley
Subject: Re: Selecting default prompt text
Date: Thu, 12 Feb 2009 20:02:37 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux)

Richard Riley <address@hidden> writes:

> "Drew Adams" <address@hidden> writes:
>
>>> > Something like this ?
>>> >
>>> > (defun minibuffer-select-inital-input ()
>>> >   (let ((start (next-single-char-property-change 1 'read-only)))
>>> >     (when (< start (point-max))
>>> >       (set-mark start) (setq mark-active t))))
>>> >
>>> > (add-hook 'minibuffer-setup-hook 'minibuffer-select-inital-input)
>>> > (read-string "> " "Hallo")
>>> >
>>> > -ap
>>> 
>>> Yes, thanks. But I released I was hoping for too much here since
>>> region/mark etc works so many different ways depending on settings. As
>>> "dim" in the #emacs said, probably best to rely on C-a C-k. 
>>> e.g With my setting hitting right arrow there results in
>>> "end of buffer" error.
>>
>> 1. I was going to suggest something like what ap said.
>>
>> That seems to respond to your request, so I'm not sure what you meant above 
>> - in
>> particular about using the right arrow. If point is at the end of the input 
>> (end
>> of buffer), then why would you hit the right arrow? What would you like the
>> right arrow to do in that context?
>
> The way I use the kbd, right arrow to remove select and edit existing
> text with cursor at end or any other (non directional) key to clear the
> field. Try Google example : enter text, tab to button, shit tab back,

Hmm. I must be more careful when typing "shift" .... Sorry.

> press right arrow.  But I see this is probably not a good idea to
> enforce in emacs.
>
>
>

-- 
 important and urgent problems of the technology of today are no longer the 
satisfactions of the primary needs or of archetypal wishes, but the reparation 
of the evils and damages by the technology of yesterday.  ~Dennis Gabor, 
Innovations:  Scientific, Technological and Social, 1970


reply via email to

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