unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* advising jde-compile -- a better way?
@ 2004-10-25 17:44 Joe Casadonte
  2004-10-25 21:43 ` Kevin Rodgers
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joe Casadonte @ 2004-10-25 17:44 UTC (permalink / raw)



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?

--
Regards,

joe
Joe Casadonte
jcasadonte@northbound-train.com

------------------------------------------------------------------------------
         Llama Fresh Farms => http://www.northbound-train.com
   Gay Media Resource List => http://www.northbound-train.com/gaymedia.html
            Perl for Win32 => http://www.northbound-train.com/perlwin32.html
               Emacs Stuff => http://www.northbound-train.com/emacs.html
          Music CD Trading => http://www.northbound-train.com/cdr.html
------------------------------------------------------------------------------
                       Live Free, that's the message!
------------------------------------------------------------------------------

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

end of thread, other threads:[~2004-10-26  1:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-25 17:44 advising jde-compile -- a better way? Joe Casadonte
2004-10-25 21:43 ` Kevin Rodgers
2004-10-25 23:13 ` Michael Slass
2004-10-26  1:04 ` Daniel Pittman

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).