diff lisp/bytecomp.el @ 259:11cf20601dec r20-5b28

Import from CVS: tag r20-5b28
author cvs
date Mon, 13 Aug 2007 10:23:02 +0200
parents 51092a27c943
children c5d627a313b1
line wrap: on
line diff
--- a/lisp/bytecomp.el	Mon Aug 13 10:22:10 2007 +0200
+++ b/lisp/bytecomp.el	Mon Aug 13 10:23:02 2007 +0200
@@ -1332,11 +1332,24 @@
 	  (set-buffer "*Compile-Log*")
 	  (if (= byte-compile-warnings-point-max (point-max))
 	      nil
-	    (select-window
-	     (prog1 (selected-window)
-	       (select-window (display-buffer (current-buffer)))
-	       (goto-char byte-compile-warnings-point-max)
-	       (recenter 1))))))))
+            (if temp-buffer-show-function
+                (let ((show-buffer (get-buffer-create "*Compile-Log-Show*")))
+                  (save-excursion
+                    (set-buffer show-buffer)
+                    (setq buffer-read-only nil)
+                    (erase-buffer))
+                  (copy-to-buffer show-buffer
+                                  (save-excursion
+                                    (goto-char byte-compile-warnings-point-max)
+                                    (forward-line -1)
+                                    (point))
+                                  (point-max))
+                  (funcall temp-buffer-show-function show-buffer))
+              (select-window
+               (prog1 (selected-window)
+                 (select-window (display-buffer (current-buffer)))
+                 (goto-char byte-compile-warnings-point-max)
+                 (recenter 1)))))))))
 
 
 ;;;###autoload