From: YE Qianchuan <stool.ye@gmail.com>
To: 13698@debbugs.gnu.org
Subject: bug#13698: 24.2; Display script symbol name when calling `describe-char'
Date: Wed, 13 Feb 2013 14:09:23 +0800 [thread overview]
Message-ID: <511B2E13.6070308@gmail.com> (raw)
In-Reply-To: <878v6tv3r2.fsf@yeqianchuan-pc.i-did-not-set--mail-host-address--so-tickle-me>
[-- Attachment #1: Type: text/plain, Size: 234 bytes --]
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".
[-- Attachment #2: describe-char-display-script-v2.patch --]
[-- Type: text/x-patch, Size: 642 bytes --]
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
next prev parent reply other threads:[~2013-02-13 6:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-12 17:30 bug#13698: 24.2; Display script symbol name when calling `describe-char' YE Qianchuan
2013-02-13 6:09 ` YE Qianchuan [this message]
2013-02-13 14:56 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=511B2E13.6070308@gmail.com \
--to=stool.ye@gmail.com \
--cc=13698@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).