From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#48678: [PATCH] lex floats with trailing dot and exponent correctly Date: Wed, 26 May 2021 20:27:17 +0300 Message-ID: <83fsy99zii.fsf@gnu.org> References: <8A11B2EA-B278-4458-A5DB-05E3FB278570@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38090"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48678@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 26 19:44:17 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1llxZp-0009kz-Jt for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 May 2021 19:44:17 +0200 Original-Received: from localhost ([::1]:33190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llxZo-00013n-LE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 May 2021 13:44:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llxK6-0003PJ-Dp for bug-gnu-emacs@gnu.org; Wed, 26 May 2021 13:28:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38285) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llxK6-0007Zx-52 for bug-gnu-emacs@gnu.org; Wed, 26 May 2021 13:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1llxK6-0004a5-1n for bug-gnu-emacs@gnu.org; Wed, 26 May 2021 13:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 May 2021 17:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48678 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 48678-submit@debbugs.gnu.org id=B48678.162205004717561 (code B ref 48678); Wed, 26 May 2021 17:28:02 +0000 Original-Received: (at 48678) by debbugs.gnu.org; 26 May 2021 17:27:27 +0000 Original-Received: from localhost ([127.0.0.1]:49831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llxJW-0004Z9-Tu for submit@debbugs.gnu.org; Wed, 26 May 2021 13:27:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llxJU-0004Yx-I5 for 48678@debbugs.gnu.org; Wed, 26 May 2021 13:27:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40668) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llxJP-0007Ba-8T; Wed, 26 May 2021 13:27:19 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4766 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llxJN-0005p0-3z; Wed, 26 May 2021 13:27:18 -0400 In-Reply-To: <8A11B2EA-B278-4458-A5DB-05E3FB278570@acm.org> (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Wed, 26 May 2021 18:56:43 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:207306 Archived-At: > From: Mattias EngdegÄrd > Date: Wed, 26 May 2021 18:56:43 +0200 > > Now Emacs has always treated numbers like 123. as integers rather than floats, but > (1) it's documented, > (2) it's what Common Lisp does, and > (3) it actually doesn't affect the numeric value most of the time. > > (Common Lisp probably got this from Maclisp, the rationale being that a trailing dot can be used to write integers in base 10 even when the current input radix is set to something else, something that Emacs Lisp doesn't need.) > > Obviously this doesn't apply to 1.e6 which any sane person agrees is the float 1.0e+6 (including Common Lisp). > > The attached patch fixes this bug. Brace for massive breakage.