From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Paul D. Smith" Newsgroups: gmane.emacs.bugs Subject: Re: Makefile mode comment color didn't notice backslash continuation Date: 03 Feb 2003 23:16:01 -0500 Organization: GNU's Not Unix! Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: psmith@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044332322 28635 80.91.224.249 (4 Feb 2003 04:18:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 4 Feb 2003 04:18:42 +0000 (UTC) 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 18fuXg-0007Ri-00 for ; Tue, 04 Feb 2003 05:18:40 +0100 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 18fuY6-0006sO-06 for gnu-bug-gnu-emacs@m.gmane.org; Mon, 03 Feb 2003 23:19:06 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18fuXe-0006hq-00 for bug-gnu-emacs@prep.ai.mit.edu; Mon, 03 Feb 2003 23:18:38 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18fuWj-0005Ig-00 for bug-gnu-emacs@prep.ai.mit.edu; Mon, 03 Feb 2003 23:17:45 -0500 Original-Received: from chx400.switch.ch ([130.59.10.2]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18fuVF-0003gL-00 for bug-gnu-emacs@prep.ai.mit.edu; Mon, 03 Feb 2003 23:16:09 -0500 Original-Received: from zcars0m9.nortelnetworks.com ([47.129.242.157]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 18fuVE-0006TU-00 for gnu-emacs-bug@moderators.isc.org; Tue, 04 Feb 2003 05:16:08 +0100 Original-Received: from zcars2ky.ca.nortel.com (zcars2ky.ca.nortel.com [47.129.242.221])id h144G4L03117 for ; Mon, 3 Feb 2003 23:16:04 -0500 (EST) Original-Received: from zcars0v6.ca.nortel.com (zcars0v6.ca.nortel.com [47.248.2.28]) h144G1X21292 for ; Mon, 3 Feb 2003 23:16:01 -0500 (EST) Original-Received: (from news@localhost) by zcars0v6.ca.nortel.com (8.9.3+Sun/8.9.3) id XAA15733 for gnu-emacs-bug@moderators.isc.org; Mon, 3 Feb 2003 23:16:01 -0500 (EST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 39 Original-NNTP-Posting-Host: lemming.engeast.baynetworks.com Original-X-Trace: zcars0v6.ca.nortel.com 1044332161 15577 47.17.140.90 (4 Feb 2003 04:16:01 GMT) Original-X-Complaints-To: hawkinsj@nortelnetworks.com Original-NNTP-Posting-Date: Tue, 4 Feb 2003 04:16:01 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-BadReturnPath: news@zcars0v6.ca.nortel.com rewritten as psmith@gnu.org using "Reply-To" header 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:4386 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4386 %% Dan Jacobson writes: P> In short (too late...) the font-locking in makefile mode should P> ignore everything except make variables for colorization in a line P> that begins with a TAB (that's what make does, after all...) dj> I think you mean makefile mode need not bother itself with any detail dj> of lines beginning with tab, i.e. the only comment color in dj> $ cat Makefile dj> e=z #ppp dj> z: dj> echo $e dj> f=g date dj> would be #ppp Nope. In fact I meant exactly what I said. Yes, the only comment color would be "#ppp", but makefile-mode also colorizes make variable references. In the above, the $e is interpreted by make and expanded to the value of the make variable "e". Since this value is interpreted by make, it should be colorized as a make variable reference by makefile-mode. If you'd written: e=z #ppp z: echo $$e f=g date then I would agree with your statement. -- ------------------------------------------------------------------------------- Paul D. Smith Find some GNU make tips at: http://www.gnu.org http://make.paulandlesley.org "Please remain calm...I may be mad, but I am a professional." --Mad Scientist