From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: idea: M-x compile target from cursor position in Makefile Date: Thu, 10 Apr 2003 08:52:50 +0800 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87y92j41i5.fsf@jidanni.org> Reply-To: Dan Jacobson NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1049947057 14003 80.91.224.249 (10 Apr 2003 03:57:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 10 Apr 2003 03:57:37 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 10 05:57:34 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 193TBu-0003dg-00 for ; Thu, 10 Apr 2003 05:57:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 193TBo-00076l-00 for gnu-bug-gnu-emacs@m.gmane.org; Wed, 09 Apr 2003 23:57:28 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 193TBX-0006yh-00 for bug-gnu-emacs@gnu.org; Wed, 09 Apr 2003 23:57:11 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 193TBH-0006ur-00 for bug-gnu-emacs@gnu.org; Wed, 09 Apr 2003 23:56:56 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 193TAs-0006kb-00 for bug-gnu-emacs@gnu.org; Wed, 09 Apr 2003 23:56:30 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 193T9t-0003ZI-00 for ; Thu, 10 Apr 2003 05:55:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 193T9k-0003Yd-00 for ; Thu, 10 Apr 2003 05:55:20 +0200 Original-Lines: 22 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4754 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4754 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