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: Eli Zaretskii <eliz <at> gnu.org>
To: Keith David Bershatsky <esq <at> lawlist.com>
Cc: 25992 <at> debbugs.gnu.org
Subject: bug#25992: perform-replace leaves mark-active when not	transient-mark-mode
Date: Mon, 06 Mar 2017 20:45:32 +0200
> Date:  Mon, 06 Mar 2017 09:06:56 -0800
> From:  Keith David Bershatsky <esq <at> lawlist.com>
> Cc:  25992 <at> debbugs.gnu.org
> 
> In a custom test to determine whether the region is active, I had been testing mark-active prior to using (region-beginning) and/or (region-end) to avoid trowing an error "The mark is not set now, so there is no region".  When the following is true `(and mark-active (= (region-beginning) (region-end)))`, my custom function should return nil.

Why can't you just check whether the function 'mark' returns nil?




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.