From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Barzilay Newsgroups: gmane.emacs.bugs Subject: bug#41347: 28.0.50; calculator.el: Cannot input negative exponents Date: Mon, 18 May 2020 15:19:11 -0400 Message-ID: References: <60FECFFF-BF00-4D6A-9297-105B1E1B69C8@acm.org> <4D0C7ECD-7179-435A-9783-08F05E8CC204@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="18605"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41347-done@debbugs.gnu.org, Chris Zheng 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 Mon May 18 21:20:12 2020 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 1jalJ6-0004gr-HV for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 May 2020 21:20:12 +0200 Original-Received: from localhost ([::1]:51632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jalJ5-0002WZ-HL for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 May 2020 15:20:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jalIx-0002Uk-FS for bug-gnu-emacs@gnu.org; Mon, 18 May 2020 15:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36742) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jalIw-00077F-Mu for bug-gnu-emacs@gnu.org; Mon, 18 May 2020 15:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jalIw-0006jZ-GZ for bug-gnu-emacs@gnu.org; Mon, 18 May 2020 15:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Barzilay Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 May 2020 19:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41347 X-GNU-PR-Package: emacs Original-Received: via spool by 41347-done@debbugs.gnu.org id=D41347.158982957225841 (code D ref 41347); Mon, 18 May 2020 19:20:02 +0000 Original-Received: (at 41347-done) by debbugs.gnu.org; 18 May 2020 19:19:32 +0000 Original-Received: from localhost ([127.0.0.1]:48288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jalIR-0006ij-TJ for submit@debbugs.gnu.org; Mon, 18 May 2020 15:19:32 -0400 Original-Received: from mail-ed1-f44.google.com ([209.85.208.44]:46662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jalIQ-0006iW-83 for 41347-done@debbugs.gnu.org; Mon, 18 May 2020 15:19:30 -0400 Original-Received: by mail-ed1-f44.google.com with SMTP id l3so9419205edq.13 for <41347-done@debbugs.gnu.org>; Mon, 18 May 2020 12:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=barzilay-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=GRBC9SWxSpXZIe3zzvSTcgzWWi4Sk7qTrIDqOMVA8LQ=; b=RjP3IuNoQhcs2H6+M1JLOr4bXWTIw8wWDz1RADGjHWOxHPyARxJk+iTi/TY2y1qTRN /sl2nrg3UMD1ai8nfogOGpD5z+KHB8NPafQbVKrhCdwJ2mPFqbXu6EPP+8bIVCcom7jv 4jOhYl3yXH/wl9aVBomKOFT1Kp4BeumamUmhAji4ALQwqyhK5XLnnIvjen3EyRtP2CaO fb9M6GfN+PyqhORfM/uye1xBMhA80tyyCRdEjQcNXb3MFpA/5BkCOFw98ZTipcp3wizR lZN/UaVRyNdMOYUuoy2opfauSjd9vq3pmud5IA4675v+3wYvMxiZLQauiVXL/PqDPX0K DLZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=GRBC9SWxSpXZIe3zzvSTcgzWWi4Sk7qTrIDqOMVA8LQ=; b=IyMl0sfn5QD1wqJn+Sywb4nLT7jzQpk+PkjwIijaGmIJd03zNKz7Hu6VueVsRKAg+R xTCg+65U3KGJ7plHGeZl8BY/F0+ZQNyPmv135PxupncAbYWi/UJ/YtmfA33ZBj1XmI3f BOI/MUmDBeI8RLmctvX0Oh7kvmpKFJzIXDeN39NXf5NX07NxqK0Z88c9Ndf8Hb6XCOjs t1EjBWV2SZX7sPx1vf/S4LH06oQv6POUMA+ddfXGNRJYKVDlG3xxFTLRFenXKS9HJyKs Ep6btwsuzz8xtXYKCzU8ubhRq6PmM2H6VLv/Fn/NiyFO4WSPnRyZvGCJ8ddn/oNwuPy5 o5Yg== X-Gm-Message-State: AOAM532dy/XEuuNRyRKd3OwOD5JwkO5sz4CSVjLJURhHvTp+ciYwECFi xabxv/FNsLWTwj8ciGGz4OfeoD0iDb6jTAqbNxmmqA== X-Google-Smtp-Source: ABdhPJwBMmkDRTWW0GRlG1s9gEl9DI57GFXNnMr88b97DM2darWjM9p7L6yRgku0bUw6DFeX9aCQwK3dfccXyeSzq3M= X-Received: by 2002:aa7:cac8:: with SMTP id l8mr15315486edt.103.1589829564255; Mon, 18 May 2020 12:19:24 -0700 (PDT) In-Reply-To: <4D0C7ECD-7179-435A-9783-08F05E8CC204@acm.org> 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:180555 Archived-At: Thanks! -- I'll try to get to testing it soon-ish... On Mon, May 18, 2020 at 5:28 AM Mattias Engdeg=C3=A5rd w= rote: > > 17 maj 2020 kl. 22.26 skrev Eli Barzilay : > > > the idea is to mimic common calculators > > where you can type "3." or "3e" and get 3. > > Thank you Eli! I can confirm that after removing all the string transform= ation prior to the call to string-to-number, everything works as expected e= xcept "1.e3" (dot before E). A single transformation taking care of that ca= se was added for the sake of completeness. > > The attached patch has now been pushed to master. > --=20 ((x=3D>x(x))(x=3D>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life!