Article View: comp.emacs
Article #3309optimistic compiling
From: Joshua Levy
Date: Wed, 18 Nov 1992 23:02
Date: Wed, 18 Nov 1992 23:02
21 lines
1196 bytes
1196 bytes
I want to try implmenting "optimistic compiling" with emacs. Optimistic compiling is simple: everytime an editor saves a .c file, it forks a job to compile it in the background. If a previous job is compiling the same file, it is killed first. The idea is this: if you modify several .c files, all but the last one will be .o files by the time you hit the main make command. This assumes you are working on a machine which can compile and edit without slowing down the edits much. Any ideas how to do this? I know the raw materials are in there somewhere, because the compile command does some of what I want. I just want it to automatically fire when I save a file, and I need to change the command line slightly based on the file being saved. I use emacs 18.59, which I've never modified or customized. Any ideas on how to start? Joshua Levy (joshua@veritas.com) 408-727-1222x253
Technical Details
Message-ID:
<1992Nov18.230204.1329@Veritas.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!olivea!veritas!joshuaShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!olivea!veritas!joshua From: joshua@Veritas.COM (Joshua Levy) Newsgroups: comp.emacs Subject: optimistic compiling Message-ID: <1992Nov18.230204.1329@Veritas.COM> Date: 18 Nov 92 23:02:04 GMT Organization: VERITAS Software Lines: 21