Lisp HUG Maillist Archive

editor:prompt-for-string

Is there any way for the default string to appear in the mini-buffer so 
the user can edit it? As far as I can tell the best you can do is have 
the default appear in the prompt which is not very helpful if you want 
to allow it to be editing in some small way without retyping it all.


Best,

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


Re: editor:prompt-for-string

On Jan 7, 2005, at 3:41 PM, John DeSoi wrote:

> Is there any way for the default string to appear in the mini-buffer 
> so the user can edit it? As far as I can tell the best you can do is 
> have the default appear in the prompt which is not very helpful if you 
> want to allow it to be editing in some small way without retyping it 
> all.


It is not pretty, but I solved this by using the entry hook function 
you can setup when the focus is changed to the echo area. It would 
still be nice if editor:parse-for-something had an option where it 
would insert the default string.


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


Updated at: 2020-12-10 08:53 UTC