[
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:
2008年3月06日 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日