[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shift selection using interactive spec
From: |
Stefan Monnier |
Subject: |
Re: Shift selection using interactive spec |
Date: |
Tue, 18 Mar 2008 17:42:28 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> Suppose we have an external package that defines the motion commands
> forward-section and backward-section, which move point forward and
> backward by mode-specific amount. (It might, for example, be rebound
> to M-right or M-left.)
> In shift selection mode, the first unshifted motion command must
> deactivate the mark. This is the expected behavior.
> Now suppose we make the motion commands responsible for deactivating
> the mark; for example, by adding an interactive spec code that calls a
> function `handle-shift-selection' that checks if the calling key
> sequence was shifted, and deactivates the mark if it was not. If we
> start to define a shift-selected region using a shifted forward-char
> command, and follow this with an unshifted forward-section command,
> the region won't get deactivated. Instead, it will extend the region.
Oh, that. It's a pretty minor bug in my opinion.
And those commands have another bug anyway: using shift with them
doesn't select the region.
> To fix this bug, we would have to change the external package.
Yup. We have to fix it anyway in order for the shift to start the selection.
Stefan
- Re: Shift selection using interactive spec, (continued)
- Re: Shift selection using interactive spec, Thomas Lord, 2008/03/18
- Re: Shift selection using interactive spec, martin rudalics, 2008/03/18
- Re: Shift selection using interactive spec, Chong Yidong, 2008/03/17
- Re: Shift selection using interactive spec, Stefan Monnier, 2008/03/17
- Re: Shift selection using interactive spec, martin rudalics, 2008/03/18
- Re: Shift selection using interactive spec, Stefan Monnier, 2008/03/18
- Re: Shift selection using interactive spec, Lennart Borgman (gmail), 2008/03/18
- Re: Shift selection using interactive spec, Chong Yidong, 2008/03/18
- Re: Shift selection using interactive spec, Stefan Monnier, 2008/03/18
- Re: Shift selection using interactive spec, Chong Yidong, 2008/03/18
- Re: Shift selection using interactive spec,
Stefan Monnier <=
- Re: Shift selection using interactive spec, Kim F. Storm, 2008/03/18
- Re: Shift selection using interactive spec, Lennart Borgman (gmail), 2008/03/18
- Re: Shift selection using interactive spec, M Jared Finder, 2008/03/19
- Re: Shift selection using interactive spec, David Kastrup, 2008/03/26
- Re: Shift selection using interactive spec, Juri Linkov, 2008/03/26
- Re: Shift selection using interactive spec, David Kastrup, 2008/03/26
- Re: Shift selection using interactive spec, Lennart Borgman (gmail), 2008/03/26
- Re: Shift selection using interactive spec, Juri Linkov, 2008/03/26
- Re: Shift selection using interactive spec, David Kastrup, 2008/03/26
- Re: Shift selection using interactive spec, Johan Bockgård, 2008/03/26