]> git.eshelyaron.com Git - emacs.git/commitdiff
(compilation-handle-exit):
authorRichard M. Stallman <rms@gnu.org>
Thu, 10 May 2007 16:10:27 +0000 (16:10 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 10 May 2007 16:10:27 +0000 (16:10 +0000)
Use run-hook-with-args to run compilation-finish-functions.

lisp/progmodes/compile.el

index ce933cb13d592175140560e1b57ff597961731d5..23e4f176fee5a7a2f41c4330e5e7a5814996308f 100644 (file)
@@ -1448,10 +1448,7 @@ Turning the mode on runs the normal hook `compilation-minor-mode-hook'."
     (with-no-warnings
       (if compilation-finish-function
          (funcall compilation-finish-function (current-buffer) msg)))
-    (let ((functions compilation-finish-functions))
-      (while functions
-       (funcall (car functions) (current-buffer) msg)
-       (setq functions (cdr functions))))))
+    (run-hook-with-args compilation-finish-functions (current-buffer) msg)))
 
 ;; Called when compilation process changes state.
 (defun compilation-sentinel (proc msg)