diff lisp/progmodes/compile.el @ 14260:4577848d3ef2

(compilation-handle-exit): Undo previous change. Don't reference `proc' object. Pass current buffer to `compilation-finish-function'.
author Karl Heuer <kwzh@gnu.org>
date Tue, 23 Jan 1996 17:51:09 +0000
parents 61fe711e4ae4
children 1ce19c0594b1
line wrap: on
line diff
--- a/lisp/progmodes/compile.el	Tue Jan 23 17:44:58 1996 +0000
+++ b/lisp/progmodes/compile.el	Tue Jan 23 17:51:09 1996 +0000
@@ -599,18 +599,13 @@
     (forward-char -1)
     (insert " at " (substring (current-time-string) 0 19))
     (forward-char 1)
-    (setq mode-line-process
-	  (format ":%s [%s]"
-		  (if (fboundp 'process-status)
-		      (process-status proc) 
-		    "")
-		  (cdr status)))
+    (setq mode-line-process (format ":%s [%s]" process-status (cdr status)))
     ;; Force mode line redisplay soon.
     (force-mode-line-update)
     (if (and opoint (< opoint omax))
 	(goto-char opoint))
     (if compilation-finish-function
-	(funcall compilation-finish-function buffer msg))))
+	(funcall compilation-finish-function (current-buffer) msg))))
 
 ;; Called when compilation process changes state.
 (defun compilation-sentinel (proc msg)