GNU bug report logs - #8862
compilation-window-height no good anymore

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Tue, 14 Jun 2011 15:04:01 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #35 received at 8862 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: jidanni <at> jidanni.org
Cc: 8862 <at> debbugs.gnu.org
Subject: Re: bug#8862: compilation-window-height no good anymore
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




This bug report was last modified 14 years and 18 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.