+2007-05-23 Nikolaj Schumacher <n_schumacher@web.de> (tiny change)
+
+ * progmodes/compile.el (compilation-handle-exit):
+ `compilation-finish-function' may change the current buffer.
+
2007-05-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
* help-fns.el (find-source-lisp-file): New function.
process-status exit-status msg)
(cons msg exit-status)))
(omax (point-max))
- (opoint (point)))
+ (opoint (point))
+ (cur-buffer (current-buffer)))
;; Record where we put the message, so we can ignore it later on.
(goto-char omax)
(insert ?\n mode-name " " (car status))
(goto-char opoint))
(with-no-warnings
(if compilation-finish-function
- (funcall compilation-finish-function (current-buffer) msg)))
- (run-hook-with-args 'compilation-finish-functions (current-buffer) msg)))
+ (funcall compilation-finish-function cur-buffer msg)))
+ (run-hook-with-args 'compilation-finish-functions cur-buffer msg)))
;; Called when compilation process changes state.
(defun compilation-sentinel (proc msg)