[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: snarf up text when at query-replace from: prompt
From: |
Dan Jacobson |
Subject: |
Re: snarf up text when at query-replace from: prompt |
Date: |
07 Jan 2003 07:14:34 +0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
RMS> Could you be more specific? What do you propose that C-h should do
RMS> when you are in the minibuffer entering the from-string?... to-string
well actually lets talk about C-s. If one hit C-s C-h, wouldn't it be
neat if it were like when one hit C-h k C-s? At least give some hints
in the minibuffer about goodies like:
Type C-s to search again forward, C-r to search again backward.
Type C-w to yank word from buffer onto end of search string and search for it.
Type C-y to yank rest of line onto end of search string and search for it.
Type M-y to yank last killed text onto end of search string and search for it.
etc.
this would appear as "C-s, C-w, C-y.... C-h for more info" in the
minibuffer.
Do something similar when one hits M-% C-h, of course offering the
choices I propose below.
> it would be nice if we could hit something to snarf up words from
> point when we are entering the from and to strings.
RMS> You can copy the text with M-w then do query-replace-interactive and then
RMS> yank it with C-y.
ah, but setting that variable back and forth is quite inconvenient.
I say the from and to stings should be able to be vacuumed up with
things like those 4 above... just like C-s... hmmm, true we are
sitting in the minibuffer and not in the main window like with C-s.
Anyway, a start would be if M-% C-w would copy the word we are on into
the From string.. More C-w's would add more to it, like C-s....
Hmm, then there's the To string... well, we would have to reposition
the cursor usually.... bla bla bla... anyways, C-s is quite high
powered vs. M-%...
--
http://jidanni.org/ Taiwan(04)25854780