[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shift selection using interactive spec
From: |
Chong Yidong |
Subject: |
Re: Shift selection using interactive spec |
Date: |
Fri, 14 Mar 2008 17:08:18 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.92 (gnu/linux) |
David Kastrup <address@hidden> writes:
>> 3. Use a non-letter interactive code, analogous to @ and *, that
>> causes Fcall_interactively to perform the handling of
>> transient-mark-mode automagically. This was the code I showed.
>> Because it's a non-letter code, we don't need to change the
>> argument list. This approach needs the least new code, and might
>> be less disruptive, but it's obviously a little magical.
>>
>> 3a. As above, but also for direct keybindings with the shift modifier.
>
> 3 has my vote. I am not sure about the meaning or implications of 3a.
If you type `S-right', read_key_sequence tries to find a keybinding
for `S-right'. If is none, it automatically tries `right', which in
this case is bound to forward-char. So `S-right', translated to
`right', runs foward-char.
If you bind `S-right' to some other command, this translation won't
occur: `S-right' runs that new command.
That's what I mean by shift translation. It raises the orthogonal
issue of whether we want to tie shift-selection to this shift
translation business. Or do we simply activate it when there is a
shift modifier present in the keybinding?
My inclination is toward the former, but this issue is subtle and
needs more analysis.
- Re: Shift selection using interactive spec, (continued)
- Re: Shift selection using interactive spec, Dan Nicolaescu, 2008/03/14
- Re: Shift selection using interactive spec, Kim F. Storm, 2008/03/14
- Re: Shift selection using interactive spec, Stefan Monnier, 2008/03/14
- RE: Shift selection using interactive spec, Drew Adams, 2008/03/14
- Re: Shift selection using interactive spec, Chong Yidong, 2008/03/14
- Re: Shift selection using interactive spec, David Kastrup, 2008/03/14
- Re: Shift selection using interactive spec,
Chong Yidong <=
- Re: Shift selection using interactive spec, Stefan Monnier, 2008/03/14
- Re: Shift selection using interactive spec, Chong Yidong, 2008/03/14
- Re: Shift selection using interactive spec, Stefan Monnier, 2008/03/14
- Re: Shift selection using interactive spec, Chong Yidong, 2008/03/15
- Re: Shift selection using interactive spec, Stefan Monnier, 2008/03/15
- Re: Shift selection using interactive spec, Chong Yidong, 2008/03/15
- Re: Shift selection using interactive spec, Stefan Monnier, 2008/03/15
- Re: Shift selection using interactive spec, Thomas Lord, 2008/03/15
- Re: Shift selection using interactive spec, Chong Yidong, 2008/03/16
- Re: Shift selection using interactive spec, Lennart Borgman (gmail), 2008/03/16