From: Robert Pluim <rpluim@gmail.com>
To: ynyaaa@gmail.com
Cc: 28646@debbugs.gnu.org
Subject: bug#28646: 25.2; Emoji BED cannot be inserted with its name
Date: Fri, 29 Sep 2017 17:48:53 +0200 [thread overview]
Message-ID: <87mv5dwlne.fsf@gmail.com> (raw)
In-Reply-To: <87zi9d7gdn.fsf@gmail.com>
ynyaaa@gmail.com writes:
> Typing 'C-x 8 RET B E D RET' inserts #xBED(TAMIL DIGIT SEVEN).
> Emoji #x1F6CF(BED) cannot be inserted with its name.
> Although the completion list for insert-char with 'BE' includes Emoji BED,
> the result of clicking 'BED' is TAMIL DIGIT SEVEN.
Indeed it is. 25.3 behaves the same, but 26 correctly inserts #x1F6CF.
I've bisected it down to the following commit, which changed the
interpretation of 'BED' to be less surprising.
You can either upgrade to the not-yet-released emacs-26, or try
applying this commit locally (if you build your own emacs)
commit 86d083438dba60dc00e9e96414bf7e832720c05a (HEAD)
Author: Paul Eggert <eggert@cs.ucla.edu>
AuthorDate: Mon Apr 25 10:41:29 2016 -0700
Commit: Paul Eggert <eggert@cs.ucla.edu>
CommitDate: Mon Apr 25 10:42:48 2016 -0700
New function ‘char-from-name’
This also fixes the mishandling of "\N{CJK COMPATIBILITY
IDEOGRAPH-F900}", "\N{VARIATION SELECTOR-1}", etc.
Problem reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00614.html
* doc/lispref/nonascii.texi (Character Codes), etc/NEWS: Document this.
* lisp/international/mule-cmds.el (char-from-name): New function.
(read-char-by-name): Use it. Document that "BED" is treated as
a name, not as a hexadecimal number. Reject out-of-range integers,
floating-point numbers, and strings with trailing junk.
* src/lread.c (character_name_to_code): Call char-from-name
instead of inspecting ucs-names directly, so that we handle
computed names like "VARIATION SELECTOR-1". Do not use an auto
string, since char-from-name might GC.
* test/src/lread-tests.el: Add tests for new behavior, and
fix some old tests that were wrong.
Regards
Robert
next prev parent reply other threads:[~2017-09-29 15:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-29 14:01 bug#28646: 25.2; Emoji BED cannot be inserted with its name ynyaaa
2017-09-29 15:48 ` Robert Pluim [this message]
2017-09-29 17:51 ` Eli Zaretskii
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=87mv5dwlne.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=28646@debbugs.gnu.org \
--cc=ynyaaa@gmail.com \
/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).