unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8862: Stop compilation mode from splitting the window
  2011-06-14 15:03 ` bug#8862: compilation-window-height no good anymore jidanni
@ 2011-07-24 15:07   ` jidanni
  2011-07-24 15:34   ` jidanni
  2011-07-25  1:14   ` jidanni
  2 siblings, 0 replies; 4+ messages in thread
From: jidanni @ 2011-07-24 15:07 UTC (permalink / raw)
  To: rudalics, monnier; +Cc: help-gnu-emacs, 8862

8862 is broken again.
Please tell me a way to stop compilation mode from splitting the window!





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#8862: Stop compilation mode from splitting the window
  2011-06-14 15:03 ` bug#8862: compilation-window-height no good anymore jidanni
  2011-07-24 15:07   ` bug#8862: Stop compilation mode from splitting the window jidanni
@ 2011-07-24 15:34   ` jidanni
  2011-07-25  1:14   ` jidanni
  2 siblings, 0 replies; 4+ messages in thread
From: jidanni @ 2011-07-24 15:34 UTC (permalink / raw)
  To: david.belohrad; +Cc: help-gnu-emacs, 8862

>>>>> "DB" == David Belohrad <david.belohrad@cern.ch> writes:
DB> I use something like this to close compilation window if no error during compilation was
DB> found. This however does not preserve the frame configuration

DB>   (setq compilation-finish-function
DB>      (lambda (buf str)
DB>        (if (or (string-match "warning:" str) (string-match "exited abnormally" str)
DB> (string-match "compilation aborted" str))
DB>                ;;there were errors
DB>            (message "compilation errors or warnings, press C-x ` to visit")
DB>          ;;no errors, make the compilation window go away in 0.5 seconds
DB>          (run-at-time 0.5 nil 'delete-windows-on buf)
DB>          (message "NO COMPILATION ERRORS!"))))
OK, but one would think the emacs maintainers might be charitable to
provide a variable to just not split the window in half in the first
place (so I can see the whole window of juicy compilation action.)





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#8862: Stop compilation mode from splitting the window
       [not found] <87tyabbttm.fsf@jidanni.org>
@ 2011-07-24 17:06 ` martin rudalics
  0 siblings, 0 replies; 4+ messages in thread
From: martin rudalics @ 2011-07-24 17:06 UTC (permalink / raw)
  To: jidanni; +Cc: help-gnu-emacs, 8862

 > 8862 is broken again.

Sorry.

 > Please tell me a way to stop compilation mode from splitting the window!

Does

(setq display-buffer-alist
       (cons '(((regexp . "\\*compilation.+\\*"))
	      (function ; was "fun-with-args" before
	       (lambda (buffer &rest args)
		 (delete-other-windows)
		 (let (display-buffer-alist)
		   (display-buffer buffer 'same-window))))
	      (override . t))
	    display-buffer-alist))

work?

martin





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#8862: Stop compilation mode from splitting the window
  2011-06-14 15:03 ` bug#8862: compilation-window-height no good anymore jidanni
  2011-07-24 15:07   ` bug#8862: Stop compilation mode from splitting the window jidanni
  2011-07-24 15:34   ` jidanni
@ 2011-07-25  1:14   ` jidanni
  2 siblings, 0 replies; 4+ messages in thread
From: jidanni @ 2011-07-25  1:14 UTC (permalink / raw)
  To: rudalics; +Cc: help-gnu-emacs, 8862

>>>>> "mr" == martin rudalics <rudalics@gmx.at> writes:
mr> Does ...
mr> work?
Yes! Thanks! Bye.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-25  1:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87tyabbttm.fsf@jidanni.org>
2011-07-24 17:06 ` bug#8862: Stop compilation mode from splitting the window martin rudalics
     [not found] <CANRVBjd5fkREY6aKUkr75nEHJn32DZE56W=36LvBKQXOVVE+zQ@mail.gmail.com>
2011-06-14 15:03 ` bug#8862: compilation-window-height no good anymore jidanni
2011-07-24 15:07   ` bug#8862: Stop compilation mode from splitting the window jidanni
2011-07-24 15:34   ` jidanni
2011-07-25  1:14   ` jidanni

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).