From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: evaluating numbers Date: Sun, 10 Nov 2019 09:22:19 +0900 Message-ID: References: <875zjw2emg.fsf@gmx.net> <618B38D9-CD34-4200-8CA1-1A6B0922A83A@traduction-libre.org> <871ruk2d3f.fsf@gmx.net> <3C929D7B-1C10-4713-9EDA-55C80FC36AD8@traduction-libre.org> <835zjvg385.fsf@gnu.org> <83sgmyd6rw.fsf@gnu.org> <835zjucwbz.fsf@gnu.org> <628A3663-BDD3-47C5-B4F4-E260FD900691@traduction-libre.org> <83o8xla50f.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.19\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="249269"; mail-complaints-to="usenet@blaine.gmane.org" To: Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 10 01:23:05 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iTb0S-0012fw-BM for ged-emacs-devel@m.gmane.org; Sun, 10 Nov 2019 01:23:04 +0100 Original-Received: from localhost ([::1]:40468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTb0Q-0005PD-I2 for ged-emacs-devel@m.gmane.org; Sat, 09 Nov 2019 19:23:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42817) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTb0K-0005P0-Ih for emacs-devel@gnu.org; Sat, 09 Nov 2019 19:22:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTb0I-0006e9-Vx for emacs-devel@gnu.org; Sat, 09 Nov 2019 19:22:56 -0500 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:34265) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iTb0I-0006YC-Pn for emacs-devel@gnu.org; Sat, 09 Nov 2019 19:22:54 -0500 X-Originating-IP: 182.251.135.252 Original-Received: from [172.20.10.2] (KD182251135252.au-net.ne.jp [182.251.135.252]) (Authenticated sender: jean.christophe.helary@traduction-libre.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 88AD2C0004 for ; Sun, 10 Nov 2019 00:22:47 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.3594.4.19) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.198 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:242060 Archived-At: > On Nov 10, 2019, at 1:03, Stefan Monnier = wrote: >=20 >>> Characters are just integers in Emacs. >> I know that. You're not really answering the above question. When = people >> expect a character to be returned, they expect a character and not >> a code point. >=20 > Emacs can't know what the user expects. Developers can know. >> How useful is: >> (decode-char 'emacs 345) >> 345 (#o531, #x159) >=20 > And the code that displays "345 (#o531, #x159)" doesn't know that this > 345 is coming out of a function which is expected to return = characters. Considering the documentation of decode-char ("returns a character"), = that's either an implementation error or a documentation error... And if the intent is "returns an integer that is the code point of the = character that sometimes gets to be displayed and sometimes not... etc." = then let it be documented that way. But you can't say "it's a character, = except when it's not, and Emacs wouldn't know the difference anyway, so = oops". :) Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune