unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#25992: perform-replace leaves mark-active when not transient-mark-mode
@ 2017-03-06  2:02 Keith David Bershatsky
  2017-03-06 16:26 ` Eli Zaretskii
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Keith David Bershatsky @ 2017-03-06  2:02 UTC (permalink / raw)
  To: 25992

When transient-mark-mode is turned off, perform-replace leaves mark-active set to `t`.

Step 1:  Launch emacs -q

Step 2:  Turn off transient-mark-mode.  (transient-mark-mode -1)

Step 3:  Evaluate mark-active and verify it is `nil`.

Step 4:  Run a simple perform-replace such as:  (replace-regexp ";" "@" nil 1 2)

Step 5:  Evaluate mark-active and see that it is now set `t`.

The desired behavior is to leave `mark-active` set to `nil` if it was previously set to `nil`.

I fixed this in my own setup with a very simple test at the outset of perform-replace to see whether mark-active was set to `t` at the outset and then turn it off at the end of the function if it was not previously active.

Thanks,

Keith





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

end of thread, other threads:[~2017-03-07 19:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-06  2:02 bug#25992: perform-replace leaves mark-active when not transient-mark-mode Keith David Bershatsky
2017-03-06 16:26 ` Eli Zaretskii
2017-03-06 17:06 ` Keith David Bershatsky
2017-03-06 18:45   ` Eli Zaretskii
2017-03-07  5:55 ` Keith David Bershatsky
2017-03-07 15:37   ` Eli Zaretskii
2017-03-07 17:32 ` Keith David Bershatsky
2017-03-07 19:25   ` Eli Zaretskii

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