unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Inconsistency with repeat-complex-command and transient-mark-mode
@ 2003-03-14 22:44 Stefan Daschek
  2003-03-16  7:46 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Daschek @ 2003-03-14 22:44 UTC (permalink / raw)


There are several commands which behave differently in
transient-mark-mode when the mark is active. Now what happens when I
try to repeat one of these commands with repeat-complex-command?

Well, it seems there are 2 different things that may happen, according
to which command was used. I give an example for each behaviour (this
is what C-x ESC ESC shows after calling that command while the mark
was active):

(keep-lines "foo")
(query-replace "foo" "bar" nil 180 195)

As you see, the values of region-beginning and region-end are sort of
"hardcoded" in the second case. This means that trying to
consecutively apply a command to different regions with C-x ESC ESC
works with keep-lines but does not work with query-replace.

I consider this behaviour rather confusing and suggest a change so
that query-replace (and query-replace-regexp) act like keep-lines in
this regard.

ciao,
noniq

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

* Re: Inconsistency with repeat-complex-command and transient-mark-mode
  2003-03-14 22:44 Inconsistency with repeat-complex-command and transient-mark-mode Stefan Daschek
@ 2003-03-16  7:46 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2003-03-16  7:46 UTC (permalink / raw)
  Cc: gnu-emacs-bug

    to which command was used. I give an example for each behaviour (this
    is what C-x ESC ESC shows after calling that command while the mark
    was active):

    (keep-lines "foo")
    (query-replace "foo" "bar" nil 180 195)

    As you see, the values of region-beginning and region-end are sort of
    "hardcoded" in the second case.

I've fixed this in the development sources.
Thanks for reporting it.

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

end of thread, other threads:[~2003-03-16  7:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-14 22:44 Inconsistency with repeat-complex-command and transient-mark-mode Stefan Daschek
2003-03-16  7:46 ` Richard Stallman

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