emacs-devel
[Top][All Lists]
Advanced

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

Re: Shift selection using interactive spec


From: Lennart Borgman (gmail)
Subject: Re: Shift selection using interactive spec
Date: Sun, 16 Mar 2008 15:37:21 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Chong Yidong wrote:
Thomas Lord <address@hidden> writes:

It's a red herring to think in terms of movement commands.

For example, if C-t invokes transpose-chars then,
by default, S-C-t should also invoke transpose-chars
but override the default and make the new default to
preserve the transient mark.   S-C-f S-C-f S-C-t S-C-f
makes one modification to the buffer and leaves a
transient region of three characters.   (Hopefully
transpose-chars is already coded so as to make
its buffer changes under save-excursion.)

It wouldn't be wise to make such a wide-ranging change in the behavior
of Emacs.  Since certain existing modes bind keys to shift modifiers,
we should not make it a general rule that a shift-something keybinding
changes the selecion.

The movement commands can be treated as a special case, for entirely
pragmatic reasons.  It helps that the shift modified versions of the
keybindings are typically unbound.

Perhaps it can be detected automatically if the command was a movement command (ie did not change the buffer)? The the change would be much less wide-ranging.




reply via email to

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