[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: position on changing defaults?
From: |
Kim F. Storm |
Subject: |
Re: position on changing defaults? |
Date: |
Thu, 06 Mar 2008 11:58:07 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.91 (gnu/linux) |
Miles Bader <address@hidden> writes:
> Basically, these would be bindings that represent event-modifiers only.
> If normal key lookup fails, the keymapping mechanism would then look up
> and invoke the modifier binding corresponding to the modifiers on the
> key, and invoke it instead; the invoked function could then, if it
> wished (e.g. for CUA), set some variables or frob some state and
> re-invoke the event with the modifiers removed.
That's a nice idea, but it only solves half the problem.
You also need to handle the case where you have use shifted arrow
to mark the region, and then use an unshifted arrow ... which should
deactivate the mark.
It seems like a simpler solution would be to have special events
like <shift-down> <shift-up> <meta-down> <meta-up> etc....
A third possibility would be a "point moved" hook (at C level)
which was called with the original value of point - and the
original event modifiers.
BTW, cua-mode has some special code to detect the shift modifier on
a tty (something about looking for "S-" in the key symbol).
A solution should work equally well on all platforms!
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Re: position on changing defaults?, (continued)
- Re: position on changing defaults?, Chong Yidong, 2008/03/05
- Re: position on changing defaults?, Juri Linkov, 2008/03/05
- Re: position on changing defaults?, Bastien, 2008/03/05
- Re: position on changing defaults?, Juri Linkov, 2008/03/05
- Re: position on changing defaults?, Lennart Borgman (gmail), 2008/03/05
- Re: position on changing defaults?, Bastien, 2008/03/05
- Re: position on changing defaults?, Richard Stallman, 2008/03/06
- Re: position on changing defaults?, Miles Bader, 2008/03/05
- Re: position on changing defaults?, Juri Linkov, 2008/03/05
- Re: position on changing defaults?,
Kim F. Storm <=
- Re: position on changing defaults?, Richard Stallman, 2008/03/07
- Re: position on changing defaults?, Miles Bader, 2008/03/07
- Re: position on changing defaults?, Lennart Borgman (gmail), 2008/03/07
- Re: position on changing defaults?, Richard Stallman, 2008/03/08
- deactivation in "shift-select" mode, Miles Bader, 2008/03/07
- Re: deactivation in "shift-select" mode, Chong Yidong, 2008/03/07
- Re: deactivation in "shift-select" mode, Miles Bader, 2008/03/07
- Re: deactivation in "shift-select" mode, Miles Bader, 2008/03/07
- Re: deactivation in "shift-select" mode, Kim F. Storm, 2008/03/08
- Re: position on changing defaults?, Richard Stallman, 2008/03/09