aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-11-14 03:48:33 +0000
committerRichard M. Stallman1995-11-14 03:48:33 +0000
commit256e4874e9886e34ba7ebdad769a866d3a6fd3b8 (patch)
tree9a7a77bcbe1f2ba581bd56c1f468f0c9aa39f188
parentb884fd7ec2bc42d01cfd6046e5b0260e9c01ad6e (diff)
downloademacs-256e4874e9886e34ba7ebdad769a866d3a6fd3b8.tar.gz
emacs-256e4874e9886e34ba7ebdad769a866d3a6fd3b8.zip
(compilation-sentinel): Use the local value of
compilation-exit-message-function in the process buffer.
-rw-r--r--lisp/progmodes/compile.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 92149e4ac8d..172a4622791 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -566,11 +566,7 @@ See `compilation-mode'."
566 ;; buffer killed 566 ;; buffer killed
567 (set-process-buffer proc nil) 567 (set-process-buffer proc nil)
568 (let ((obuf (current-buffer)) 568 (let ((obuf (current-buffer))
569 omax opoint 569 omax opoint)
570 (status (if compilation-exit-message-function
571 (funcall compilation-exit-message-function
572 proc msg)
573 (cons msg (process-exit-status proc)))))
574 ;; save-excursion isn't the right thing if 570 ;; save-excursion isn't the right thing if
575 ;; process-buffer is current-buffer 571 ;; process-buffer is current-buffer
576 (unwind-protect 572 (unwind-protect
@@ -578,7 +574,11 @@ See `compilation-mode'."
578 ;; Write something in the compilation buffer 574 ;; Write something in the compilation buffer
579 ;; and hack its mode line. 575 ;; and hack its mode line.
580 (set-buffer buffer) 576 (set-buffer buffer)
581 (let ((buffer-read-only nil)) 577 (let ((buffer-read-only nil)
578 (status (if compilation-exit-message-function
579 (funcall compilation-exit-message-function
580 proc msg)
581 (cons msg (process-exit-status proc)))))
582 (setq omax (point-max) 582 (setq omax (point-max)
583 opoint (point)) 583 opoint (point))
584 (goto-char omax) 584 (goto-char omax)