aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2005-11-28 22:12:59 +0000
committerJay Belanger2005-11-28 22:12:59 +0000
commitd24f83d4b731e3e4b39b8c175bae95698bde68ad (patch)
tree29eff8fec7ed711b52d2a9ae55592b34d5bb40dd
parentd95324034b2f5fd737c1f7c24fb5e00533b9b3cc (diff)
downloademacs-d24f83d4b731e3e4b39b8c175bae95698bde68ad.tar.gz
emacs-d24f83d4b731e3e4b39b8c175bae95698bde68ad.zip
Change global keybinding for calc-dispatch to "\C-x*"
(calc-dispatch-map): Add more keys for `calc-same-interface'.
-rw-r--r--lisp/calc/calc.el19
1 files changed, 10 insertions, 9 deletions
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index bd161132ddf..fe55b7587f3 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -816,11 +816,6 @@ If nil, selections displayed but ignored.")
816;; Verify that Calc is running on the right kind of system. 816;; Verify that Calc is running on the right kind of system.
817(defvar calc-emacs-type-lucid (not (not (string-match "Lucid" emacs-version)))) 817(defvar calc-emacs-type-lucid (not (not (string-match "Lucid" emacs-version))))
818 818
819;; Set up the standard keystroke (M-#) to run the Calculator, if that key
820;; has not yet been bound to anything. For best results, the user should
821;; do this before Calc is even loaded, so that M-# can auto-load Calc.
822(or (global-key-binding "\e#") (global-set-key "\e#" 'calc-dispatch))
823
824;; Set up the autoloading linkage. 819;; Set up the autoloading linkage.
825(let ((name (and (fboundp 'calc-dispatch) 820(let ((name (and (fboundp 'calc-dispatch)
826 (eq (car-safe (symbol-function 'calc-dispatch)) 'autoload) 821 (eq (car-safe (symbol-function 'calc-dispatch)) 'autoload)
@@ -1046,14 +1041,20 @@ If nil, selections displayed but ignored.")
1046 ( ?x . calc-quit ) 1041 ( ?x . calc-quit )
1047 ( ?y . calc-copy-to-buffer ) 1042 ( ?y . calc-copy-to-buffer )
1048 ( ?z . calc-user-invocation ) 1043 ( ?z . calc-user-invocation )
1049 ( ?= . calc-embedded-update-formula )
1050 ( ?\' . calc-embedded-new-formula ) 1044 ( ?\' . calc-embedded-new-formula )
1051 ( ?\` . calc-embedded-edit ) 1045 ( ?\` . calc-embedded-edit )
1052 ( ?: . calc-grab-sum-down ) 1046 ( ?: . calc-grab-sum-down )
1053 ( ?_ . calc-grab-sum-across ) 1047 ( ?_ . calc-grab-sum-across )
1054 ( ?0 . calc-reset ) 1048 ( ?0 . calc-reset )
1049 ( ?? . calc-dispatch-help )
1055 ( ?# . calc-same-interface ) 1050 ( ?# . calc-same-interface )
1056 ( ?? . calc-dispatch-help ) )) 1051 ( ?& . calc-same-interface )
1052 ( ?\\ . calc-same-interface )
1053 ( ?= . calc-same-interface )
1054 ( ?* . calc-same-interface )
1055 ( ?/ . calc-same-interface )
1056 ( ?+ . calc-same-interface )
1057 ( ?- . calc-same-interface ) ))
1057 map)) 1058 map))
1058 1059
1059;;;; (Autoloads here) 1060;;;; (Autoloads here)
@@ -1095,7 +1096,7 @@ If nil, selections displayed but ignored.")
1095 report-calc-bug))) 1096 report-calc-bug)))
1096 1097
1097 1098
1098;;;###autoload (global-set-key "\e#" 'calc-dispatch) 1099;;;###autoload (define-key ctl-x-map "*" 'calc-dispatch)
1099 1100
1100;;;###autoload 1101;;;###autoload
1101(defun calc-dispatch (&optional arg) 1102(defun calc-dispatch (&optional arg)
@@ -3534,7 +3535,7 @@ Also looks for the equivalent TeX words, \\gets and \\evalto."
3534(defun calc-user-invocation () 3535(defun calc-user-invocation ()
3535 (interactive) 3536 (interactive)
3536 (unless calc-invocation-macro 3537 (unless calc-invocation-macro
3537 (error "Use `Z I' inside Calc to define a `M-# Z' keyboard macro")) 3538 (error "Use `Z I' inside Calc to define a `C-x * Z' keyboard macro"))
3538 (execute-kbd-macro calc-invocation-macro nil)) 3539 (execute-kbd-macro calc-invocation-macro nil))
3539 3540
3540;;; User-programmability. 3541;;; User-programmability.