home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / emacs / help / 5070 < prev    next >
Encoding:
Text File  |  1992-12-13  |  1.4 KB  |  48 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!stanford.edu!agate!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rx7.ece.cmu.edu!hagerman
  3. From: hagerman@rx7.ece.cmu.edu (John Hagerman)
  4. Subject: GNU Emacs compile.el Change Suggestion
  5. Message-ID: <9212131737.AA27162@rx7.ece.cmu.edu>
  6. Sender: daemon@cis.ohio-state.edu
  7. Reply-To: hagerman@ece.cmu.edu
  8. Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
  9. Date: Sun, 13 Dec 1992 07:37:08 GMT
  10. Lines: 36
  11.  
  12. I've added an option to compile.el which, when set, causes `compile'
  13. to save all modified buffers without asking.  I have used this for a
  14. couple of years without trouble.  The default setting makes this a
  15. transparent addition.
  16.  
  17. It's pretty simple, so I'll describe it manually here and append the
  18. result of `diff my-compile.el compile.el' at the end of the message.
  19.  
  20. Add the variable
  21.  
  22.     (defvar compilation-save-without-asking nil
  23.       "*If non-nil then save all modified buffers without asking.")
  24.  
  25. and change the single occurrence of
  26.  
  27.     (save-some-buffers)
  28.  
  29. to
  30.  
  31.     (save-some-buffers compilation-save-without-asking)
  32.  
  33. Thanks for your consideration - John
  34.  
  35. 19a20,23
  36. > ;; HISTORY
  37. > ;;
  38. > ;; Dec 13, 1992; John Hagerman: Added compilation-save-without-asking.
  39. 21a26,28
  40. > (defvar compilation-save-without-asking nil
  41. >   "*If non-nil then save all modified buffers without asking.")
  42. 68c75
  43. <   (save-some-buffers)
  44. ---
  45. >   (save-some-buffers compilation-save-without-asking)
  46.