From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Alan Mackenzie <acm@muc.de>
Cc: 33247@debbugs.gnu.org, "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Subject: bug#33247: makefile mode comment color
Date: Tue, 06 Nov 2018 08:25:39 -0500 [thread overview]
Message-ID: <jwvva5az6hz.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <20181106094721.92934.qmail@mail.muc.de> (Alan Mackenzie's message of "6 Nov 2018 09:47:21 -0000")
> Why do we have this setting for makefiles at all?
That's to handle the /bin/sh comments on the command lines of rules,
where the code is run by /bin/sh and hence obeys the corresponding
rules. E.g.
foo.o: foo.c
echo This is#not a comment
$(CC) $(CFLAGS) -o $@ $< #This is an sh comment
> Are there any such
> restrictions on comments in Makefiles? Stefan?
Maybe we should conditionalize on the presence of a leading TAB at the
beginning of the line.
BTW, I recently saw that the above is wrong in cases like
foo.o: foo.c
@#An sh comment not recognized by current makefile mode
$(CC) $(CFLAGS) -o $@ $< #This is a comment
so if you can fix both of those while you're there, that'd be great!
-- Stefan
next prev parent reply other threads:[~2018-11-06 13:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-03 3:39 bug#33247: makefile mode comment color 積丹尼 Dan Jacobson
[not found] ` <mailman.3320.1541216477.1284.bug-gnu-emacs@gnu.org>
2018-11-06 9:47 ` Alan Mackenzie
2018-11-06 13:25 ` Stefan Monnier [this message]
2018-11-06 10:01 ` 積丹尼 Dan Jacobson
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvva5az6hz.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=33247@debbugs.gnu.org \
--cc=acm@muc.de \
--cc=jidanni@jidanni.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.