[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cursor positioning with `after-string' overlays
From: |
Kim F. Storm |
Subject: |
Re: Cursor positioning with `after-string' overlays |
Date: |
Thu, 01 Apr 2010 23:54:16 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
> The old version puts the cursor on `-' because it examines the glyphs
> from left to right, and finds the glyph with a `cursor' property
> _before_ it has a chance to see that `b' has the required character
> position.
>
> Does anyone think that the version on the trunk is wrong and the old
> one is right?
>
> More generally, what are the use-cases for putting the `cursor'
> property on a `before-string' or `after-string' overlay, and what is
> expected from cursor positioning in those use-cases?
CUA rectangle mode may use the old behaviour to place cursor midway
through a tab character - I cannot judge from your example if that
is still working with the trunk code, and I don't have time to check
one out (I got lost in the Bazaar)...
But you can easily try it out.
Just enter:
M-x cua-mode RET
a C-q C-i b
C-a C-RET C-f C-f C-f ..
cursor should move successively from a through the tab until it reaches b
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Cursor positioning with `after-string' overlays, Eli Zaretskii, 2010/04/01
- Re: Cursor positioning with `after-string' overlays,
Kim F. Storm <=
- Re: Cursor positioning with `after-string' overlays, Stefan Monnier, 2010/04/01
- Re: Cursor positioning with `after-string' overlays, Eli Zaretskii, 2010/04/02
- Re: Cursor positioning with `after-string' overlays, Stefan Monnier, 2010/04/02
- Re: Cursor positioning with `after-string' overlays, Eli Zaretskii, 2010/04/02
- Re: Cursor positioning with `after-string' overlays, Stefan Monnier, 2010/04/02
- Re: Cursor positioning with `after-string' overlays, Eli Zaretskii, 2010/04/02
- Re: Cursor positioning with `after-string' overlays, Stefan Monnier, 2010/04/02