aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Liu2013-04-05 16:38:06 +0800
committerLeo Liu2013-04-05 16:38:06 +0800
commitfc164b0c33ea4d65e5d1da2c3925569b032b398d (patch)
treeadc7f7e8e63540ffa23bea81a78b6c1005d7f1d2
parent0ccecc08cd5946f1dd3923d655862d160973f7dd (diff)
downloademacs-fc164b0c33ea4d65e5d1da2c3925569b032b398d.tar.gz
emacs-fc164b0c33ea4d65e5d1da2c3925569b032b398d.zip
* kmacro.el (kmacro-call-macro): Fix bug#14135.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/kmacro.el12
2 files changed, 11 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 015ce23ef8e..6da3acf9dda 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12013-04-05 Leo Liu <sdl.web@gmail.com>
2
3 * kmacro.el (kmacro-call-macro): Fix bug#14135.
4
12013-04-05 Jay Belanger <jay.p.belanger@gmail.com> 52013-04-05 Jay Belanger <jay.p.belanger@gmail.com>
2 6
3 * calc/calc-units.el (calc-convert-units): Rewrite conditional. 7 * calc/calc-units.el (calc-convert-units): Rewrite conditional.
diff --git a/lisp/kmacro.el b/lisp/kmacro.el
index c08f49df0a7..d6de2feb3fc 100644
--- a/lisp/kmacro.el
+++ b/lisp/kmacro.el
@@ -631,11 +631,11 @@ others, use \\[kmacro-name-last-macro]."
631 (> (length (this-single-command-keys)) 1)) 631 (> (length (this-single-command-keys)) 1))
632 ;; Used when we're in the process of repeating. 632 ;; Used when we're in the process of repeating.
633 (eq no-repeat 'repeating)) 633 (eq no-repeat 'repeating))
634 last-input-event)) 634 last-input-event)))
635 (last-kbd-macro (or macro last-kbd-macro)))
636 (if end-macro 635 (if end-macro
637 (kmacro-end-macro arg) 636 (kmacro-end-macro arg) ; modifies last-kbd-macro
638 (call-last-kbd-macro arg #'kmacro-loop-setup-function)) 637 (let ((last-kbd-macro (or macro last-kbd-macro)))
638 (call-last-kbd-macro arg #'kmacro-loop-setup-function)))
639 (when (consp arg) 639 (when (consp arg)
640 (setq arg (car arg))) 640 (setq arg (car arg)))
641 (when (and (or (null arg) (> arg 0)) 641 (when (and (or (null arg) (> arg 0))
@@ -658,7 +658,9 @@ others, use \\[kmacro-name-last-macro]."
658 (define-key map (vector repeat-key) 658 (define-key map (vector repeat-key)
659 `(lambda () (interactive) 659 `(lambda () (interactive)
660 (kmacro-call-macro ,(and kmacro-call-repeat-with-arg arg) 660 (kmacro-call-macro ,(and kmacro-call-repeat-with-arg arg)
661 'repeating nil ,last-kbd-macro))) 661 'repeating nil ,(if end-macro
662 last-kbd-macro
663 (or macro last-kbd-macro)))))
662 map))))) 664 map)))))
663 665
664 666