[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23079: 25.0.92; Movement commands leave cursor in invisible line
From: |
Michael Heerdegen |
Subject: |
bug#23079: 25.0.92; Movement commands leave cursor in invisible line |
Date: |
Mon, 21 Mar 2016 23:29:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) |
Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
> That's normal: (get-pos-property <pos> 'invisible) returns nil in front
> of "333" but t in front of "555", so point adjustment will try to move
> point to right before "333" when we're in that invisible chunk.
Hmm, that perfectly makes sense.
> IOW the position "right before 555" is actually considered as being
> "inside the invisible area" whereas the position "right before 333" is
> considered as being outside of it.
>
> If you want point adjustment to move point to right before "555"
> instead, you should change the stickiness of the `invisible' property so
> as to change which boundary position is considered "inside" and which is
> considered "outside".
Seems that works only for the invisible text property. In Magit, they
use overlays to make text invisible, and stickiness of text properties
has not effect there.
This is what I tried:
(add-text-properties (point-min) (point-max)
'(front-sticky t rear-nonsticky t))
That helps for the recipe I gave here, but unfortunately not in Magit.
Michael.
- bug#23079: 25.0.92; Movement commands leave cursor in invisible line, Michael Heerdegen, 2016/03/21
- bug#23079: 25.0.92; Movement commands leave cursor in invisible line, Michael Heerdegen, 2016/03/21
- bug#23079: 25.0.92; Movement commands leave cursor in invisible line, Stefan Monnier, 2016/03/21
- bug#23079: 25.0.92; Movement commands leave cursor in invisible line,
Michael Heerdegen <=
- bug#23079: 25.0.92; Movement commands leave cursor in invisible line, Stefan Monnier, 2016/03/21
- bug#23079: 25.0.92; Movement commands leave cursor in invisible line, Michael Heerdegen, 2016/03/22
- bug#23079: 25.0.92; Movement commands leave cursor in invisible line, Stefan Monnier, 2016/03/22
- bug#23079: 25.0.92; Movement commands leave cursor in invisible line, Michael Heerdegen, 2016/03/22
- bug#23079: 25.0.92; Movement commands leave cursor in invisible line, Stefan Monnier, 2016/03/22
- bug#23079: 25.0.92; Movement commands leave cursor in invisible line, Eli Zaretskii, 2016/03/22
- bug#23079: 25.0.92; Movement commands leave cursor in invisible line, Stefan Monnier, 2016/03/23
- bug#23079: 25.0.92; Movement commands leave cursor in invisible line, Michael Heerdegen, 2016/03/23
- bug#23079: 25.0.92; Movement commands leave cursor in invisible line, Michael Heerdegen, 2016/03/23
- bug#23079: 25.0.92; Movement commands leave cursor in invisible line, Michael Heerdegen, 2016/03/24