[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9034: point adjustment (with invisible text) moves to the next line
From: |
Lars Ingebrigtsen |
Subject: |
bug#9034: point adjustment (with invisible text) moves to the next line |
Date: |
Thu, 26 Aug 2021 18:33:29 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> Just doing `M-: 4 RET' will result in this code adjusting point in
>> the buffer. Doing, for instance, `M-x foo RET' (where `foo' does
>> nothing) does not result in this point movement.
>>
>> So is `M-:' doing some weird thing in the original buffer to trigger
>> this oddity?
>
> Doing M-: in what part of the recipe?
Eval this:
(progn (switch-to-buffer "test")
(insert "aline1\nbline2\ncline3\n")
(put-text-property 7 14 'invisible t) ; region [\nbline2]
(goto-char (point-min)))
Then
C-e
M-: 4 RET
This will move point to the start of the next line about half the time.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no