From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20510: 25.0.50; Underscore hidden by underline Date: Mon, 30 Sep 2019 09:39:45 +0300 Message-ID: <83ftkee18u.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="16526"; mail-complaints-to="usenet@blaine.gmane.org" Cc: fni-news@pirilampo.org, 20510@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 30 08:41:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEpMw-0004CB-Ip for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Sep 2019 08:41:14 +0200 Original-Received: from localhost ([::1]:46468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEpMv-0005Hx-3K for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Sep 2019 02:41:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38144) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEpMn-0005Hd-32 for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 02:41:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iEpMl-0001Jm-O6 for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 02:41:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47805) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iEpMk-0001JG-FE for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 02:41:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iEpMk-00066m-AF for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 02:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Sep 2019 06:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20510 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 20510-submit@debbugs.gnu.org id=B20510.156982561823386 (code B ref 20510); Mon, 30 Sep 2019 06:41:02 +0000 Original-Received: (at 20510) by debbugs.gnu.org; 30 Sep 2019 06:40:18 +0000 Original-Received: from localhost ([127.0.0.1]:56626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEpLs-00064l-9H for submit@debbugs.gnu.org; Mon, 30 Sep 2019 02:40:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEpLg-00063g-Be for 20510@debbugs.gnu.org; Mon, 30 Sep 2019 02:40:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iEpLa-0000nQ-Ft; Mon, 30 Sep 2019 02:39:50 -0400 Original-Received: from [176.228.60.248] (port=1031 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iEpLY-0003lI-P9; Mon, 30 Sep 2019 02:39:49 -0400 In-reply-to: (message from Stefan Kangas on Mon, 30 Sep 2019 02:10:24 +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: 209.51.188.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:167820 Archived-At: > From: Stefan Kangas > Date: Mon, 30 Sep 2019 02:10:24 +0200 > Cc: Fabrice Niessen , 20510@debbugs.gnu.org > > >> I mean: can't the hl-line-mode code be written in a way that the > >> underline goes in the background of the character, that is that every > >> pixel of every character gets written "over" the underline line? > > > > hl-line-mode cannot control that, and nothing on the Lisp level can. > > > > When hl-line-mode puts its overlay on a line, the characters of that > > line have the hl-line face merged with their face, with the result > > that each character of that line will have the underline face in the > > color you specify. That's all Lisp can do; then along comes the > > display engine and redraws the characters in this new merged face. > > The C code which draws characters is written so that we first draw the > > background, then the characters, then the underline. > > > > So what you are actually asking is that the order of drawing the > > underline (and also overline, strike-through, etc.) is changed so that > > these attributes are drawn _before_ the characters. That should be > > possible by changing the order in the C code, but I have no idea what > > that will do in other situations. It's probably not TRT at least when > > we draw images and other similar stuff instead of characters. > > > > Perhaps someone who knows more than I do about GUI display back-end > > could tell if this is a safe change. > > It sounds to me like this is not something we are interested in doing. > I'm closing this as wontfix. I can also suggest trying to play with the following variables, which affect how the underline is displayed: underline-minimum-offset x-underline-at-descent-line x-use-underline-position-properties