unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* query-replace-interactive et al
@ 2002-04-23 20:35 Dan Jacobson
  2002-04-24 22:39 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Jacobson @ 2002-04-23 20:35 UTC (permalink / raw)


Gentlemen, I was wondering why query-replace doesn't let me sweep up
pieces of text with C-w like C-s does.  Then I read about (setq
query-replace-interactive t).  Ok, now I can sweep up pieces of text
with C-s C-w C-w... ESC %, however I am then not allowed any final
opinions about the FROM string (why not leave the cursor at the end of
that line and wait for a RET?), and am instead only asked about how
the TO string should look.

Actually when I read
     If `query-replace-interactive' is non-nil, the last incremental search
     string is used as FROM-STRING--you don't have to specify it with the
     minibuffer.
I thought it would prompt me with a default (from last search), and if
I didn't enter anything for FROM, it would use that default.  And if I
wanted to edit the default, I would use M-p or M-n to get it into the
minibuffer and edit it.

By the way, I wonder if there is special keys when composing the TO
string that will insert the FROM string there so one can make minor
adjustments to it, or do I have to hope dabbrev-expand will have it?

By the way, I still think ESC % C-w should sweep up text like C-s C-w.
If you want me to do C-s C-w ESC % that means I can't just continue
searching with C-s for the same string I was searching for before, as
the last search string has now been reset because that's the only way
one can get a certain shortcut in a different command -- query-replace.
-- 
http://jidanni.org/ Taiwan(04)25854780

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: query-replace-interactive et al
  2002-04-23 20:35 query-replace-interactive et al Dan Jacobson
@ 2002-04-24 22:39 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2002-04-24 22:39 UTC (permalink / raw)


jidanni@deadspam.com (Dan Jacobson) writes:
> By the way, I wonder if there is special keys when composing the TO
> string that will insert the FROM string there so one can make minor
> adjustments to it, or do I have to hope dabbrev-expand will have it?

M-p

-- 
Kevin Rodgers <kevinr@ihs.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-24 22:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-23 20:35 query-replace-interactive et al Dan Jacobson
2002-04-24 22:39 ` Kevin Rodgers

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).