From c556aabde8bdfae6c3d896d22d992e8d62176832 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Fri, 10 Jan 2020 19:49:56 +0100 Subject: [PATCH] Calc: fix interval entry (bug#39040) * lisp/calc/calc.el (calcDigit-start): Initialise calc-prev-char to something more reasonable, so that non-algebraic entry of intervals whose start is a single digit, like (1..10), works properly. Reported by Michel Schinz. --- 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 d299c5bf5d3..b519559330e 100644 --- a/lisp/calc/calc.el +++ b/lisp/calc/calc.el @@ -2288,7 +2288,7 @@ the United States." (calc-alg-digit-entry) (setq calc-aborted-prefix nil) (let* ((calc-digit-value nil) - (calc-prev-char nil) + (calc-prev-char last-command-event) (calc-prev-prev-char nil) (calc-buffer (current-buffer)) (buf -- 2.39.2