From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61196: 30.0.50; X11 rendering of horizontal line in log-edit mode fails with some fonts Date: Tue, 31 Jan 2023 19:44:04 +0200 Message-ID: <83wn521twb.fsf@gnu.org> References: <877cx3xg24.fsf@secretsauce.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21745"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61196@debbugs.gnu.org To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 31 18:45:41 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pMuhQ-0005Qw-BP for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 Jan 2023 18:45:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMugy-00035k-Ao; Tue, 31 Jan 2023 12:45:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMugq-00034g-6O for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2023 12:45:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMugo-0005j8-VV for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2023 12:45:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pMugo-0006Sk-5V for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2023 12:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Jan 2023 17:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61196 X-GNU-PR-Package: emacs Original-Received: via spool by 61196-submit@debbugs.gnu.org id=B61196.167518705824780 (code B ref 61196); Tue, 31 Jan 2023 17:45:02 +0000 Original-Received: (at 61196) by debbugs.gnu.org; 31 Jan 2023 17:44:18 +0000 Original-Received: from localhost ([127.0.0.1]:54908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMug6-0006Rb-AR for submit@debbugs.gnu.org; Tue, 31 Jan 2023 12:44:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMug2-0006RE-O3 for 61196@debbugs.gnu.org; Tue, 31 Jan 2023 12:44:16 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMufx-0005bq-0v; Tue, 31 Jan 2023 12:44:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=+KOftHRoVAh6xzlEqfGB2+VkNeec++AcMKN92YG3d9M=; b=AEZqZ/dN5FEx 4tYYxrflEyuS1ipKxfEzwXlKqZmxKXbMylrl+wZyeGcE6O/P6f5/zsougsrZUrbg7gQvqPQHhg2E7 fDdOKHLnq8m7b1R1oEpKJsFwDbtO1q9U0gTiBx8OHwX4S+CYtYKWACNW1P3SQYzDJeFzMMs8XOcK+ qXGoIzNtQnDAOJb74WsluHsvY5JIva0Kf4Gqfg/iFE+JMf+TGaReTGsVz7GkNitZfMUwU0is7oAkZ 4BhGbpbAXOMGe6/XdhoNxjr4ls8CPOw6NHFB9b/+kUfhw5Ndo8T4p12NbEH+azjuFJMYsVExZBF4D SmWQfZOSHGuuIRcRiyBIoA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMufw-0005Ap-Cf; Tue, 31 Jan 2023 12:44:08 -0500 In-Reply-To: <877cx3xg24.fsf@secretsauce.net> (message from Dima Kogan on Tue, 31 Jan 2023 00:29:39 -0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254537 Archived-At: > From: Dima Kogan > Date: Tue, 31 Jan 2023 00:29:39 -0800 > > Hi. I'm using a bleeding-edge build of emacs from git, but this > particular issue I've been seeing for maybe 6 months now, or maybe even > a year. > > I'm using a GTK build of Emacs running on X11 on GNU/Linux. Some of that > is significant. > > I can tickle the bug by selecting a particular font, entering > log-edit-mode, and entering some text: > > rm /tmp/xxx; > > emacs -Q -geometry 40x8 \ > --eval "(progn (setf (alist-get 'font default-frame-alist) \"-adobe-courier-medium-r-*-*-12-*-*-*-*-*-iso8859-*\") > (require 'log-edit) > (find-file \"/tmp/xxx\") > (log-edit-mode) > (insert \"a:b\\n\\nc d\"))" > > The result looks like the attached 12.png. Note the unrendered 000A > character block. This is a bug. It should be rendering a horizontal line > instead. And if I select a different font, it does work. I can do that > by changing the "-12-" in the above command to "-22-". The result is > attached in 22.png. > > I see it in the wild all the time when making version control commits in > emacs, and typing the commit message. Looks like some subtle issue with font selection. Can you bisect? Initial investigation seems to indicate that this started happening sometime in last August, but I could be mistaken, as what I see here is not exactly what you see (I don't have that font installed). In general, this is what happens in Emacs when some face fails to find a suitable font for a GUI frame. Then we fall back to the "glyphless" display method.