diff options
Diffstat (limited to 'lisp/calc')
| -rw-r--r-- | lisp/calc/calc-ext.el | 3 | ||||
| -rw-r--r-- | lisp/calc/calc-undo.el | 1 | ||||
| -rw-r--r-- | lisp/calc/calc.el | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/lisp/calc/calc-ext.el b/lisp/calc/calc-ext.el index 6fbccaad0b9..0da423a8eac 100644 --- a/lisp/calc/calc-ext.el +++ b/lisp/calc/calc-ext.el | |||
| @@ -136,7 +136,6 @@ | |||
| 136 | (define-key calc-mode-map "\C-w" 'calc-kill-region) | 136 | (define-key calc-mode-map "\C-w" 'calc-kill-region) |
| 137 | (define-key calc-mode-map "\M-w" 'calc-copy-region-as-kill) | 137 | (define-key calc-mode-map "\M-w" 'calc-copy-region-as-kill) |
| 138 | (define-key calc-mode-map "\M-\C-w" 'kill-ring-save) | 138 | (define-key calc-mode-map "\M-\C-w" 'kill-ring-save) |
| 139 | (define-key calc-mode-map [remap undo] 'calc-undo) | ||
| 140 | (define-key calc-mode-map "\M-\C-m" 'calc-last-args) | 139 | (define-key calc-mode-map "\M-\C-m" 'calc-last-args) |
| 141 | 140 | ||
| 142 | (define-key calc-mode-map "a" nil) | 141 | (define-key calc-mode-map "a" nil) |
| @@ -1155,7 +1154,7 @@ calc-trail-kill calc-trail-last calc-trail-marker calc-trail-next | |||
| 1155 | calc-trail-out calc-trail-previous calc-trail-scroll-left | 1154 | calc-trail-out calc-trail-previous calc-trail-scroll-left |
| 1156 | calc-trail-scroll-right calc-trail-yank) | 1155 | calc-trail-scroll-right calc-trail-yank) |
| 1157 | 1156 | ||
| 1158 | ("calc-undo" calc-last-args calc-redo calc-undo) | 1157 | ("calc-undo" calc-last-args calc-redo) |
| 1159 | 1158 | ||
| 1160 | ("calc-units" calc-autorange-units calc-base-units | 1159 | ("calc-units" calc-autorange-units calc-base-units |
| 1161 | calc-convert-temperature calc-convert-units calc-define-unit | 1160 | calc-convert-temperature calc-convert-units calc-define-unit |
diff --git a/lisp/calc/calc-undo.el b/lisp/calc/calc-undo.el index 508385be399..4d01cb31f38 100644 --- a/lisp/calc/calc-undo.el +++ b/lisp/calc/calc-undo.el | |||
| @@ -32,6 +32,7 @@ | |||
| 32 | 32 | ||
| 33 | ;;; Undo. | 33 | ;;; Undo. |
| 34 | 34 | ||
| 35 | ;;;###autoload | ||
| 35 | (defun calc-undo (n) | 36 | (defun calc-undo (n) |
| 36 | (interactive "p") | 37 | (interactive "p") |
| 37 | (when calc-executing-macro | 38 | (when calc-executing-macro |
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el index 0006fb0f33f..d99f164e974 100644 --- a/lisp/calc/calc.el +++ b/lisp/calc/calc.el | |||
| @@ -1061,6 +1061,7 @@ Used by `calc-user-invocation'.") | |||
| 1061 | (define-key map "\C-j" 'calc-over) | 1061 | (define-key map "\C-j" 'calc-over) |
| 1062 | (define-key map "\C-y" 'calc-yank) | 1062 | (define-key map "\C-y" 'calc-yank) |
| 1063 | (define-key map [mouse-2] 'calc-yank) | 1063 | (define-key map [mouse-2] 'calc-yank) |
| 1064 | (define-key map [remap undo] 'calc-undo) | ||
| 1064 | 1065 | ||
| 1065 | (mapc (lambda (x) (define-key map (char-to-string x) 'undefined)) | 1066 | (mapc (lambda (x) (define-key map (char-to-string x) 'undefined)) |
| 1066 | "lOW") | 1067 | "lOW") |