aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-07-16 17:31:53 +0000
committerRichard M. Stallman2005-07-16 17:31:53 +0000
commitd88757d61b84855d9860155c424ab6bfdcf5a77d (patch)
treeecc5e3081221d6baf7c15d19d166313c4be5298e
parentb63ecadb4c3910f9dd0388c396b8b24d44eb9ad5 (diff)
downloademacs-d88757d61b84855d9860155c424ab6bfdcf5a77d.tar.gz
emacs-d88757d61b84855d9860155c424ab6bfdcf5a77d.zip
(calculator-last-input): Guard uses of event-key and key-press-event-p.
(event-key, key-press-event-p): Delete definitions.
-rw-r--r--lisp/calculator.el11
1 files changed, 3 insertions, 8 deletions
diff --git a/lisp/calculator.el b/lisp/calculator.el
index 923d4022098..301a27eac5f 100644
--- a/lisp/calculator.el
+++ b/lisp/calculator.el
@@ -1277,12 +1277,6 @@ arguments."
1277 (if Dbound (fset 'D Dsave) (fmakunbound 'D))))) 1277 (if Dbound (fset 'D Dsave) (fmakunbound 'D)))))
1278 (error 0))) 1278 (error 0)))
1279 1279
1280(eval-when-compile ; silence the compiler
1281 (or (fboundp 'event-key)
1282 (defun event-key (&rest _) nil))
1283 (or (fboundp 'key-press-event-p)
1284 (defun key-press-event-p (&rest _) nil)))
1285
1286;;;--------------------------------------------------------------------- 1280;;;---------------------------------------------------------------------
1287;;; Input interaction 1281;;; Input interaction
1288 1282
@@ -1301,8 +1295,9 @@ Optional string argument KEYS will force using it as the keys entered."
1301 (setq k (aref inp i)) 1295 (setq k (aref inp i))
1302 ;; if Emacs will someday have a event-key, then this would 1296 ;; if Emacs will someday have a event-key, then this would
1303 ;; probably be modified anyway 1297 ;; probably be modified anyway
1304 (and (fboundp 'event-key) (key-press-event-p k) 1298 (and (if (fboundp 'key-press-event-p) (key-press-event-p k))
1305 (event-key k) (setq k (event-key k))) 1299 (if (fboundp 'event-key)
1300 (and (event-key k) (setq k (event-key k)))))
1306 ;; assume all symbols are translatable with an ascii-character 1301 ;; assume all symbols are translatable with an ascii-character
1307 (and (symbolp k) 1302 (and (symbolp k)
1308 (setq k (or (get k 'ascii-character) ? ))) 1303 (setq k (or (get k 'ascii-character) ? )))