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

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

bug#13312: 24.3.50; delete selection mode not killing on overwrite


From: Tony Day
Subject: bug#13312: 24.3.50; delete selection mode not killing on overwrite
Date: Tue, 1 Jan 2013 11:06:04 +1100

On Mon, Dec 31, 2012 at 12:29 PM, Glenn Morris <rgm@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





reply via email to

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