--- Begin Message ---
Subject: |
[PATCH] kill-region fails to deactivate mark after cutting empty region |
Date: |
Thu, 13 Dec 2012 00:19:16 -0800 (PST) |
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
Description: Text Data
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#13169: [PATCH] kill-region fails to deactivate mark after cutting empty region |
Date: |
Fri, 21 Dec 2012 11:49:54 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.91 (gnu/linux) |
Kelly Dean <address@hidden> writes:
> 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.
Committed to trunk, thanks.
--- End Message ---