all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Jacobson <jidanni@deadspam.com>
Subject: query-replace-interactive et al
Date: 24 Apr 2002 04:35:35 +0800	[thread overview]
Message-ID: <m2elh6kvag.fsf@jidanni.org> (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

             reply	other threads:[~2002-04-23 20:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-23 20:35 Dan Jacobson [this message]
2002-04-24 22:39 ` query-replace-interactive et al Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2elh6kvag.fsf@jidanni.org \
    --to=jidanni@deadspam.com \
    --cc=jidanni@yam.com.tw \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.