all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.