From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: numeri Date: Mon, 01 Dec 2008 21:09:44 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1228133412 18485 80.91.229.12 (1 Dec 2008 12:10:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Dec 2008 12:10:12 +0000 (UTC) Cc: eliz@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 01 13:11:15 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 1L77cO-0000YM-DS for ged-emacs-devel@m.gmane.org; Mon, 01 Dec 2008 13:11:12 +0100 Original-Received: from localhost ([127.0.0.1]:55967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L77bE-0003pS-7N for ged-emacs-devel@m.gmane.org; Mon, 01 Dec 2008 07:10:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L77b9-0003pN-3t for emacs-devel@gnu.org; Mon, 01 Dec 2008 07:09:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L77b5-0003op-Dy for emacs-devel@gnu.org; Mon, 01 Dec 2008 07:09:54 -0500 Original-Received: from [199.232.76.173] (port=40620 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L77b5-0003om-7l for emacs-devel@gnu.org; Mon, 01 Dec 2008 07:09:51 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:58641) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L77b2-0008TT-UX; Mon, 01 Dec 2008 07:09:49 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id mB1C9jdh019052; Mon, 1 Dec 2008 21:09:45 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id mB1C9joq001009; Mon, 1 Dec 2008 21:09:45 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id mB1C9itf019239; Mon, 1 Dec 2008 21:09:44 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1L77ay-0000e0-RT; Mon, 01 Dec 2008 21:09:44 +0900 In-reply-to: (message from Stefan Monnier on Sat, 29 Nov 2008 17:50:54 -0500) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 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:106362 Archived-At: In article , Stefan Monnier writes: >>> (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". Ok, I've just committed changes to make the above return an integer or a floating point (if non-nil). --- Kenichi Handa handa@ni.aist.go.jp