[Top][All Lists]

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

compile-command directory local

From: Dan Jacobson
Subject: compile-command directory local
Date: Sun, 27 Apr 2003 10:11:31 +0800
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

I do M-x compile in dir1, and then dir2.
Emacs should have a variable that would enable keeping separate ideas
of what to prompt with for each current directory.
E.g. for this scenario
$ cd bugs
$ make kill
$ cd pets
$ make feed...
one just doesn't do ^RmakeRET... In emacs we can do better.
if one were just to hit RET to emacs' prompts, dead pets and fed bugs
are the result unless you implement my suggestion.

Yes, one could use local variables at the bottom of each makefile.  or
do (make-variable-buffer-local 'compile-command) but I'm afraid thus
is not achieving directory-wide control of compile-command.

Yes, if one were in Makefile when one calls compile, it might feel
that way, but often one is in other files of the same directory.

One could fiddle with compilation-mode-hook, but that would assume
were in the *compilation* buffer when we invoke compile.

I know, someone is going to send "advice" which I will stuff in my
.emacs file and my brilliant suggestion will thus wither in the mist.
http://jidanni.org/ Taiwan(04)25854780

reply via email to

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