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: Tue, 07 Jun 2016 18:50:25 +0300 Message-ID: <83eg89roam.fsf@gnu.org> References: <83porxwg1f.fsf@gnu.org> <83d1nxudrb.fsf@gnu.org> <83wpm3tyvn.fsf@gnu.org> <83twh7tt83.fsf@gnu.org> <83r3cbt5l3.fsf@gnu.org> <83h9d6tl3j.fsf@gnu.org> <5755AACE.8030303@gmx.at> <831t4ataep.fsf@gnu.org> <57568F86.8040902@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1465315239 2813 80.91.229.3 (7 Jun 2016 16:00:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Jun 2016 16:00:39 +0000 (UTC) Cc: 23574@debbugs.gnu.org, john.b.mastro@gmail.com, cwoodbury@azavea.com, npostavs@users.sourceforge.net To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 07 18:00:28 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 1bAJKr-0001JE-Og for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jun 2016 17:54:34 +0200 Original-Received: from localhost ([::1]:51143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAJKr-0006Cg-1t for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jun 2016 11:54:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAJHX-0002Lu-7E for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2016 11:51:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAJHS-0005Gl-0Z for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2016 11:51:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAJHR-0005Gh-TR for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2016 11:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bAJHR-00021i-MZ for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2016 11:51: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: Tue, 07 Jun 2016 15:51: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: notabug Original-Received: via spool by 23574-submit@debbugs.gnu.org id=B23574.14653146087726 (code B ref 23574); Tue, 07 Jun 2016 15:51:01 +0000 Original-Received: (at 23574) by debbugs.gnu.org; 7 Jun 2016 15:50:08 +0000 Original-Received: from localhost ([127.0.0.1]:58903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAJGa-00020Y-7e for submit@debbugs.gnu.org; Tue, 07 Jun 2016 11:50:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAJGY-000200-1B for 23574@debbugs.gnu.org; Tue, 07 Jun 2016 11:50:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAJGR-00054q-ME for 23574@debbugs.gnu.org; Tue, 07 Jun 2016 11:50:00 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAJGK-00053Q-3y; Tue, 07 Jun 2016 11:49:52 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4677 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bAJGH-0001q9-Jh; Tue, 07 Jun 2016 11:49:50 -0400 In-reply-to: <57568F86.8040902@gmx.at> (message from martin rudalics on Tue, 07 Jun 2016 11:10:30 +0200) 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:119214 Archived-At: > Date: Tue, 07 Jun 2016 11:10:30 +0200 > From: martin rudalics > CC: npostavs@users.sourceforge.net, 23574@debbugs.gnu.org, > john.b.mastro@gmail.com, cwoodbury@azavea.com > > (defcustom face-extend-to-window-edge nil > "Non-nil means extend face of last character on line to window edge. > This variable specifies whether the space following the last > character on a line is decorated using properties of that > character. nil means do not extend any properties of that > character. t means extend all properties of that character. > > A property list means to determine the value of any such property > from that list. If a property is not on that list, that property > is not extended. The special value 'inherit' means to inherit > the value for that property from the last character on the line. > A function specifies the function to return the value of that > property. Any other value means to extend that as value for that > property.") Talk about over-specification ;-) I hope you realize how some of that will make redisplay much more expensive? How about the following more modest alternative? (defcustom face-extend-to-window-edge t "Non-nil means extend face of last character on line to window edge. Certain face attributes, if present in the face of the last character of a line and different from those of the default face, cause the empty space following the end of text on the line to be drawn with those attributes, to give the empty space appearance similar to that of the preceding text. These attributes are those which affect the background of a face: `:background', `:stipple', `:box', `:underline', `:overline', and `:strike-through'. By default, if the face of a line's last character has any of these attributes, and the value is different from that of the default face, the empty space following the line's text will be drawn in the face of the last character. This variable allows fine-tuning which attributes trigger the face extension. The default value of t means any of the mentioned attributes will cause face extension. The value of nil means face extension is turned off. A value that is a list of attributes will extend the face only if any of the attributes from the list are present in the last character's face. Note that only attributes from the above list are meaningful in list values of this variable.")