GNU bug report logs - #13169
[PATCH] kill-region fails to deactivate mark after cutting empty region

Previous Next

Package: emacs;

Reported by: Kelly Dean <kellydeanch <at> yahoo.com>

Date: Thu, 13 Dec 2012 08:21:01 UTC

Severity: normal

Tags: patch

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Kelly Dean <kellydeanch <at> yahoo.com>
To: 13169 <at> debbugs.gnu.org
Subject: bug#13169: [PATCH] kill-region fails to deactivate mark after cutting empty region
Date: Thu, 13 Dec 2012 00:19:16 -0800 (PST)
[Message part 1 (text/plain, inline)]
On 24.2, emacs -Q
C-SPC M-w C-p
kill-ring-save copied an empty region, and deactivated the mark. This is correct. But now do
C-SPC C-w C-p
kill-region cut an empty region, which is correct, but the mark is still active, which is incorrect. When the buffer and text aren't read-only, kill-region relies on the command loop to deactivate the mark after the buffer is modified, but when cutting an empty region, the buffer isn't modified, so the mark is never deactivated.
The attached killregionbug.patch fixes it.
[killregionbug.patch (text/x-diff, attachment)]

This bug report was last modified 12 years and 151 days ago.

Previous Next


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