From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Character FOO Date: Wed, 25 Jan 2012 09:48:09 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1327452512 15439 80.91.229.12 (25 Jan 2012 00:48:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2012 00:48:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 25 01:48:28 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rpr2K-0001I2-Bk for ged-emacs-devel@m.gmane.org; Wed, 25 Jan 2012 01:48:28 +0100 Original-Received: from localhost ([::1]:59977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rpr2J-00073n-Ps for ged-emacs-devel@m.gmane.org; Tue, 24 Jan 2012 19:48:27 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rpr2G-00073X-Tl for emacs-devel@gnu.org; Tue, 24 Jan 2012 19:48:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rpr2F-0006yl-JN for emacs-devel@gnu.org; Tue, 24 Jan 2012 19:48:24 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:63709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rpr2F-0006xZ-2y; Tue, 24 Jan 2012 19:48:23 -0500 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id q0P0mApF027486; Wed, 25 Jan 2012 09:48:10 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id q0P0m9Mo005353; Wed, 25 Jan 2012 09:48:10 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id q0P0m9gr002675; Wed, 25 Jan 2012 09:48:09 +0900 (JST) env-from (handa@m17n.org) In-Reply-To: (message from Eli Zaretskii on Tue, 24 Jan 2012 04:18:10 -0500) X-detected-operating-system: by eggs.gnu.org: Solaris 9 X-Received-From: 150.29.246.133 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:147897 Archived-At: 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. --- Kenichi Handa handa@m17n.org