unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* please tell users right way to undo inside query-replace
@ 2002-03-22 10:10 Dan Jacobson
  2002-03-23 16:14 ` Richard Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Jacobson @ 2002-03-22 10:10 UTC (permalink / raw)


The "?" help for query-replace mentions many things,

Type Space or `y' to replace one match, Delete or `n' to skip to next,
RET or `q' to exit, Period to replace one match and exit,
Comma to replace but not move point immediately,
C-r to enter recursive edit (C-M-c to get out again),...

But it doesn't mention how to even one little undo.

One little undo [C-/] is all it takes to break a, say,
dired-do-query-replace-regexp or other long and involved job.  This
will cause one to need to restart all the way back on the first file,
or the top of a single file.

Therefore that Help information should mention that to do a undo, one
should enter a recursive edit to do it safely.
-- 
http://www.geocities.com/jidanni/ Taiwan(04)25854780

_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs


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

* Re: please tell users right way to undo inside query-replace
  2002-03-22 10:10 please tell users right way to undo inside query-replace Dan Jacobson
@ 2002-03-23 16:14 ` Richard Stallman
  2002-03-28  8:21   ` must reposition cursor for tags-loop-continue on query-replace E C-g Dan Jacobson
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2002-03-23 16:14 UTC (permalink / raw)
  Cc: gnu-emacs-bug

    But it doesn't mention how to even one little undo.

    One little undo [C-/] is all it takes to break a, say,
    dired-do-query-replace-regexp or other long and involved job.

The doc string says,

    If you exit (\\[keyboard-quit], RET or q), you can resume the query replace
    with the command \\[tags-loop-continue]."

Did you try that?  Did it work?

_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs


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

* must reposition cursor for tags-loop-continue on query-replace E C-g
  2002-03-23 16:14 ` Richard Stallman
@ 2002-03-28  8:21   ` Dan Jacobson
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Jacobson @ 2002-03-28  8:21 UTC (permalink / raw)


RMS> The doc string says,

RMS>     If you exit (\\[keyboard-quit], RET or q), you can resume the
RMS>     query replace with the command \\[tags-loop-continue]."

By the way, use the E command to edit a replacement string.  Now
change your mind about editing the replacement string by hitting a
C-g.  Notice that the query-replace is now over too.  Why not have a
C-g during an E return us to the state before we hit E, whereupon if
we really wanted to bust out of the query-replace, we could hit
another C-g.

OK, one hits a C-g within an E and finds the query-replace party is
now over.  OK, one types M-x tags-loop-continue [odd, "tags", a
user who has used query-replace but never used tags would be scared
off by that name ["isn't that part of the advanced level?  That can't
be what I'm looking for.  I'm looking for a query-replace-* command
that will get me back in the loop"].

OK, we have hit tags-loop-continue, _but_: our butt had better be in
the file where the fun ended [is this mentioned?], and not say off
looking at documentation, _or_/_and_ at least the cursor must be
repositioned before our E fiasco, or else we will not be asked about
that spot... only to regret it years later, "how could I have missed
it?".

Maybe RMS just patched this... however I will wait for the next
edition instead of patching.
-- 
http://www.geocities.com/jidanni/ Taiwan(04)25854780

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

end of thread, other threads:[~2002-03-28  8:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-22 10:10 please tell users right way to undo inside query-replace Dan Jacobson
2002-03-23 16:14 ` Richard Stallman
2002-03-28  8:21   ` must reposition cursor for tags-loop-continue on query-replace E C-g Dan Jacobson

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).