GNU bug report logs - #19712
24.4; GNUmakefile mode: C-c C-c does not comment lines in recipes correctly

Previous Next

Package: emacs;

Reported by: Alain Kalker <a.c.kalker <at> gmail.com>

Date: Wed, 28 Jan 2015 14:57:01 UTC

Severity: normal

Found in version 24.4

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Alain Kalker <a.c.kalker <at> gmail.com>
Cc: 19712 <at> debbugs.gnu.org
Subject: bug#19712: 24.4; GNUmakefile mode: C-c C-c does not comment lines in recipes correctly
Date: Thu, 03 Dec 2020 12:53:13 +0100
[Message part 1 (text/plain, inline)]
Alain Kalker <a.c.kalker <at> gmail.com> writes:

> In a buffer editing a Makefile, marking a line in a recipe then doing
> C-c C-c should put a "#" at the beginning of the line (before the
> <tab>).  Instead, it puts "# " before the command, which doesn't make a
> valid Makefile comment, i.e. it gets sent to the shell. In particular,
> expansions like $(definedvar) get executed, which is usually not what is
> wanted.

(This bug report unfortunately got no response at the time.)

I tried reproducing this bug in Emacs 28 with this Makefile snippet:

[Message part 2 (image/png, inline)]
[Message part 3 (text/plain, inline)]
Following the recipe, I get this:

[Message part 4 (image/png, inline)]
[Message part 5 (text/plain, inline)]
So it looks like this has been fixed at some point since this was
reported, and I'm closing this bug report.  If this is still an issue,
please respond to the debbugs address and we'll reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

This bug report was last modified 4 years and 232 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.