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

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

Re: advising jde-compile -- a better way?


From: Michael Slass
Subject: Re: advising jde-compile -- a better way?
Date: Mon, 25 Oct 2004 16:13:04 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

"Joe Casadonte" <jcasadonte@northbound-train.com> writes:

>jde-compile prompts me to save buffers before compiling, a practice
>that I find personally annoying.  I've come up with the following, but
>it seems ugly:
>
>(defadvice jde-compile (around jde-compile-no-save-prompt act)
>  "Supresses the save-buffer prompting."
>       (fset 'save-some-buffers-old-fn-def (symbol-function 
> 'save-some-buffers))
>       (fset 'save-some-buffers 'ignore)
>       ad-do-it
>       (fset 'save-some-buffers (symbol-function 
> 'save-some-buffers-old-fn-def)))
>
>Is there a better or more elegant way to accomplish the same thing?
>

If JDE uses the compile package, then this variable will do what you
want, if you set it to a regex that matches anything.

,----[ C-h v compile-ignore-buffers-list RET ]
| compile-ignore-buffers-list's value is 
| (".bbdb" ".newsrc-dribble")
| 
| 
| Documentation:
| List of buffer names to ignore when offering to save before compilation
| 
| You can customize this variable.
| 
| Defined in `compile'.
`----


-- 
Mike Slass


reply via email to

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