From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Character FOO Date: Sat, 28 Jan 2012 12:35:14 +0200 Message-ID: <83sjj0xggt.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1327769638 16279 80.91.229.3 (28 Jan 2012 16:53:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Jan 2012 16:53:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 28 17:53:56 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RrBXH-0006vi-8y for ged-emacs-devel@m.gmane.org; Sat, 28 Jan 2012 17:53:55 +0100 Original-Received: from localhost ([::1]:39019 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rr5fV-0003Ai-6E for ged-emacs-devel@m.gmane.org; Sat, 28 Jan 2012 05:38:01 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rr5fS-0003Ad-6g for emacs-devel@gnu.org; Sat, 28 Jan 2012 05:37:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rr5fP-00082I-Qg for emacs-devel@gnu.org; Sat, 28 Jan 2012 05:37:58 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:54272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rr5fP-000827-KH for emacs-devel@gnu.org; Sat, 28 Jan 2012 05:37:55 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LYI001007TNX200@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sat, 28 Jan 2012 12:37:17 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.228.102.195]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LYI002TF8648I00@a-mtaout22.012.net.il>; Sat, 28 Jan 2012 12:37:17 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147994 Archived-At: > From: Kenichi Handa > Cc: emacs-devel@gnu.org > Date: Wed, 25 Jan 2012 09:48:09 +0900 > > In article , Eli Zaretskii writes: > > > In "emacs -Q" try this: > > M-: (put-text-property 149 154 'display "FOO") RET > > > Then move point to buffer position 149 (under F from "FOO"), and type > > "C-u C-x =". The popped up buffer shows in its first line that the > > character at point is "FOO" (while the echo area says it's `e'). > > > Bug? feature? > > It's a feature, but it has a bad effect in the above case. > > C-u C-x = (describe-char) tries to display the character at position in > *Help* buffer as the same way as in the original buffer by > adding the same text properties. > > (setq item-list > `(("character" > ,(format "%s (%d, #o%o, #x%x)" > (apply 'propertize char-description > (text-properties-at pos)) > char char char)) > > Changing that part to something like this: > > (setq item-list > `(("character" > ,(format "%s (displayed as %s) (%d, #o%o, #x%x)" > char-description > (apply 'propertize char-description > (text-properties-at pos)) > char char char)) > > may be an improvement. Thanks, I installed this change.