[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Shift-movement selection (was: position on changing defaults?)
From: |
Stefan Monnier |
Subject: |
Shift-movement selection (was: position on changing defaults?) |
Date: |
Sun, 09 Mar 2008 18:34:42 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
How 'bout solving the problem of shift-movement selection in a less
sophisticated way. E.g. provide a function like
(defun activate-on-shift-selecting-movement ()
(if (this-command-keys-are-shifted-p)
(progn
(setq shift-selecting-movement t)
(unless mark-active (set-mark)))
(when shift-selecting-movement
(setq shift-selecting-movement nil)
(when mark-active (deactivate-mark)))))
and then call it from wherever it's considered useful
(e.g. forward-char, next-line, ...).
-- Stefan
- Re: position on changing defaults?, (continued)
- 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
- Re: position on changing defaults?, Miles Bader, 2008/03/09
- Shift-movement selection (was: position on changing defaults?),
Stefan Monnier <=
- 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
- Re: Shift-movement selection, Stefan Monnier, 2008/03/10
- Re: Shift-movement selection, Stefan Monnier, 2008/03/09
- Re: Shift-movement selection, Miles Bader, 2008/03/10
- Re: Shift-movement selection, Stefan Monnier, 2008/03/10
- Re: Shift-movement selection, Kim F. Storm, 2008/03/10
- Re: Shift-movement selection, Stefan Monnier, 2008/03/10