emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r112191: * etc/NEWS: Mention `kmacro-


From: Leo Liu
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r112191: * etc/NEWS: Mention `kmacro-to-register' and new eldoc feature.
Date: Sat, 30 Mar 2013 21:49:00 +0800
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 112191
committer: Leo Liu <address@hidden>
branch nick: trunk
timestamp: Sat 2013-03-30 21:49:00 +0800
message:
  * etc/NEWS: Mention `kmacro-to-register' and new eldoc feature.
  
  * lisp/kmacro.el (kmacro-call-macro): Add optional arg MACRO.
  (kmacro-execute-from-register): Pass the keyboard macro to
  kmacro-call-macro or repeating won't work correctly.
modified:
  etc/ChangeLog
  etc/NEWS
  lisp/ChangeLog
  lisp/kmacro.el
=== modified file 'etc/ChangeLog'
--- a/etc/ChangeLog     2013-03-30 08:14:31 +0000
+++ b/etc/ChangeLog     2013-03-30 13:49:00 +0000
@@ -1,3 +1,7 @@
+2013-03-30  Leo Liu  <address@hidden>
+
+       * NEWS: Mention `kmacro-to-register' and new eldoc feature.
+
 2013-03-29  Aidan Gauland  <address@hidden>
 
        * NEWS: Added entry for em-tramp change in r112148

=== modified file 'etc/NEWS'
--- a/etc/NEWS  2013-03-29 07:12:11 +0000
+++ b/etc/NEWS  2013-03-30 13:49:00 +0000
@@ -82,6 +82,8 @@
 ** In keymaps where SPC scrolls, S-SPC now scrolls in the reverse direction.
 Eg View mode, etc.
 
+** New command `kmacro-to-register' to store keyboard macros in registers.
+
 
 * Changes in Specialized Modes and Packages in Emacs 24.4
 
@@ -111,6 +113,8 @@
 use `electric-indent-mode' instead.
 *** `delphi-tab' is gone, replaced by `indent-for-tab-command'.
 
+** Eldoc Mode works properly in the minibuffer.
+
 ** jit-lock-debug-mode lets you use the debuggers on code run via jit-lock.
 
 ** completing-read-multiple's separator can now be a regexp.

=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2013-03-30 08:14:31 +0000
+++ b/lisp/ChangeLog    2013-03-30 13:49:00 +0000
@@ -1,3 +1,9 @@
+2013-03-30  Leo Liu  <address@hidden>
+
+       * kmacro.el (kmacro-call-macro): Add optional arg MACRO.
+       (kmacro-execute-from-register): Pass the keyboard macro to
+       kmacro-call-macro or repeating won't work correctly.
+
 2013-03-30  Teodor Zlatanov  <address@hidden>
 
        * progmodes/subword.el: Back to using `forward-symbol'.

=== modified file 'lisp/kmacro.el'
--- a/lisp/kmacro.el    2013-03-29 14:53:27 +0000
+++ b/lisp/kmacro.el    2013-03-30 13:49:00 +0000
@@ -614,9 +614,10 @@
 
 
 ;;;###autoload
-(defun kmacro-call-macro (arg &optional no-repeat end-macro)
-  "Call the last keyboard macro that you defined with \\[kmacro-start-macro].
+(defun kmacro-call-macro (arg &optional no-repeat end-macro macro)
+  "Call the keyboard MACRO that you defined with \\[kmacro-start-macro].
 A prefix argument serves as a repeat count.  Zero means repeat until error.
+MACRO defaults to `last-kbd-macro'.
 
 When you call the macro, you can call the macro again by repeating
 just the last key in the key sequence that you used to call this
@@ -630,7 +631,8 @@
                                   (> (length (this-single-command-keys)) 1))
                              ;; Used when we're in the process of repeating.
                              (eq no-repeat 'repeating))
-                        last-input-event)))
+                        last-input-event))
+       (last-kbd-macro (or macro last-kbd-macro)))
     (if end-macro
        (kmacro-end-macro arg)
       (call-last-kbd-macro arg #'kmacro-loop-setup-function))
@@ -656,7 +658,7 @@
          (define-key map (vector repeat-key)
            `(lambda () (interactive)
               (kmacro-call-macro ,(and kmacro-call-repeat-with-arg arg)
-                                 'repeating)))
+                                 'repeating nil ,last-kbd-macro)))
          map)))))
 
 
@@ -838,8 +840,7 @@
 
 
 (defun kmacro-execute-from-register (k)
-  (let ((last-kbd-macro k))
-    (kmacro-call-macro current-prefix-arg)))
+  (kmacro-call-macro current-prefix-arg nil nil k))
 
 (defun kmacro-to-register (r)
   "Store the last keyboard macro in register R."
@@ -851,10 +852,10 @@
                   last-kbd-macro
                   :jump-func 'kmacro-execute-from-register
                   :print-func (lambda (k)
-                                 (princ (format "a keyboard macro:\n   %s"
-                                                (format-kbd-macro k))))
+                                (princ (format "a keyboard macro:\n   %s"
+                                               (format-kbd-macro k))))
                   :insert-func (lambda (k)
-                                  (insert (format-kbd-macro k))))))
+                                 (insert (format-kbd-macro k))))))
 
 
 (defun kmacro-view-macro (&optional _arg)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]