🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #1940

GNU Emacs compile.el Change Suggestion

#1940
From: John Hagerman
Date: Sun, 13 Dec 1992 07:37
36 lines
1527 bytes
I've added an option to compile.el which, when set, causes `compile'
to save all modified buffers without asking.  I have used this for a
couple of years without trouble.  The default setting makes this a
transparent addition.

It's pretty simple, so I'll describe it manually here and append the
result of `diff my-compile.el compile.el' at the end of the message.

Add the variable

    (defvar compilation-save-without-asking nil
      "*If non-nil then save all modified buffers without asking.")

and change the single occurrence of

    (save-some-buffers)

to

    (save-some-buffers compilation-save-without-asking)

Thanks for your consideration - John

19a20,23
> ;; HISTORY
> ;;
> ;; Dec 13, 1992; John Hagerman: Added compilation-save-without-asking.
> 
21a26,28
> (defvar compilation-save-without-asking nil
>   "*If non-nil then save all modified buffers without asking.")
> 
68c75
<   (save-some-buffers)
---
>   (save-some-buffers compilation-save-without-asking)
Technical Details
Message-ID: <9212131737.AA27162@rx7.ece.cmu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rx7.ece.cmu.edu!hagerman

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.help
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rx7.ece.cmu.edu!hagerman
From: hagerman@rx7.ece.cmu.edu (John Hagerman)
Subject: GNU Emacs compile.el Change Suggestion
Message-ID: <9212131737.AA27162@rx7.ece.cmu.edu>
Sender: daemon@cis.ohio-state.edu
Reply-To: hagerman@ece.cmu.edu
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Date: Sun, 13 Dec 1992 07:37:08 GMT
Lines: 36