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

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

bug#8862: Stop compilation mode from splitting the window


From: jidanni
Subject: bug#8862: Stop compilation mode from splitting the window
Date: Sun, 24 Jul 2011 23:34:11 +0800

>>>>> "DB" == David Belohrad <address@hidden> 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.)





reply via email to

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