From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YE Qianchuan Newsgroups: gmane.emacs.bugs Subject: bug#13698: 24.2; Display script symbol name when calling `describe-char' Date: Wed, 13 Feb 2013 14:09:23 +0800 Message-ID: <511B2E13.6070308@gmail.com> References: <878v6tv3r2.fsf@yeqianchuan-pc.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050804080904010901010800" X-Trace: ger.gmane.org 1360735898 9125 80.91.229.3 (13 Feb 2013 06:11:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Feb 2013 06:11:38 +0000 (UTC) To: 13698@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 13 07:11:59 2013 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 1U5VZV-0006q0-Cq for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Feb 2013 07:11:57 +0100 Original-Received: from localhost ([::1]:49506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5VZB-0005jP-MZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Feb 2013 01:11:37 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5VZ8-0005jJ-VM for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 01:11:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5VZ7-0007Pw-MA for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 01:11:34 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5VZ7-0007Pj-Ik for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 01:11:33 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U5VZa-0002Tc-9Z for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2013 01:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: YE Qianchuan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Feb 2013 06:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13698 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13698-submit@debbugs.gnu.org id=B13698.13607358989479 (code B ref 13698); Wed, 13 Feb 2013 06:12:02 +0000 Original-Received: (at 13698) by debbugs.gnu.org; 13 Feb 2013 06:11:38 +0000 Original-Received: from localhost ([127.0.0.1]:53134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5VZB-0002Sn-Dx for submit@debbugs.gnu.org; Wed, 13 Feb 2013 01:11:38 -0500 Original-Received: from mail-ie0-f170.google.com ([209.85.223.170]:38693) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5VZ7-0002Sd-UJ for 13698@debbugs.gnu.org; Wed, 13 Feb 2013 01:11:34 -0500 Original-Received: by mail-ie0-f170.google.com with SMTP id c11so1263911ieb.15 for <13698@debbugs.gnu.org>; Tue, 12 Feb 2013 22:11:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type; bh=G5I1Zw0Dke9WVepD0/TwOHWhq8ILVQzZzUJc9YvHlxY=; b=EIcNqY/jwsW5PfotQZ3Jq51AUjlI00DKi3XjSTngd9OQFL2/xVN59JSx4yEPi8Gc4i Ekpm2/Qhwg05/NqvrmhdUhaGo0IjElG5R107v1gb+bTNJL+3OtPebei4uzWOAW4C9P6B MykzrczX+G0+4FJ5TloyGcFy2McBcOZhfGuIf3FZH0votSnMTvXHo8nZzhb3EsGYRR8a 6QCeLNjp4boHZIedXNH3L7FBhDs0auAdJoH99H45VPv3H9Oa3VrYdGb+Ak/ZZk17w1xK /TQYU8X3iuw0tr8xaU2PQwi8FLAHY/ZyOWAUfIklvsjz5aFbNZAJGPyKyB1KBYn5q162 GlQg== X-Received: by 10.42.94.8 with SMTP id z8mr28201170icm.36.1360735863277; Tue, 12 Feb 2013 22:11:03 -0800 (PST) Original-Received: from [192.168.1.101] ([210.38.1.73]) by mx.google.com with ESMTPS id x7sm38722988igk.8.2013.02.12.22.11.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Feb 2013 22:11:02 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130109 Thunderbird/17.0.2 In-Reply-To: <878v6tv3r2.fsf@yeqianchuan-pc.i-did-not-set--mail-host-address--so-tickle-me> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:71146 Archived-At: This is a multi-part message in MIME format. --------------050804080904010901010800 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 02/13/2013 01:30 AM, YE Qianchuan wrote: > I also wrote a simple patch for this. > I improved this patch. If a char doesn't belong to any script, now `describe-char' do not show script entity, rather than display "script: nil". --------------050804080904010901010800 Content-Type: text/x-patch; name="describe-char-display-script-v2.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="describe-char-display-script-v2.patch" diff --git a/lisp/descr-text.el b/lisp/descr-text.el index b3f7878..e8ce024 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el @@ -574,6 +574,10 @@ relevant to POS." 'help-echo "mouse-2, RET: show this character in its character set") str))) + ,@(let ((script (char-table-range char-script-table char))) + (if script + (list (list "script" + (symbol-name script))))) ("syntax" ,(let ((syntax (syntax-after pos))) (with-temp-buffer --------------050804080904010901010800--