From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries? Date: Sun, 02 Oct 2011 21:28:57 -0400 Message-ID: References: <74B14D2A03144E798C9415172D5FE01A@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317605392 9178 80.91.229.12 (3 Oct 2011 01:29:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 Oct 2011 01:29:52 +0000 (UTC) Cc: 9653@debbugs.gnu.org To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 03 03:29:48 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1RAXLo-0000Wu-6p for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Oct 2011 03:29:48 +0200 Original-Received: from localhost ([::1]:50552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAXLn-0006lI-F7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Oct 2011 21:29:47 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAXLj-0006l8-Bu for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2011 21:29:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RAXLi-00020c-BS for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2011 21:29:43 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAXLi-00020Y-9p for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2011 21:29:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RAXN0-0008AM-AZ for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2011 21:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Oct 2011 01:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9653 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9653-submit@debbugs.gnu.org id=B9653.131760542531348 (code B ref 9653); Mon, 03 Oct 2011 01:31:02 +0000 Original-Received: (at 9653) by debbugs.gnu.org; 3 Oct 2011 01:30:25 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RAXMN-00089Y-LM for submit@debbugs.gnu.org; Sun, 02 Oct 2011 21:30:25 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RAXMK-00089O-35 for 9653@debbugs.gnu.org; Sun, 02 Oct 2011 21:30:20 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAAUPiU5FpZLc/2dsb2JhbABBqA+BBoFTAQEEAVYjBQsLNBIUGA0kiA63RochBKB3hEM X-IronPort-AV: E=Sophos;i="4.68,478,1312171200"; d="scan'208";a="139698257" Original-Received: from 69-165-146-220.dsl.teksavvy.com (HELO ceviche.home) ([69.165.146.220]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 02 Oct 2011 21:28:58 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 004EA660B6; Sun, 2 Oct 2011 21:28:57 -0400 (EDT) In-Reply-To: <74B14D2A03144E798C9415172D5FE01A@us.oracle.com> (Drew Adams's message of "Sun, 2 Oct 2011 09:36:54 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 02 Oct 2011 21:31:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:52091 Archived-At: > Is this a bug? There are lots of entries in `ucs-names' that have "" as > the car. Indeed, that's odd. We could filter them out, of course, but there's something fishy: the code of ucs-names does: (while (<= c end) (if (setq name (get-char-code-property c 'name)) (push (cons name c) names)) (if (setq name (get-char-code-property c 'old-name)) (push (cons name c) names)) but it turns out that `name' is never nil there, whereas it is often "". So either we need to change ucs-names to filter out those useless entries, or we need to change (get-char-code-property c 'name) and (get-char-code-property c 'old-name) so it returns nil rather than the empty string. Handa-san, could you take a look at this? Is (get-char-code-property c 'name) supposed to return "" when the char has no name or is it supposed to return nil? Either way is fine by me (all those "" are really one and the same string, so they don't waste memory). > In `ucs-names', what are the CHAR-NAMEs "VARIATION SELECTOR-n" all about (for > n=17...256)? Are those actually character names? It depends on what you mean by "character". They are in the sense of Elisp's characters, and it can be occasionally useful to be able to manually insert them (if for nothing to test what happens when they appear in a file/buffer). So it's good that C-x 8 RET allows the user to enter them, even if you hopefully will never need to use them yourself. Stefan