aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Zheng2016-02-24 22:35:18 +0200
committerEli Zaretskii2016-02-24 22:35:18 +0200
commit9d0b103a45dc3e855bae8cb727797279021131fd (patch)
treec3c3c72823c31c061c073e1977d04b207e9a3335
parente6a381956048113f00ef08340e6f31df93ee0158 (diff)
downloademacs-9d0b103a45dc3e855bae8cb727797279021131fd.tar.gz
emacs-9d0b103a45dc3e855bae8cb727797279021131fd.zip
Minor fixes in calculator.el
* lisp/calculator.el (calculator-mode-map): Bind `E' for `calculator-exp'. (calculator-last-input): Fix a bug with pressing F1. (Bug#20764) Copyright-paperwork-exempt: yes
-rw-r--r--lisp/calculator.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/calculator.el b/lisp/calculator.el
index 9c94023a2a2..bba52e22544 100644
--- a/lisp/calculator.el
+++ b/lisp/calculator.el
@@ -394,7 +394,7 @@ Used for repeating operations in calculator-repR/L.")
394 [kp-5] [kp-6] [kp-7] [kp-8] [kp-9]) 394 [kp-5] [kp-6] [kp-7] [kp-8] [kp-9])
395 (calculator-op [kp-divide] [kp-multiply]) 395 (calculator-op [kp-divide] [kp-multiply])
396 (calculator-decimal "." [kp-decimal]) 396 (calculator-decimal "." [kp-decimal])
397 (calculator-exp "e") 397 (calculator-exp "e" "E")
398 (calculator-dec/deg-mode "D") 398 (calculator-dec/deg-mode "D")
399 (calculator-set-register "s") 399 (calculator-set-register "s")
400 (calculator-get-register "g") 400 (calculator-get-register "g")
@@ -1219,7 +1219,7 @@ arguments."
1219 "Last char (or event or event sequence) that was read. 1219 "Last char (or event or event sequence) that was read.
1220Use KEYS if given, otherwise use `this-command-keys'." 1220Use KEYS if given, otherwise use `this-command-keys'."
1221 (let ((inp (or keys (this-command-keys)))) 1221 (let ((inp (or keys (this-command-keys))))
1222 (if (or (stringp inp) (not (arrayp inp))) 1222 (if (or (stringp inp) (not (arrayp inp)) (member inp '([f1] [help])))
1223 inp 1223 inp
1224 ;; Translates kp-x to x and [tries to] create a string to lookup 1224 ;; Translates kp-x to x and [tries to] create a string to lookup
1225 ;; operators; assume all symbols are translatable via 1225 ;; operators; assume all symbols are translatable via