bug-gnu-emacs
[Top][All Lists]
Advanced

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

idea: M-x compile target from cursor position in Makefile


From: Dan Jacobson
Subject: idea: M-x compile target from cursor position in Makefile
Date: Thu, 10 Apr 2003 08:52:50 +0800
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

You know what I would find real neat, if the M-x compile command could
please kindly be a little sensitive to just where we are in a Makefile.
The default make target should get a cue from the area under the cursor.

I.e. let's say your Makefile looks like:
z:
        bla bla
q:
        cla cla

Well, if the cursor is anywhere between the z but before the q, doing
M-x compile should set the default compilation to "make -k
z". Likewise, if the cursor is anywhere upon the q and onwards, M-x
compile should set the default compilation to "make -k q".  Isn't that
more sense than just plain "make -k"?  Yes, make this new behavior
optional, off by default etc. if you please.  P.S. kindly implement it
for me and add it to emacs.  Yes I mentioned it before but not as clearly.

If the cursor is before the first target, then the default command
would just be make -k.
-- 
http://jidanni.org/ Taiwan(04)25854780





reply via email to

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