From: Eli Zaretskii <eliz@gnu.org>
To: "Mattias Engdegård" <mattiase@acm.org>
Cc: 48678@debbugs.gnu.org
Subject: bug#48678: [PATCH] lex floats with trailing dot and exponent correctly
Date: Wed, 26 May 2021 20:27:17 +0300 [thread overview]
Message-ID: <83fsy99zii.fsf@gnu.org> (raw)
In-Reply-To: <8A11B2EA-B278-4458-A5DB-05E3FB278570@acm.org> (message from Mattias Engdegård on Wed, 26 May 2021 18:56:43 +0200)
> From: Mattias Engdegård <mattiase@acm.org>
> 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.
next prev parent reply other threads:[~2021-05-26 17:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-26 16:56 bug#48678: [PATCH] lex floats with trailing dot and exponent correctly Mattias Engdegård
2021-05-26 17:27 ` Eli Zaretskii [this message]
2021-05-26 22:13 ` Lars Ingebrigtsen
2021-05-27 7:32 ` Andreas Schwab
2021-05-27 7:40 ` Lars Ingebrigtsen
2021-05-27 12:28 ` Mattias Engdegård
2021-05-27 12:36 ` Philipp Stephani
2021-05-27 12:37 ` Philipp Stephani
2021-05-27 12:20 ` Mattias Engdegård
2021-05-29 6:03 ` Lars Ingebrigtsen
2021-05-29 7:47 ` Mattias Engdegård
2021-05-30 4:07 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83fsy99zii.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=48678@debbugs.gnu.org \
--cc=mattiase@acm.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).