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

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

Re: sometimes I want to compile and not save files nor be asked


From: Dan Jacobson
Subject: Re: sometimes I want to compile and not save files nor be asked
Date: Fri, 30 Jul 2004 05:07:09 +0800

>>>>> "j" == jay  <jay@_HOSTNAME_> emails me:

j> * Dan Jacobson <jidanni@jidanni.org> at 2004-07-15 01:50+0800
j> | Well gosh, how about what if we just plain don't want to be asked
j> | about saving, and don't want gratuitous saving?

j>  Well, I guess this is more about feature request rather than bug report.
j>  Anyway, I'm using the following simple advice to do the job:

Well OK, but my postings here are mainly for "permanent changes to
emacs for the benefit of future generations", not for advice stuff for
little old me's ~/.emacs.

j>    (setq compilation-read-command      t
j>          compilation-ask-about-save    nil)
j>    (defmacro do-without-save-buffers (command)
j>      `(defadvice ,command (around dont-ask-dont-save-buffers activate)
j>         (flet ((save-some-buffers (&rest args) nil))
j>           ad-do-it)))
j>    (do-without-save-buffers compile)
j>    (do-without-save-buffers recompile)




reply via email to

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