diff options
| author | Glenn Morris | 2012-07-06 17:34:49 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-07-06 17:34:49 -0400 |
| commit | 0d27a45e5883a9b4764422d4feaa95bd2f06701a (patch) | |
| tree | f4007119ff2715cd191f47cd3872e23a783c62d9 | |
| parent | f5c08e17670cfda756af96c569efa48324b43908 (diff) | |
| download | emacs-0d27a45e5883a9b4764422d4feaa95bd2f06701a.tar.gz emacs-0d27a45e5883a9b4764422d4feaa95bd2f06701a.zip | |
* lisp/kmacro.el (kmacro-call-macro): Restore repeat message. (Bug#11817)
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/kmacro.el | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2233642e5b4..24ce2276991 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2012-07-06 Glenn Morris <rgm@gnu.org> | 1 | 2012-07-06 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * kmacro.el (kmacro-call-macro): Restore repeat message. (Bug#11817) | ||
| 4 | |||
| 3 | * files.el (toggle-read-only): Restrict message to interactive use. | 5 | * files.el (toggle-read-only): Restrict message to interactive use. |
| 4 | 6 | ||
| 5 | 2012-07-06 Michael Albinus <michael.albinus@gmx.de> | 7 | 2012-07-06 Michael Albinus <michael.albinus@gmx.de> |
diff --git a/lisp/kmacro.el b/lisp/kmacro.el index ffc97085a69..6ecac2cdf28 100644 --- a/lisp/kmacro.el +++ b/lisp/kmacro.el | |||
| @@ -629,8 +629,7 @@ others, use \\[kmacro-name-last-macro]." | |||
| 629 | (> (length (this-single-command-keys)) 1)) | 629 | (> (length (this-single-command-keys)) 1)) |
| 630 | ;; Used when we're in the process of repeating. | 630 | ;; Used when we're in the process of repeating. |
| 631 | (eq no-repeat 'repeating)) | 631 | (eq no-repeat 'repeating)) |
| 632 | last-input-event)) | 632 | last-input-event))) |
| 633 | repeat-key-str) | ||
| 634 | (if end-macro | 633 | (if end-macro |
| 635 | (kmacro-end-macro arg) | 634 | (kmacro-end-macro arg) |
| 636 | (call-last-kbd-macro arg #'kmacro-loop-setup-function)) | 635 | (call-last-kbd-macro arg #'kmacro-loop-setup-function)) |
| @@ -641,7 +640,13 @@ others, use \\[kmacro-name-last-macro]." | |||
| 641 | (if (eq kmacro-call-repeat-key t) | 640 | (if (eq kmacro-call-repeat-key t) |
| 642 | repeat-key | 641 | repeat-key |
| 643 | kmacro-call-repeat-key))) | 642 | kmacro-call-repeat-key))) |
| 644 | (setq repeat-key-str (format-kbd-macro (vector repeat-key) nil)) | 643 | ;; Issue a hint to the user, if the echo area isn't in use. |
| 644 | (unless (current-message) | ||
| 645 | (message "(Type %s to repeat macro%s)" | ||
| 646 | (format-kbd-macro (vector repeat-key) nil) | ||
| 647 | (if (and kmacro-call-repeat-with-arg | ||
| 648 | arg (> arg 1)) | ||
| 649 | (format " %d times" arg) ""))) | ||
| 645 | ;; Can't use the `keep-pred' arg because this overlay keymap needs to be | 650 | ;; Can't use the `keep-pred' arg because this overlay keymap needs to be |
| 646 | ;; removed during the next run of the kmacro (i.e. we need to add&remove | 651 | ;; removed during the next run of the kmacro (i.e. we need to add&remove |
| 647 | ;; this overlay-map at each repetition). | 652 | ;; this overlay-map at each repetition). |