From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Chris Zheng Newsgroups: gmane.emacs.bugs Subject: bug#41347: 28.0.50; calculator.el: Cannot input negative exponents Date: Mon, 18 May 2020 23:01:04 +0800 Message-ID: <20200518150104.bfzfa6jckidqerag@Kael> References: <60FECFFF-BF00-4D6A-9297-105B1E1B69C8@acm.org> <4D0C7ECD-7179-435A-9783-08F05E8CC204@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="1242"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41347-done@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 Mon May 18 17:02:29 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 1jahHa-000Y1t-5u for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 May 2020 17:02:22 +0200 Original-Received: from localhost ([::1]:39488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jahHZ-0006FE-4w for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 May 2020 11:02:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jahHG-000626-GX for bug-gnu-emacs@gnu.org; Mon, 18 May 2020 11:02:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jahHG-0002gC-59 for bug-gnu-emacs@gnu.org; Mon, 18 May 2020 11:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jahHG-0006ra-2i for bug-gnu-emacs@gnu.org; Mon, 18 May 2020 11:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chris Zheng Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 May 2020 15:02: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.158981408026331 (code D ref 41347); Mon, 18 May 2020 15:02:02 +0000 Original-Received: (at 41347-done) by debbugs.gnu.org; 18 May 2020 15:01:20 +0000 Original-Received: from localhost ([127.0.0.1]:48044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jahGZ-0006qd-Rt for submit@debbugs.gnu.org; Mon, 18 May 2020 11:01:20 -0400 Original-Received: from mail-pj1-f43.google.com ([209.85.216.43]:52623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jahGY-0006qO-At for 41347-done@debbugs.gnu.org; Mon, 18 May 2020 11:01:18 -0400 Original-Received: by mail-pj1-f43.google.com with SMTP id a5so5355291pjh.2 for <41347-done@debbugs.gnu.org>; Mon, 18 May 2020 08:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=ufIbdfaKOsDAycwOCP0vsKAWFIjYJroRCaDqIzjcwr8=; b=nvJTamPvI07hrOFPEQVmogM4Xettu1240QDa3yHT/wTmXPW3U0MAMxP34BSqBz/JxT Vs0IBnEfA13ZqVcMP76XA/1VEU7wPdljuVkxlGPrRYCisD9hm2OI0AHG5EFTJ60+if68 8cfEfUGtqDqKCSX+pIO9/KUcYeiRNlw75O6ooxNXbK3wZ2U62jP5B8g3rrfII4Sl99wb LMi+dCr4otYAj2PAaCnNeMTLh4FE7ABB6X4/pkvw2Vlv+6yX0AwCa755akax5DokgS9M xwoGB9qqyrynP/ykvu2VCePEid6YEkZagz/tM/Dqs/U3myM5qufUqSO8l2fP42NAqLq3 Z0dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=ufIbdfaKOsDAycwOCP0vsKAWFIjYJroRCaDqIzjcwr8=; b=nBtZjA55K1hcxwhIZ3r48kObRAJ0vOEqSB/H/hO0Xo9dRaSHz1AvtJ0TnjXStb50Xk gB72K/HfsdNax/LihGGARCpsh5E2EsMEdoG4cjb+tZCK4SGX0miifyFcfv1OHGjH7xMy e2AlLhe5YvU8JZvwiHevIpq7ACetikXtH5VizkbIuuozy/CmDqUcDOJE3l7jYL9bcw10 0GeHegdIImArBUPLSpLy5kVVyqTTAAqgjTegVuRgxQrzGjVTbLvn/AxTuVPF3Q5DPXJ7 kSCVvC7x1U8Pvd0QBIgPx3fUz0R1YwzN8jM748156ZMcMTyeb5+rY3wBa3GYLcO8BpqP yUZw== X-Gm-Message-State: AOAM530yeBrPBbuMwmce/uLZJ4YuMuQB/O43jYE6pX3A5o8968iV+Q8t E3VpeRrYUs5fJIxmilwX1D8= X-Google-Smtp-Source: ABdhPJxILWCA7YLbjgAyFHHhrDMZrH4bQR62F1vQmuISR19cjrQfW92aWJZJBQ6vnDZ7ggMijfFH9g== X-Received: by 2002:a17:90a:b28a:: with SMTP id c10mr1724895pjr.223.1589814072464; Mon, 18 May 2020 08:01:12 -0700 (PDT) Original-Received: from Kael ([67.230.166.176]) by smtp.gmail.com with ESMTPSA id p6sm7923444pgl.26.2020.05.18.08.01.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2020 08:01:11 -0700 (PDT) Content-Disposition: inline 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:180542 Archived-At: On Mon, May 18, 2020 at 11:28:21AM +0200, Mattias Engdegård wrote: >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 transformation prior to the call to string-to-number, everything works as expected except "1.e3" (dot before E). A single transformation taking care of that case was added for the sake of completeness. > >The attached patch has now been pushed to master. Hello Mattias, Thank you for fixing it. Still I think it is uncommon to use `rx` here... Best regards, Chris