From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23574: 24.5; Overzealous underlining in emacs-nox Date: Sun, 05 Jun 2016 18:54:20 +0300 Message-ID: <83wpm3tyvn.fsf@gnu.org> References: <83porxwg1f.fsf@gnu.org> <83d1nxudrb.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1465142129 326 80.91.229.3 (5 Jun 2016 15:55:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Jun 2016 15:55:29 +0000 (UTC) Cc: 23574@debbugs.gnu.org, cwoodbury@azavea.com To: John Mastro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 05 17:55:18 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b9aOP-0002n0-0w for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jun 2016 17:55:13 +0200 Original-Received: from localhost ([::1]:37698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9aOO-00032i-A1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jun 2016 11:55:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9aOI-00030u-4x for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2016 11:55:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9aOE-0001pE-1n for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2016 11:55:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9aOD-0001p9-WC for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2016 11:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b9aOD-0001PD-RH for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2016 11:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jun 2016 15:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23574 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23574-submit@debbugs.gnu.org id=B23574.14651420435333 (code B ref 23574); Sun, 05 Jun 2016 15:55:01 +0000 Original-Received: (at 23574) by debbugs.gnu.org; 5 Jun 2016 15:54:03 +0000 Original-Received: from localhost ([127.0.0.1]:55754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9aNH-0001Nx-1H for submit@debbugs.gnu.org; Sun, 05 Jun 2016 11:54:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9aNE-0001NM-Tm for 23574@debbugs.gnu.org; Sun, 05 Jun 2016 11:54:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9aN8-0001Uu-Sj for 23574@debbugs.gnu.org; Sun, 05 Jun 2016 11:53:55 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9aN3-0001T5-E3; Sun, 05 Jun 2016 11:53:49 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3377 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b9aN2-0005nk-JJ; Sun, 05 Jun 2016 11:53:48 -0400 In-reply-to: (message from John Mastro on Sat, 4 Jun 2016 14:37:28 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:119112 Archived-At: > From: John Mastro > Date: Sat, 4 Jun 2016 14:37:28 -0700 > Cc: Eli Zaretskii , Colin Woodbury > > (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.