From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#17836: 24.3; `describe-fontset' confused about e.g. ?\C-@ Date: Sun, 03 Nov 2019 17:34:39 +0100 Message-ID: <87pni8apgg.fsf@gnus.org> References: <87vbrsfkwc.fsf@naesten.mooo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="84666"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 17836@debbugs.gnu.org To: Samuel Bronson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 03 17:35:19 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 1iRIqU-000LtL-2o for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Nov 2019 17:35:18 +0100 Original-Received: from localhost ([::1]:54662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRIqS-0001QJ-RL for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Nov 2019 11:35:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50070) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRIqH-0001K6-Dr for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2019 11:35:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRIqG-0006oN-7v for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2019 11:35:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54347) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRIqG-0006oH-4k for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2019 11:35:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iRIqD-0001WR-SM for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2019 11:35:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Nov 2019 16:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17836 X-GNU-PR-Package: emacs Original-Received: via spool by 17836-submit@debbugs.gnu.org id=B17836.15727988855821 (code B ref 17836); Sun, 03 Nov 2019 16:35:01 +0000 Original-Received: (at 17836) by debbugs.gnu.org; 3 Nov 2019 16:34:45 +0000 Original-Received: from localhost ([127.0.0.1]:34935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRIpx-0001Vo-GY for submit@debbugs.gnu.org; Sun, 03 Nov 2019 11:34:45 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]:45510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRIpw-0001Ve-4R for 17836@debbugs.gnu.org; Sun, 03 Nov 2019 11:34:44 -0500 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iRIpr-0007OL-RQ; Sun, 03 Nov 2019 17:34:42 +0100 In-Reply-To: <87vbrsfkwc.fsf@naesten.mooo.com> (Samuel Bronson's message of "Sun, 22 Jun 2014 21:57:07 -0400") 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:170884 Archived-At: Samuel Bronson writes: > When I use `describe-fontset', I get output that starts out something > like: > > Fontset: -misc-fixed-medium-r-semicondensed--13-*-*-*-*-*-fontset-xterm.d= efault > CHAR RANGE (CODE RANGE) > FONT NAME (REQUESTED and [OPENED]) > C-@ .. =F4=8F=BF=BF (#x43 .. #x10FFFF) > -Misc-Fixed-medium-r-semicondensed--13-*-75-75-c-120-ISO10646-1 > > Notice how #x43 is NOT a representation of `?\C-@' but, in fact, of > `?C'? That's fairly strange bug. (Why would you try to extract the > codepoints AFTER formatting the range as a string ...?) Weirdly enough, I'm not able to reproduce this bug reliably. Sometimes I get Fontset: -PfEd-DejaVu Sans Mono-normal-normal-normal-*-25-*-*-*-m-0-fontset= -startup CHAR RANGE (CODE RANGE) FONT NAME (REQUESTED and [OPENED]) C-@ .. DEL -*-*-*-*-*-*-*-*-*-*-*-*-iso10646-1 (i.e., without the hex range) and sometimes I get Fontset: -PfEd-DejaVu Sans Mono-normal-normal-normal-*-25-*-*-*-m-0-fontset= -startup CHAR RANGE (CODE RANGE) FONT NAME (REQUESTED and [OPENED]) C-@ .. (#x43 .. #x3FFF7F) -*-*-*-*-*-*-*-*-*-*-*-*-iso10646-1 Hm... Oh, the first time I run the command in a fresh Emacs, I get the latter? Perhaps displaying the buffer loaded a bunch of fonts that then made this first (large) range go away? Anyway, it seems like this bug is still present in Emacs 27, and there's possibly a new bug, too, with not displaying the hex values in some instances. Eli did pinpoint what the reason for the original bug was, though: > That's because print-fontset-element does this: > > (beginning-of-line) > (let ((from (following-char)) > > IOW, it assumes that there's a single character there, not a > human-readable description of a character, such as "C-@". > > How about submitting a patch that uses 'kbd', say? I'll take a whack at implementing that. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no