bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: martin rudalics
Subject: bug#8862: compilation-window-height no good anymore
Date: Wed, 15 Jun 2011 14:57:42 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]