home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / emacs / 3573 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.1 KB

  1. Path: sparky!uunet!stanford.edu!ames!olivea!veritas!joshua
  2. From: joshua@Veritas.COM (Joshua Levy)
  3. Newsgroups: comp.emacs
  4. Subject: optimistic compiling
  5. Message-ID: <1992Nov18.230204.1329@Veritas.COM>
  6. Date: 18 Nov 92 23:02:04 GMT
  7. Organization: VERITAS Software
  8. Lines: 21
  9.  
  10. I want to try implmenting "optimistic compiling" with emacs.
  11.  
  12. Optimistic compiling is simple: everytime an editor saves a .c 
  13. file, it forks a job to compile it in the background.  If a 
  14. previous job is compiling the same file, it is killed first.
  15.  
  16. The idea is this: if you modify several .c files, all but the 
  17. last one will be .o files by the time you hit the main make
  18. command.  This assumes you are working on a machine which can
  19. compile and edit without slowing down the edits much.
  20.  
  21. Any ideas how to do this?  I know the raw materials are in there
  22. somewhere, because the compile command does some of what I want.
  23. I just want it to automatically fire when I save a file, and I 
  24. need to change the command line slightly based on the file being
  25. saved.
  26.  
  27. I use emacs 18.59, which I've never modified or customized.
  28. Any ideas on how to start?
  29.  
  30. Joshua Levy  (joshua@veritas.com)  408-727-1222x253
  31.