emacs-devel
[Top][All Lists]
Advanced

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

Re: delete-selection-mode


From: Stefan Monnier
Subject: Re: delete-selection-mode
Date: Wed, 24 Mar 2010 09:34:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> Maybe these settings should be moved to simple.el:

> (put 'self-insert-command 'delete-selection t)
> (put 'self-insert-iso 'delete-selection t)
> (put 'yank 'delete-selection 'yank)
> (put 'clipboard-yank 'delete-selection 'yank)
> (put 'insert-register 'delete-selection t)
> (put 'delete-backward-char 'delete-selection 'supersede)
> (put 'backward-delete-char-untabify 'delete-selection 'supersede)
> (put 'delete-char 'delete-selection 'supersede)
> (put 'newline-and-indent 'delete-selection t)
> (put 'newline 'delete-selection t)
> (put 'open-line 'delete-selection 'kill)

> so `handle-delete-region' could use them.

Just as for shift-select-mode, I'd rather not use symbol properties to
put this information, because it's a property of the command, not of
its name.


        Stefan




reply via email to

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