(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 ce933cb..23e4f17 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)