[Top][All Lists]

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

Re: CUA/delete-selection-mode and remapped keys incompatibility

From: Stefan Monnier
Subject: Re: CUA/delete-selection-mode and remapped keys incompatibility
Date: Fri, 09 Feb 2007 10:12:51 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux)

>> Maybe it could be improved by making self-insert-command output a warning if
>> the region is active and delete-selection-mode is activated as well.

> That's a dead end -- delete-selection-mode is not enabled when you use
> CUA, so it would have to check for CUA-mode too, and so would
> self-insert-iso, and numerous other commands.

The implementation I'm imagining would be basically as follows:
cua-mode (and delete-selection-mode) add a (global) before-change-function
which outputs this warning.  This would be modular and catch all cases I can
think of, but maybe it would catch more than we'd want.


reply via email to

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