From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: numeri Date: Sat, 29 Nov 2008 17:50:54 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227999076 16894 80.91.229.12 (29 Nov 2008 22:51:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2008 22:51:16 +0000 (UTC) Cc: handa@m17n.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 29 23:52:19 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L6Yfg-0002Q3-Nl for ged-emacs-devel@m.gmane.org; Sat, 29 Nov 2008 23:52:17 +0100 Original-Received: from localhost ([127.0.0.1]:51149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6YeW-0004wP-IG for ged-emacs-devel@m.gmane.org; Sat, 29 Nov 2008 17:51:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L6YeS-0004vy-8E for emacs-devel@gnu.org; Sat, 29 Nov 2008 17:51:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L6YeQ-0004v8-QN for emacs-devel@gnu.org; Sat, 29 Nov 2008 17:50:59 -0500 Original-Received: from [199.232.76.173] (port=36792 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6YeQ-0004v4-K7 for emacs-devel@gnu.org; Sat, 29 Nov 2008 17:50:58 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:14753) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L6YeO-0003eG-VW; Sat, 29 Nov 2008 17:50:57 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEACNWMUnO+Jkl/2dsb2JhbACBbcwbgn2BJA X-IronPort-AV: E=Sophos;i="4.33,688,1220241600"; d="scan'208";a="30438523" Original-Received: from 206-248-153-37.dsl.teksavvy.com (HELO pastel.home) ([206.248.153.37]) by ironport2-out.teksavvy.com with ESMTP; 29 Nov 2008 17:50:56 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id D4A5484C0; Sat, 29 Nov 2008 17:50:54 -0500 (EST) In-Reply-To: (Eli Zaretskii's message of "Sat, 29 Nov 2008 20:38:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:106326 Archived-At: >> (get-char-code-property ?4 'numeric-value) > Actually, why not make the above return the number 4? The Unicode Agreed. It says `numeric-value' so it should return a number. I understand that 1/5 cannot be represented exactly as a number in Elisp right now, but the floating point approximation should be sufficient: we can recover the /15 fraction from it, if really needed, by considering additional assumptions such as "this is the numeric value of a unicode char". Stefan