emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 687a9d3: Calc: fix interval entry snag (bug#42438)


From: Mattias Engdegård
Subject: master 687a9d3: Calc: fix interval entry snag (bug#42438)
Date: Wed, 22 Jul 2020 05:30:56 -0400 (EDT)

branch: master
commit 687a9d3e2fca5f207ec3bd6acf744d0c0cd96962
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    Calc: fix interval entry snag (bug#42438)
    
    * lisp/calc/calc.el (calcDigit-key): Don't signal a 'Bad format' error
    when entering '..' after pushing an incomplete interval.
    
    Reported by Allen Li.
---
 lisp/calc/calc.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index 4e4fb67..09b4962 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -2429,7 +2429,7 @@ the United States."
          (if (and (memq last-command-event '(?@ ?o ?h ?\' ?m))
                   (string-match " " calc-hms-format))
              (insert " "))
-       (if (and (eq this-command last-command)
+       (if (and (memq last-command '(calcDigit-start calcDigit-key))
                 (eq last-command-event ?.))
            (progn
              (require 'calc-ext)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]