aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/calc/calc.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index ad483b406d5..3996c377b19 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -3400,7 +3400,12 @@ See Info node `(calc)Defining Functions'."
3400 (cons key key))) 3400 (cons key key)))
3401 3401
3402(defun calc-unread-command (&optional input) 3402(defun calc-unread-command (&optional input)
3403 (push (or input last-command-event) unread-command-events)) 3403 (let ((event (or input last-command-event)))
3404 ;; Avoid recording twice the keys pressed while defining a
3405 ;; keyboard macro.
3406 (when defining-kbd-macro
3407 (setq event (cons 'no-record event)))
3408 (push event unread-command-events)))
3404 3409
3405(defun calc-clear-unread-commands () 3410(defun calc-clear-unread-commands ()
3406 (setq unread-command-events nil)) 3411 (setq unread-command-events nil))