GNU bug report logs -
#23574
24.5; Overzealous underlining in emacs-nox
Previous Next
Reported by: Colin Woodbury <cwoodbury <at> azavea.com>
Date: Wed, 18 May 2016 17:11:01 UTC
Severity: normal
Tags: notabug
Found in version 24.5
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 23574 <at> debbugs.gnu.org (full text, mbox):
> From: John Mastro <john.b.mastro <at> gmail.com>
> Date: Sat, 4 Jun 2016 14:37:28 -0700
> Cc: Eli Zaretskii <eliz <at> gnu.org>, Colin Woodbury <cwoodbury <at> azavea.com>
>
> (progn
> (defface example-underline-face
> '((t :underline t))
> "Example face with underlining")
> (goto-char (point-max))
> (newline)
> (insert (propertize " foo\n bar\n"
> 'font-lock-face
> 'example-underline-face)))
>
> In a graphical frame, the underline only extends one character past the
> visible text (this one extra character presumably being the newline).
> However, in a text frame the underline extends all the way to the end of
> the window.
OK, then my guess was correct after all, and what you see is how Emacs
behaved since v21 at least. If there is a problem here, it's in GUI
frames, not in TTY frames. We always try to make the empty space
after the end of a screen line have the same face as the last
character of that line. With background color, this works in both TTY
and GUI frames, but we cannot do that with underlining without
actually drawing something in that empty space. While it should be
possible to have GUI frames display underline all the way to window
edge, no one has ever requested that, so we didn't bother.
In sum, this is the intended behavior, and if the application doesn't
like it, it should refrain from underlining more than one line.
This bug report was last modified 3 years and 192 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.