GNU bug report logs -
#47603
comint sets '(rear-nonsticky t) on entire prompt, disabling 'cursor-intangible
Previous Next
Reported by: JD Smith <jdtsmith <at> gmail.com>
Date: Mon, 5 Apr 2021 18:08:01 UTC
Severity: normal
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Comint sets ‘(rear-nonsticky t) on the entire detected prompt text, which prevents `cursor-intangible from functioning correctly when applied to the prompt. As Stefan put it:
I suspect the issue comes from the difference between `get-pos-property` and `get-char-property`: positions (like `point`) are not placed on a character but between two characters. But text properties only apply to characters. So the properties that are "on a position" are based on what properties would a character inherit if it where inserted at that position.
By default text properties are front-nonstick and rear-sticky, so basically a position gets its properties from the char right before it. But if you set (rear-nonsticky t), then you get no properties at all at that position.
This causes issues when "applying (rear-nonsticky t) a bit too generously, e.g. to all the chars in the prompt rather than only to the last one."
[Message part 2 (text/html, inline)]
This bug report was last modified 4 years and 44 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.