unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#47893: 27.1; `display-line-numbers-mode`, line numbers hidden with multiline overlays
@ 2021-04-19 14:46 Daniel Mendler
  2021-04-19 14:55 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Mendler @ 2021-04-19 14:46 UTC (permalink / raw)
  To: 47893

When putting an overlay over multiple lines, the line numbers of
`display-line-numbers-mode` are hidden.

(defun bug ()
   (display-line-numbers-mode)
   (goto-char (point-min))
   (let ((ov (make-overlay (line-beginning-position)
                           (save-excursion (forward-line 4)
                                           (line-beginning-position)))))
     (overlay-put ov 'invisible t)
     (overlay-put ov 'before-string "line1\nline2\nline3\line3\nline4\n")))

I've also observed the issue with Emacs 28.

In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, 
cairo version 1.16.0)
  of 2021-02-09, modified by Debian built on 3df710f593d9
Repository revision: b0229d4bbaea7fcddffced393512c650212830db
Repository branch: deb/emacs/d/sid/master
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux 10 (buster)





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-19 15:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-19 14:46 bug#47893: 27.1; `display-line-numbers-mode`, line numbers hidden with multiline overlays Daniel Mendler
2021-04-19 14:55 ` Eli Zaretskii
2021-04-19 15:10   ` Daniel Mendler
2021-04-19 15:29     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).