unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Line height issues with display-line-number-mode
@ 2019-05-07 16:40 Clément Pit-Claudel
  2019-05-07 17:12 ` Noam Postavsky
  2019-05-07 18:31 ` Eli Zaretskii
  0 siblings, 2 replies; 36+ messages in thread
From: Clément Pit-Claudel @ 2019-05-07 16:40 UTC (permalink / raw)
  To: Emacs developers

[-- Attachment #1: Type: text/plain, Size: 837 bytes --]

Hi all,

I have a package (quick-peek) that writes code like the following to display thin lines:

(with-current-buffer (get-buffer-create "*test*")
  (insert "test\ntest\ntest")
  (let ((ov (make-overlay 1 6))
        (str (propertize "\n" 'face '(:height 1 :background "#edd400"))))
    (overlay-put ov 'after-string str))
  (pop-to-buffer (current-buffer)))

With display-line-numbers-mode, however, the thin line to be a full character tall.  I have attached screenshots.

Is there a workaround for this issue?

More generally, is there a way to prevent line numbers from affecting the height of the corresponding line?  For example in compact-docstrings I shrink blank lines in documentation strings to half their usual height, but enabling display-line-numbers-mode stretches those lines back to regular height.

Thanks,
Clément.

[-- Attachment #2: no-line-numbers.png --]
[-- Type: image/png, Size: 7163 bytes --]

[-- Attachment #3: with-line-numbers.png --]
[-- Type: image/png, Size: 8338 bytes --]

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

end of thread, other threads:[~2019-05-10 13:24 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-07 16:40 Line height issues with display-line-number-mode Clément Pit-Claudel
2019-05-07 17:12 ` Noam Postavsky
2019-05-07 18:36   ` Eli Zaretskii
2019-05-07 19:00     ` Eli Zaretskii
2019-05-07 19:09       ` Stefan Monnier
2019-05-07 19:43         ` Eli Zaretskii
2019-05-07 20:30           ` Stefan Monnier
2019-05-08  6:43             ` Eli Zaretskii
2019-05-08 13:39               ` Stefan Monnier
2019-05-08 14:05                 ` Eli Zaretskii
2019-05-08 14:13                   ` Noam Postavsky
2019-05-08 15:04                     ` Stefan Monnier
2019-05-08 18:39                       ` Noam Postavsky
2019-05-08 18:54                         ` Eli Zaretskii
2019-05-10  6:15                           ` Kévin Le Gouguec
2019-05-10  7:58                             ` Eli Zaretskii
2019-05-10 13:24                             ` Stefan Monnier
2019-05-08 14:17                   ` Stefan Monnier
2019-05-08 17:30                     ` Eli Zaretskii
2019-05-08 17:46                       ` Stefan Monnier
2019-05-08 18:02                         ` Eli Zaretskii
2019-05-08 18:39                           ` Stefan Monnier
2019-05-08 18:48                             ` Eli Zaretskii
2019-05-08 19:03                               ` Stefan Monnier
2019-05-07 19:49         ` Ergus
2019-05-08  5:51           ` Eli Zaretskii
2019-05-08 13:40             ` Stefan Monnier
2019-05-08 14:07               ` Eli Zaretskii
2019-05-07 18:31 ` Eli Zaretskii
2019-05-07 21:08   ` Clément Pit-Claudel
2019-05-08  7:01     ` Eli Zaretskii
2019-05-08 12:24       ` Clément Pit-Claudel
2019-05-08 14:00         ` Eli Zaretskii
2019-05-08 18:04           ` Clément Pit-Claudel
2019-05-08 18:25             ` Eli Zaretskii
2019-05-08 18:45             ` Stefan Monnier

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).