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#17836: 24.3; `describe-fontset' confused about e.g. ?\C-@ Date: Mon, 23 Jun 2014 19:17:01 +0300 Message-ID: <83a993sirm.fsf@gnu.org> References: <87vbrsfkwc.fsf@naesten.mooo.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1403541222 23377 80.91.229.3 (23 Jun 2014 16:33:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2014 16:33:42 +0000 (UTC) Cc: 17836@debbugs.gnu.org To: Samuel Bronson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 23 18:33:34 2014 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 1Wz7BU-0002cD-9Y for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Jun 2014 18:33:32 +0200 Original-Received: from localhost ([::1]:54759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz7BT-0001JD-OE for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Jun 2014 12:33:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz7AB-0008DC-GC for bug-gnu-emacs@gnu.org; Mon, 23 Jun 2014 12:32:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wz7A2-0001Fb-P8 for bug-gnu-emacs@gnu.org; Mon, 23 Jun 2014 12:32:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz7A2-0001FP-Mo for bug-gnu-emacs@gnu.org; Mon, 23 Jun 2014 12:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wz6wU-0002T1-36 for bug-gnu-emacs@gnu.org; Mon, 23 Jun 2014 12:18: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, 23 Jun 2014 16:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17836 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17836-submit@debbugs.gnu.org id=B17836.14035402369403 (code B ref 17836); Mon, 23 Jun 2014 16:18:02 +0000 Original-Received: (at 17836) by debbugs.gnu.org; 23 Jun 2014 16:17:16 +0000 Original-Received: from localhost ([127.0.0.1]:58412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wz6vk-0002Rb-20 for submit@debbugs.gnu.org; Mon, 23 Jun 2014 12:17:16 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:64954) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wz6vh-0002RE-4x for 17836@debbugs.gnu.org; Mon, 23 Jun 2014 12:17:14 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0N7M00I00Q7EHH00@a-mtaout21.012.net.il> for 17836@debbugs.gnu.org; Mon, 23 Jun 2014 19:17:06 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N7M00I3YQKHD290@a-mtaout21.012.net.il>; Mon, 23 Jun 2014 19:17:06 +0300 (IDT) In-reply-to: <87vbrsfkwc.fsf@naesten.mooo.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:90700 Archived-At: > From: Samuel Bronson > Date: Sun, 22 Jun 2014 21:57:07 -0400 > > Fontset: -misc-fixed-medium-r-semicondensed--13-*-*-*-*-*-fontset-xterm.default > CHAR RANGE (CODE RANGE) > FONT NAME (REQUESTED and [OPENED]) > C-@ .. 􏿿 (#x43 .. #x10FFFF) > -Misc-Fixed-medium-r-semicondensed--13-*-75-75-c-120-ISO10646-1 > --8<---------------cut here---------------end--------------->8--- > > Notice how #x43 is NOT a representation of `?\C-@' but, in fact, of > `?C'? 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? > Why would you try to extract the codepoints AFTER formatting the > range as a string ...? Because the formatting of the codepoints is done by describe-vector, which doesn't pass the codepoints to print-fontset-element. So it needs to reverse-engineer the codepoints from the text that was already inserted into the buffer.