unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dan Jacobson <jidanni@dman.ddts.net>
Subject: idea: M-x compile target from cursor position in Makefile
Date: Thu, 10 Apr 2003 08:52:50 +0800	[thread overview]
Message-ID: <87y92j41i5.fsf@jidanni.org> (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

                 reply	other threads:[~2003-04-10  0:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y92j41i5.fsf@jidanni.org \
    --to=jidanni@dman.ddts.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).