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

From: martin rudalics <[email-masked]>
Date: Wed, 15 Jun 2011 14:57:42 +0200

I want to say M-x compile ... and the new buffer should then take up the
 > entire screen.

So your use case is that you have more than one window on your screen
but when you invoke compile you just want to have one window?  Try the
following:

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

You might have to adjust the name if that of your compilation buffer is
not *compilation*.

martin