From 687a9d3e2fca5f207ec3bd6acf744d0c0cd96962 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Wed, 22 Jul 2020 11:27:15 +0200 Subject: [PATCH] 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 4e4fb671730..09b49621070 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) -- 2.39.2