This works great for me too, thanks. I tried with little success to issue a separate 
message if the compilation succeeded but warned about deprecated API. How would you do 
that? 
Cheers
Erwin

> -----Original Message-----
> From: Jack Donohue [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 8:25 PM
> To: 'Paul Kinnucan'; Naoya Maruyama
> Cc: [EMAIL PROTECTED]
> Subject: RE: Suppressing compilation buffer
> 
> 
> I added this to my .emacs ... It displays the compile buffer for a few
> seconds, but if there are no errors removes the compile buffer.
> 
> 
> (defun my-jde-compile-fin-hook (buf str)
>   " Removes the jde-compile window after a few seconds if no errors "
>   (if (null (or (string-match ".*exited abnormally.*" str) 
>               (string-match ".*BUILD FAILED.*" str)))
>       ;;no errors, make the compilation window go away in a 
> few seconds
>       (progn
>       (run-at-time
>        "2 sec" nil 'delete-windows-on
>        (get-buffer-create "*compilation*"))
>       (message "No compilation errors"))
>     ;;there were errors, so jump to the first error
>     (next-error)))
> 
> 
> 
> Add the method to "jde-compile-finish-hook".
> 
> (jde-compile-finish-hook (quote (jde-compile-finish-refresh-speedbar
> jde-compile-finish-flush-completion-cache my-jde-compile-fin-hook)))
> 
> 
> 
> 
> -----Original Message-----
> From: Paul Kinnucan [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 30, 2002 11:20 AM
> To: Naoya Maruyama
> Cc: [EMAIL PROTECTED]
> Subject: Suppressing compilation buffer
> 
> 
> Naoya Maruyama writes:
>  > Hi,
>  > 
>  > When compiling programs by jde-compile, I'm not that 
> comfortable  > with
> automatic displaying of a compilaion buffer. If there are 
> compilation  >
> errors, a compilation buffer and traversing errors by "C-x `" 
> are  > quite
> useful for me, however, if no compilaion error happend, I 
> think  > it's
> enough to show some message in the mini-buffer, not to display  > the
> compilation buffer automatically.  > 
>  > Does anyone know how to configure JDEE as the above? I'd 
> appreciate  >
> any comments you might have.  > 
>  
> I don't know anyway to do this but I agree that it would be 
> desirable. I'll
> put this feature on my list of things to do for the JDEE.
> 
> - Paul
> 

Reply via email to