GNU bug report logs -
#27427
26.0.50; Native line numbers lead to display error in company-mode popup
Previous Next
Reported by: Alexander Miller <alexanderm <at> web.de>
Date: Mon, 19 Jun 2017 16:51:02 UTC
Severity: normal
Found in version 26.0.50
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
Message #83 received at 27427 <at> debbugs.gnu.org (full text, mbox):
> Cc: alexanderm <at> web.de, 27427 <at> debbugs.gnu.org
> From: Dmitry Gutov <dgutov <at> yandex.ru>
> Date: Sun, 25 Jun 2017 17:46:23 +0300
>
> On 6/25/17 5:13 PM, Eli Zaretskii wrote:
>
> > The displayed line number reflects the line of the buffer positions
> > corresponding to what's on that screen line. If none of the buffer
> > positions appear on that screen line, it's the line of the buffer
> > position(s) "covered" by the display string/overlay which generates
> > the display.
>
> It didn't look like this in the previous version. Might be considered a
> bit annoying, repeating the number several times.
It wasn't supposed to be repeated, it was supposed to appear only
once. Hmm... I think I see what causes this, let me try to come up
with a fix.
> BTW, by that logic, the last empty line should have a number as well: it
> does correspond to a buffer position.
No, it doesn't correspond to any buffer position: there's never any
character at point-max.
> (with-current-buffer (get-buffer-create "popup-test.el")
> (setq display-line-numbers t)
> (insert "aaaaaaa
> aaaaaaa
> aaaaaaa
> aaaaaaa
> aaaaaaa
> ")
>
> (let ((ov (make-overlay (point-max) (point-max))))
> (overlay-put ov 'after-string "bbbbbb\nbbbbbb\n")
> (overlay-put ov 'display-line-numbers-disable t)))
>
> After that, the buffer popup-test.el shows the "bbbbbb" lines prepended
> with the empty line number columns. I'd rather they weren't there.
OK, thanks, I will look into this case.
This bug report was last modified 7 years and 314 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.