GNU bug report logs -
#10056
24.0.91; `copy-to-register' does not deactivate the mark
Previous Next
Reported by: Dani Moncayo <dmoncayo <at> gmail.com>
Date: Tue, 15 Nov 2011 20:08:02 UTC
Severity: minor
Found in version 24.0.91
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> As I pointed out previously in this thread, the mark should be
> deactivated (in general - there can be some exceptions) after any
> command that operates on the active region. Not doing so is annoying,
> because the mark must be deactivated in that cases manually by typing
> `C-g'.
>
> There are still cases where I observe this misbehavior. Namely:
>
> kill-region [1]
> kill-rectangle [1]
> prepend-to-register
> append-to-register
I forgot to mention, for the two above commands, that the use case is
"when invoked with a prefix argument, from a read-only buffer."
(regardless of the value of `kill-read-only-ok', which doesn't seem to
have any effect on them).
> narrow-to-region [2]
> c-indent-line-or-region [3]
> delete-duplicate-lines [3]
> delete-matching-lines [3]
> delete-non-matching-lines [3]
> delete-blank-lines [3]
Add "fill-paragraph [3]" to the above list. Important use-case.
> --- Footnotes ---
>
> [1] From a read-only buffer, having `kill-read-only-ok' set to nil.
> Note that the command does its job in this case, but the mark still
> remains active. Not TRT IMO.
> [2] According to Chong, in this case perhaps the mark deactivation
> should be made only when the call is interactive.
> [3] When the command doesn't alter the buffer text.
--
Dani Moncayo
This bug report was last modified 3 years and 22 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.