From unknown Sun Jun 15 08:32:43 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#20510 <20510@debbugs.gnu.org> To: bug#20510 <20510@debbugs.gnu.org> Subject: Status: 25.0.50; Underscore hidden by underline Reply-To: bug#20510 <20510@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:32:43 +0000 retitle 20510 25.0.50; Underscore hidden by underline reassign 20510 emacs submitter 20510 Fabrice Niessen severity 20510 minor tag 20510 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Tue May 05 16:13:37 2015 Received: (at submit) by debbugs.gnu.org; 5 May 2015 20:13:37 +0000 Received: from localhost ([127.0.0.1]:35600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YpjDk-0002tV-V5 for submit@debbugs.gnu.org; Tue, 05 May 2015 16:13:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35283) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YpjDi-0002tH-Vb for submit@debbugs.gnu.org; Tue, 05 May 2015 16:13:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpjDd-0006Du-15 for submit@debbugs.gnu.org; Tue, 05 May 2015 16:13:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpjDc-0006Dq-Tu for submit@debbugs.gnu.org; Tue, 05 May 2015 16:13:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpjDb-0007N7-U3 for bug-gnu-emacs@gnu.org; Tue, 05 May 2015 16:13:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpjDV-0006BN-7f for bug-gnu-emacs@gnu.org; Tue, 05 May 2015 16:13:27 -0400 Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:64902 helo=mail.missioncriticalit.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpjDV-0006Ad-2A for bug-gnu-emacs@gnu.org; Tue, 05 May 2015 16:13:21 -0400 Received: from MUNDANEUM.i-did-not-set--mail-host-address--so-tickle-me (unknown [10.10.4.62]) by mail.missioncriticalit.com (Postfix) with ESMTPS id 054AE500CF8 for ; Tue, 5 May 2015 22:13:18 +0200 (CEST) From: Fabrice Niessen To: bug-gnu-emacs@gnu.org Subject: 25.0.50; Underscore hidden by underline Organization: My Googlest X-Url: http://www.MyGooglest.com/fni X-Archive: encrypt Date: Tue, 05 May 2015 22:13:14 +0200 Message-ID: <86r3qubx5x.fsf@example.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) When `hl-line' is enabled with the `underline' attribute, and when the font is "DejaVu Sans Mono" in 8 pt, then underscores get overridden by the underline (of the current, highlighted, line). Minimal config to reproduce the problem: --8<---------------cut here---------------start------------->8--- (modify-all-frames-parameters '((font . "DejaVu Sans Mono-8"))) (global-hl-line-mode 1) (set-face-attribute 'hl-line nil :underline "#FFFF19" :background "#F6FECD") --8<---------------cut here---------------end--------------->8--- Screenshot: http://screencast.com/t/UXoET9RHs0E. Is this normal (while this does not occur with 9 or 10 pt faces)? If yes, is there a way to get the hl-line's underline in the background? Best regards, Fabrice From debbugs-submit-bounces@debbugs.gnu.org Wed May 06 13:14:24 2015 Received: (at 20510) by debbugs.gnu.org; 6 May 2015 17:14:24 +0000 Received: from localhost ([127.0.0.1]:36489 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yq2tr-0007vi-Hu for submit@debbugs.gnu.org; Wed, 06 May 2015 13:14:23 -0400 Received: from mtaout28.012.net.il ([80.179.55.184]:57232) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yq2tn-0007vK-Uj for 20510@debbugs.gnu.org; Wed, 06 May 2015 13:14:21 -0400 Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NNX00K00U84TY00@mtaout28.012.net.il> for 20510@debbugs.gnu.org; Wed, 06 May 2015 20:12:02 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNX00K9AUG2JR10@mtaout28.012.net.il>; Wed, 06 May 2015 20:12:02 +0300 (IDT) Date: Wed, 06 May 2015 20:13:11 +0300 From: Eli Zaretskii Subject: Re: bug#20510: 25.0.50; Underscore hidden by underline In-reply-to: <86r3qubx5x.fsf@example.com> X-012-Sender: halo1@inter.net.il To: Fabrice Niessen Message-id: <83mw1hr5nc.fsf@gnu.org> References: <86r3qubx5x.fsf@example.com> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20510 Cc: 20510@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Fabrice Niessen > Date: Tue, 05 May 2015 22:13:14 +0200 > > When `hl-line' is enabled with the `underline' attribute, and when the > font is "DejaVu Sans Mono" in 8 pt, then underscores get overridden by > the underline (of the current, highlighted, line). Well, the underline _must_ overwrite _some_ part of the character. > Screenshot: http://screencast.com/t/UXoET9RHs0E. > > Is this normal Yes, this is how the code was written to work. > (while this does not occur with 9 or 10 pt faces)? It depends on the font, yes. You can try tweaking the value of x-use-underline-position-properties and/or of x-underline-at-descent-line, they might fix your problem with this font. > If yes, is there a way to get the hl-line's underline in the background? Not sure what you mean by that. From debbugs-submit-bounces@debbugs.gnu.org Wed May 06 15:00:32 2015 Received: (at 20510) by debbugs.gnu.org; 6 May 2015 19:00:33 +0000 Received: from localhost ([127.0.0.1]:36532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yq4YZ-00029j-H3 for submit@debbugs.gnu.org; Wed, 06 May 2015 15:00:32 -0400 Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:23570 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yq4YW-00026H-QT for 20510@debbugs.gnu.org; Wed, 06 May 2015 15:00:29 -0400 Received: from MUNDANEUM.i-did-not-set--mail-host-address--so-tickle-me (unknown [10.10.4.62]) by mail.missioncriticalit.com (Postfix) with ESMTPS id F1905503D4C; Wed, 6 May 2015 21:00:21 +0200 (CEST) From: Fabrice Niessen To: Eli Zaretskii Subject: Re: bug#20510: 25.0.50; Underscore hidden by underline Organization: My Googlest References: <86r3qubx5x.fsf@example.com> <83mw1hr5nc.fsf@gnu.org> X-Url: http://www.MyGooglest.com/fni X-Archive: encrypt Date: Wed, 06 May 2015 21:00:16 +0200 In-Reply-To: <83mw1hr5nc.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 06 May 2015 20:13:11 +0300") Message-ID: <86r3qtcz0f.fsf@example.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 20510 Cc: 20510@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) Eli Zaretskii wrote: > Well, the underline _must_ overwrite _some_ part of the character. > >> If yes, is there a way to get the hl-line's underline in the background? > > Not sure what you mean by that. 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? Best regards, Fabrice From debbugs-submit-bounces@debbugs.gnu.org Wed May 06 15:22:36 2015 Received: (at 20510) by debbugs.gnu.org; 6 May 2015 19:22:36 +0000 Received: from localhost ([127.0.0.1]:36547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yq4tv-0005Xo-NU for submit@debbugs.gnu.org; Wed, 06 May 2015 15:22:36 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:56074) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yq4tr-0005XY-Nn for 20510@debbugs.gnu.org; Wed, 06 May 2015 15:22:33 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NNY0040009KIN00@a-mtaout20.012.net.il> for 20510@debbugs.gnu.org; Wed, 06 May 2015 22:21:23 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNY004W90FM3UA0@a-mtaout20.012.net.il>; Wed, 06 May 2015 22:21:23 +0300 (IDT) Date: Wed, 06 May 2015 22:21:31 +0300 From: Eli Zaretskii Subject: Re: bug#20510: 25.0.50; Underscore hidden by underline In-reply-to: <86r3qtcz0f.fsf@example.com> X-012-Sender: halo1@inter.net.il To: Fabrice Niessen Message-id: <83k2wlqzpg.fsf@gnu.org> References: <86r3qubx5x.fsf@example.com> <83mw1hr5nc.fsf@gnu.org> <86r3qtcz0f.fsf@example.com> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20510 Cc: 20510@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Fabrice Niessen > Cc: 20510@debbugs.gnu.org > Date: Wed, 06 May 2015 21:00:16 +0200 > > 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 29 20:10:44 2019 Received: (at 20510) by debbugs.gnu.org; 30 Sep 2019 00:10:44 +0000 Received: from localhost ([127.0.0.1]:56187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEjH2-00028R-4A for submit@debbugs.gnu.org; Sun, 29 Sep 2019 20:10:44 -0400 Received: from mail-pl1-f170.google.com ([209.85.214.170]:38997) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEjGz-00027v-Cp for 20510@debbugs.gnu.org; Sun, 29 Sep 2019 20:10:41 -0400 Received: by mail-pl1-f170.google.com with SMTP id s17so3172331plp.6 for <20510@debbugs.gnu.org>; Sun, 29 Sep 2019 17:10:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=ZAI2TecvSHAW4XKlBX4Agsh1VyhnPXGErHVXyn1jAJM=; b=dKkXHBG207Vh8a8Se8rXWVDlGdho9otDE1wq7k+4b3MDT4V5AZerSOg/lC/El3rwPK ueqCHshlqFNzvRxY3Eeqkqz+8PaaNmLEa6rumRczSKv9b3n3vEe380Khj/Yk2PH3/9to Jof/IQFEuO0c7ZiW/RxIG9AhayUYsNwub1Kd0gR3stp8hk6KwkXnpx0GVwZ7ofp0zn1M WVocq7+uLKkC0ZM2EE5TG0iBliXWhsyE42eFjBqR9VATaolOMycQkLEH+JPOSQUAPy3m GJkrt30sGvhrJhR7B+UAgqq6RdR/BlJ++xqRpXIAjcAxw2tgKGzsPj3wOLdV8uKqeeYF AEQg== X-Gm-Message-State: APjAAAUWE3q94fyyyI0T8nlsD9xTrqir5GIFsufu031NHYpOAPiu8INB c2q8r+lKKCz4Nx5E1flKtj2C8V4UUFfZAJdrnZU= X-Google-Smtp-Source: APXvYqw3ryt2yBpS9Gd9dqByOu7YJ4oYmLWlJfhks/0nTVcPr8XiOINGFWkZQ5XlmJUMdaWqnBKrEhr4JoPlvaWy8YI= X-Received: by 2002:a17:902:a515:: with SMTP id s21mr17849974plq.259.1569802235373; Sun, 29 Sep 2019 17:10:35 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Mon, 30 Sep 2019 02:10:24 +0200 Message-ID: Subject: Re: bug#20510: 25.0.50; Underscore hidden by underline To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20510 Cc: Fabrice Niessen , 20510@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 20510 + wontfix close 20510 thanks Eli Zaretskii writes: >> From: Fabrice Niessen >> Cc: 20510@debbugs.gnu.org >> Date: Wed, 06 May 2015 21:00:16 +0200 >> >> 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. Please reopen if I'm mistaken. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 30 02:40:18 2019 Received: (at 20510) by debbugs.gnu.org; 30 Sep 2019 06:40:18 +0000 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 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 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 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 Date: Mon, 30 Sep 2019 09:39:45 +0300 Message-Id: <83ftkee18u.fsf@gnu.org> From: Eli Zaretskii To: Stefan Kangas In-reply-to: (message from Stefan Kangas on Mon, 30 Sep 2019 02:10:24 +0200) Subject: Re: bug#20510: 25.0.50; Underscore hidden by underline References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20510 Cc: fni-news@pirilampo.org, 20510@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > 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 From unknown Sun Jun 15 08:32:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 28 Oct 2019 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator