From: Mattias EngdegÄrd Date: Fri, 10 Jan 2020 18:49:56 +0000 (+0100) Subject: Calc: fix interval entry (bug#39040) X-Git-Tag: emacs-27.0.90~184 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c556aabde8;p=emacs.git 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. --- 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