Subject: bug#8862: compilation-window-height no good anymore

From: martin rudalics <[email-masked]>
Date: Wed, 15 Jun 2011 15:28:56 +0200

> Well it certainly isn't,
 >
 >  %* *compilation /home/jidanni/*             174  Compilation:exit
 >  %* *compilation /cf/updates/*               184  Compilation:exit

Aha.  In this case you probably need something like

(setq display-buffer-alist
       (cons '(((regexp . "\\*compilation.+\\*"))
           (fun-with-args
            (lambda (buffer &rest args)
          (delete-other-windows)
          (display-buffer buffer 'same-window))))
         display-buffer-alist))

martin