In GNU Emacs 22.0.50.26 (i686-pc-linux-gnu, GTK+ Version 2.6.4)
 of 2005-04-07 on dugong
Distributor `The XFree86 Project, Inc', version 11.0.40300001
configured using `configure '--with-gtk''

Using repeat (C-x z z z) doesn't take account of pre-command-hook and
post-command-hook.  To demonstrate this, activate hl-line-mode and try
something like C-p C-x z z z.  During the repeats, the highlighted
line doesn't move.

Simply running these hooks in repeat fixes this example at least,
though I don't know if this could cause problems in other cases.
(Note that an additional pre/post hook will get run for each C-x z z z
...  sequence relative to repeating the command by hand the same
number of times.)

Thanks,

Matt

--- repeat.el	01 Sep 2003 16:45:14 +0100	1.14
+++ repeat.el	12 Apr 2005 13:07:41 +0100	
@@ -284,7 +284,9 @@
 	      ;; does not alter it.
 	      (let ((real-last-command real-last-command))
 		(execute-kbd-macro real-last-command))
-	    (call-interactively real-last-command)))))
+            (run-hooks 'pre-command-hook)
+	    (call-interactively real-last-command)
+            (run-hooks 'post-command-hook)))))
     (when repeat-repeat-char
       ;; A simple recursion here gets into trouble with max-lisp-eval-depth
       ;; on long sequences of repetitions of a command like `forward-word'
_______________________________________________
Emacs-pretest-bug mailing list
Emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to