bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20847: [display engine] 25.0.50; company-mode popup makes point jump


From: Dmitry Gutov
Subject: bug#20847: [display engine] 25.0.50; company-mode popup makes point jump to an entirely different location
Date: Mon, 22 Jun 2015 16:40:35 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0

On 06/22/2015 05:45 AM, Eli Zaretskii wrote:

Hmm... would it be possible to put a 'cursor' property on the newline
in the buffer that follows the "hel" text?  That might be all that's
needed to DTRT.

Possible, yes, but I'd rather not track an additional buffer
modification I'd have to undo later.

I understand, but doing that will allow an efficient and clean (from
the user POV) solution to this tricky situation.

I think any reasonable solution should look efficient and clean to the user.

This doesn't seem to have any effect, though. Adding

      (when (eq ?\n (char-after (overlay-start ov)))
        (let ((inhibit-modification-hooks t))
(put-text-property (overlay-start ov) (1+ (overlay-start ov)) 'cursor t)))

to the end of company-pseudo-tooltip-unhide creates no change in the behavior.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]