GNU bug report logs -
#13312
24.3.50; delete selection mode not killing on overwrite
Previous Next
Reported by: Tony Day <tonyday567 <at> gmail.com>
Date: Mon, 31 Dec 2012 01:14:01 UTC
Severity: wishlist
Tags: moreinfo
Found in versions 24.1, 24.3.50
Fixed in version 24.4
Done: Juri Linkov <juri <at> jurta.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On Mon, Dec 31, 2012 at 12:29 PM, Glenn Morris <rgm <at> gnu.org> wrote:
> Why did you expect `delete-selection-mode' to kill rather than delete?
I asked on stack exchange for how to change the behaviour and someone
suggested it was a bug. I figured delete-selection-mode was less of a
mouthful than maybe-delete-or-kill-selection-mode ;)
The critical code lines were was also ambiguous and beyond my powers of
comprehension:
(put 'self-insert-command 'delete-selection
(lambda ()
(not (run-hook-with-args-until-success
'self-insert-uses-region-functions))))
Thanks for confirming the default behaviour. On changing to kill rather
than delete with:
(put 'self-insert-command 'delete-selection 'kill)
I get no self-inserted key, and an extra blank item in the kill ring.
Regardless, why don't we call this a hack and not a bug.
Tony
[Message part 2 (text/html, inline)]
This bug report was last modified 11 years and 261 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.