unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* idea: M-x compile target from cursor position in Makefile
@ 2003-04-10  0:52 Dan Jacobson
  0 siblings, 0 replies; only message in thread
From: Dan Jacobson @ 2003-04-10  0:52 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-10  0:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-10  0:52 idea: M-x compile target from cursor position in Makefile Dan Jacobson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).