bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#13169: [PATCH] kill-region fails to deactivate mark after cutting em


From: Kelly Dean
Subject: bug#13169: [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.

Attachment: killregionbug.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]