From unknown Fri Jun 20 20:12:57 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#5197: 23.1; (elisp) Character Sets Reply-To: "Drew Adams" , 5197@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sat, 12 Dec 2009 16:55:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 5197 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.126063576721900 (code B ref -1); Sat, 12 Dec 2009 16:55:06 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 12 Dec 2009 16:36:07 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.2 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBCGa54t021892 for ; Sat, 12 Dec 2009 08:36:06 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NJUwu-00023M-Rc for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2009 11:36:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NJUwq-0001z4-3F for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2009 11:36:04 -0500 Received: from [199.232.76.173] (port=41054 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJUwp-0001yu-Q8 for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2009 11:35:59 -0500 Received: from acsinet11.oracle.com ([141.146.126.233]:65519) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NJUwo-0003yn-Uj for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2009 11:35:59 -0500 Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id nBCGa6VM002218 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 12 Dec 2009 16:36:07 GMT Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet15.oracle.com (Switch-3.4.1/Switch-3.4.1) with ESMTP id nBCE8CEU014406 for ; Sat, 12 Dec 2009 16:35:52 GMT Received: from abhmt014.oracle.com by acsmt353.oracle.com with ESMTP id 961649411260635738; Sat, 12 Dec 2009 08:35:38 -0800 Received: from dradamslap1 (/24.5.185.59) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 12 Dec 2009 08:35:38 -0800 From: "Drew Adams" To: Date: Sat, 12 Dec 2009 08:35:41 -0800 Message-ID: <458DD759524E4ADF8275AE462B3E0784@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: Acp7SSSiYL3hoJw/T9+Tq7BGEkcw6A== X-Source-IP: acsmt354.oracle.com [141.146.40.154] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090209.4B23C66A.01D1:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) emacs -Q Go to (elisp)Character Sets 1. "The character set `unicode' includes all the characters whose Emacs code points are in the range `0..10FFFF'." The previous sections in the Non-ASCII major section use decimal notation for characters and character ranges. When a character-range value is returned from a function and printed by the read-eval-print loop, it is written in decimal notation. The notation used should be consistent. 2. Description of `map-charset-chars': 2a. All that is said about argument ARG is this: "The second argument is the optional argument ARG." That's useless. It seems not to respect the reader. 2b. "optional arguments FROM-CODE and TO-CODE limit that to the range of characters". These should presumably be FROM and TO, not FROM-CODE and TO-CODE. In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-29 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4)' From unknown Fri Jun 20 20:12:57 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#5197: 23.1; (elisp) Character Sets Reply-To: "Drew Adams" , 5197@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sat, 12 Dec 2009 17:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 5197 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.126063974931051 (code B ref -1); Sat, 12 Dec 2009 17:50:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 12 Dec 2009 17:42:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.7 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBCHgRbO031045 for ; Sat, 12 Dec 2009 09:42:28 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NJVz9-0003ho-2c for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2009 12:42:27 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NJVz3-0003cY-4r for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2009 12:42:25 -0500 Received: from [199.232.76.173] (port=54981 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJVz3-0003cT-27 for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2009 12:42:21 -0500 Received: from rcsinet11.oracle.com ([148.87.113.123]:49495 helo=rgminet11.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NJVz1-0002rI-Lm for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2009 12:42:19 -0500 Received: from rgminet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id nBCHgXjk012141 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 12 Dec 2009 17:42:34 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id nBCGLhD5015376; Sat, 12 Dec 2009 17:42:13 GMT Received: from abhmt003.oracle.com by acsmt355.oracle.com with ESMTP id 960745761260639719; Sat, 12 Dec 2009 09:41:59 -0800 Received: from dradamslap1 (/24.5.185.59) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 12 Dec 2009 09:41:59 -0800 From: "Drew Adams" To: <5197@debbugs.gnu.org>, References: <458DD759524E4ADF8275AE462B3E0784@us.oracle.com> Date: Sat, 12 Dec 2009 09:42:03 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <458DD759524E4ADF8275AE462B3E0784@us.oracle.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: Acp7SSSiYL3hoJw/T9+Tq7BGEkcw6AACLkXg X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090206.4B23D5F0.01AB:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) > emacs -Q > Go to (elisp)Character Sets > > 1. "The character set `unicode' includes all the characters whose > Emacs code points are in the range `0..10FFFF'." > > The previous sections in the Non-ASCII major section use decimal > notation for characters and character ranges. I was mistaken about this part. It seems that sometimes hex is used and sometimes decimal is used. When a cons (MIN . MAX) range is mentioned, for instance, decimal notation is used. > When a character-range > value is returned from a function and printed by the read-eval-print > loop, it is written in decimal notation. > > The notation used should be consistent. Perhaps, for this part of the bug report, the suggestion should be to just mention explicitly which number base is being used in the current context. It's pretty obvious if you see `F' that hex is used, but it is not so obvious when the digits could be either decimal or hex. From unknown Fri Jun 20 20:12:57 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5197: 23.1; (elisp) Character Sets Reply-To: Chong Yidong , 5197@debbugs.gnu.org Mail-Followup-To: Chong Yidong , 5197@debbugs.gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Jan 2010 18:57:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5197 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5197-submit@debbugs.gnu.org id=B5197.126245856316437 (code B ref 5197); Sat, 02 Jan 2010 18:57:01 +0000 Received: (at 5197) by debbugs.gnu.org; 2 Jan 2010 18:56:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NR98s-0004H4-Qb for submit@debbugs.gnu.org; Sat, 02 Jan 2010 13:56:03 -0500 Received: from pantheon-po29.its.yale.edu ([130.132.50.124]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NR98r-0004Gj-6z for 5197@debbugs.gnu.org; Sat, 02 Jan 2010 13:56:01 -0500 Received: from furry (adsl-99-75-106-169.dsl.wlfrct.sbcglobal.net [99.75.106.169]) (authenticated bits=0) by pantheon-po29.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o02Itub9000481 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 2 Jan 2010 13:55:56 -0500 Received: by furry (Postfix, from userid 1000) id 67D76C05D; Sat, 2 Jan 2010 13:55:56 -0500 (EST) From: Chong Yidong To: "Drew Adams" Date: Sat, 02 Jan 2010 13:55:56 -0500 Message-ID: <87tyv4tjyb.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -4.8 (----) Cc: 5197@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.2 (-----) > 1. "The character set `unicode' includes all the characters whose > Emacs code points are in the range `0..10FFFF'." > The previous sections in the Non-ASCII major section use decimal > notation for characters and character ranges. When a character-range > value is returned from a function and printed by the read-eval-print > loop, it is written in decimal notation. > The notation used should be consistent. I've changed this to use hex throughout (since that is what Unicode uses). Thanks. > 2. Description of `map-charset-chars': > > 2a. All that is said about argument ARG is this: > "The second argument is the optional argument ARG." > That's useless. It seems not to respect the reader. If you read properly, this is referring to the second argument passed to FUNCTION. I tweaked it a little to make this clearer. > 2b. "optional arguments FROM-CODE and TO-CODE limit that to the range > of characters". These should presumably be FROM and TO, not FROM-CODE > and TO-CODE. No, the arguments should be FROM-CODE and TO-CODE. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 02 13:56:15 2010 Received: (at control) by debbugs.gnu.org; 2 Jan 2010 18:56:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NR995-0004HH-4I for submit@debbugs.gnu.org; Sat, 02 Jan 2010 13:56:15 -0500 Received: from pantheon-po29.its.yale.edu ([130.132.50.124]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NR993-0004HA-Vo for control@debbugs.gnu.org; Sat, 02 Jan 2010 13:56:14 -0500 Received: from furry (adsl-99-75-106-169.dsl.wlfrct.sbcglobal.net [99.75.106.169]) (authenticated bits=0) by pantheon-po29.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o02Iu93t000494 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 2 Jan 2010 13:56:09 -0500 Received: by furry (Postfix, from userid 1000) id 4BB2EC05D; Sat, 2 Jan 2010 13:56:09 -0500 (EST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 5197 Date: Sat, 02 Jan 2010 13:56:09 -0500 Message-ID: <87r5q8tjxy.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -5.4 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.6 (-----) close 5197 thanks