GNU bug report logs - #25992
perform-replace leaves mark-active when not transient-mark-mode

Previous Next

Package: emacs;

Reported by: Keith David Bershatsky <esq <at> lawlist.com>

Date: Mon, 6 Mar 2017 02:03:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Keith David Bershatsky <esq <at> lawlist.com>
Subject: bug#25992: closed (Re: bug#25992: perform-replace leaves
 mark-active when not	transient-mark-mode)
Date: Tue, 07 Mar 2017 19:27:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#25992: perform-replace leaves mark-active when not transient-mark-mode

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 25992 <at> debbugs.gnu.org.

-- 
25992: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25992
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Keith David Bershatsky <esq <at> lawlist.com>
Cc: 25992-done <at> debbugs.gnu.org
Subject: Re: bug#25992: perform-replace leaves mark-active when
 not	transient-mark-mode
Date: Tue, 07 Mar 2017 21:25:55 +0200
> Date:  Tue, 07 Mar 2017 09:32:58 -0800
> From:  Keith David Bershatsky <esq <at> lawlist.com>
> Cc:  25992 <at> debbugs.gnu.org
> 
> Yes, thank you, please close out bug#25992.

Done.

[Message part 3 (message/rfc822, inline)]
From: Keith David Bershatsky <esq <at> lawlist.com>
To: bug-gnu-emacs <at> gnu.org
Subject: perform-replace leaves mark-active when not transient-mark-mode
Date: Sun, 05 Mar 2017 18:02:23 -0800
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



This bug report was last modified 8 years and 170 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.