]> git.eshelyaron.com Git - emacs.git/commitdiff
calc/calc-undo.el (calc-undo): Autoload it.
authorJay Belanger <jay.p.belanger@gmail.com>
Fri, 21 Jan 2011 04:54:37 +0000 (22:54 -0600)
committerJay Belanger <jay.p.belanger@gmail.com>
Fri, 21 Jan 2011 04:54:37 +0000 (22:54 -0600)
calc/calc-ext.el (calc-init-extensions): Remove keybindings and autoload for `calc-undo'.
calc/calc.el (calc-mode-map): Add keybindings for `calc-undo'.

lisp/ChangeLog
lisp/calc/calc-ext.el
lisp/calc/calc-undo.el
lisp/calc/calc.el

index e973fcd6d56d889e09444d8378eaf0ca8ced959e..ba8fd13fd16ee508a0b059a0affb55085e3ff31b 100644 (file)
@@ -1,8 +1,12 @@
 2011-01-21  Jay Belanger  <jay.p.belanger@gmail.com>
 
-       * calc/calc-prog.el
-         calc/calc-graph.el
-         calc/calc-map.el: Change `arglist' to `math-arglist' throughout.
+       * calc/calc-undo.el (calc-undo): Autoload it.
+       * calc/calc-ext.el (calc-init-extensions): Remove keybindings
+       and autoload for `calc-undo'.
+       * calc/calc.el (calc-mode-map): Add keybindings for `calc-undo'.
+       * calc/calc-prog.el:
+       * calc/calc-graph.el:
+       * calc/calc-map.el: Change `arglist' to `math-arglist' throughout.
 
 2011-01-21  Štěpán Němec  <stepnem@gmail.com>  (tiny change)
 
index 6fbccaad0b965249e85215421bc789abe35dd7a0..0da423a8eacddae3067bf28a4782a436bde7586b 100644 (file)
   (define-key calc-mode-map "\C-w" 'calc-kill-region)
   (define-key calc-mode-map "\M-w" 'calc-copy-region-as-kill)
   (define-key calc-mode-map "\M-\C-w" 'kill-ring-save)
-  (define-key calc-mode-map [remap undo] 'calc-undo)
   (define-key calc-mode-map "\M-\C-m" 'calc-last-args)
 
   (define-key calc-mode-map "a" nil)
@@ -1155,7 +1154,7 @@ calc-trail-kill calc-trail-last calc-trail-marker calc-trail-next
 calc-trail-out calc-trail-previous calc-trail-scroll-left
 calc-trail-scroll-right calc-trail-yank)
 
- ("calc-undo" calc-last-args calc-redo calc-undo)
+ ("calc-undo" calc-last-args calc-redo)
 
  ("calc-units" calc-autorange-units calc-base-units
 calc-convert-temperature calc-convert-units calc-define-unit
index 508385be3997e02fcae83894b8e5c9c6938bfc85..4d01cb31f38e0d66d2ee4ece848a66b468488de9 100644 (file)
@@ -32,6 +32,7 @@
 
 ;;; Undo.
 
+;;;###autoload
 (defun calc-undo (n)
   (interactive "p")
   (when calc-executing-macro
index 0006fb0f33fe5115a694d1dc525edf23557691f3..d99f164e97405a06733f4b9a00722c0074f57591 100644 (file)
@@ -1061,6 +1061,7 @@ Used by `calc-user-invocation'.")
     (define-key map "\C-j" 'calc-over)
     (define-key map "\C-y" 'calc-yank)
     (define-key map [mouse-2] 'calc-yank)
+    (define-key map [remap undo] 'calc-undo)
 
     (mapc (lambda (x) (define-key map (char-to-string x) 'undefined))
           "lOW")