[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: deactivation in "shift-select" mode
From: |
Chong Yidong |
Subject: |
Re: deactivation in "shift-select" mode |
Date: |
Fri, 07 Mar 2008 21:22:55 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.92 (gnu/linux) |
Miles Bader <address@hidden> writes:
> Johan Bockgård pointed out (on the #emacs irc channel) that
> transient-mark-mode actually _already_ has enough functionality to
> allow implementing the desired "deactivation" behavior for
> shift-select (where non-shifted movement keys automatically deactivate
> any mark which was activated by shifted movement keys), without using
> post-command-hook at all!
>
> Basically his idea is to use the "only mode" feature of
> transient-mark-mode (setting the transient-mark-mode variable to 'only
> instead of t).
>
> I've attached a proof-of-concept that shows how it works; this code
> only implements shift-select for the basic cursor movement keys plus
> forward/backward-word, but it's obviously trivial to extend to any
> other commands desired.
Bit confused.
AFAICT, the function region-active-p which you use isn't defined, and
the "only mode" feature transient-mark-mode doesn't exist/isn't
documented. Is this a feature from XEmacs?
- Re: position on changing defaults?, (continued)
- 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, 2008/03/06
- 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 <=
- 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
- Re: position on changing defaults?, Miles Bader, 2008/03/09
- Shift-movement selection (was: position on changing defaults?), Stefan Monnier, 2008/03/09
- Re: Shift-movement selection, Miles Bader, 2008/03/09
- Re: Shift-movement selection, Kim F. Storm, 2008/03/09
- Re: Shift-movement selection, Miles Bader, 2008/03/09
- Re: Shift-movement selection, Stefan Monnier, 2008/03/10