GNU bug report logs - #76759
[PATCH] 31.0.50; makefile-mode: incorrectly highlights make-instructions as make targets

Previous Next

Package: emacs;

Reported by: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>

Date: Wed, 5 Mar 2025 09:34:02 UTC

Severity: normal

Tags: confirmed, patch

Merged with 17400, 33681, 33900, 35299, 36245, 37934, 45037, 46052, 46221, 48052

Found in version 26.1

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 76759 <at> debbugs.gnu.org (full text, mbox):

From: Mauro Aranda <maurooaranda <at> gmail.com>
To: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>,
 76759 <at> debbugs.gnu.org
Subject: Re: [PATCH] 31.0.50; makefile-mode: incorrectly highlights
 make-instructions as make targets
Date: Wed, 5 Mar 2025 10:00:50 -0300
Jostein Kjønigsen <jostein <at> secure.kjonigsen.net> writes:

> Hey everyone.
>
> I found a bug in makefile-mode fontification.
>
> Currently shell-commands/make-instructions within a target may get
> fontified as make-targets if they contain a : (colon) sign.
>
> Consider the following make-target:
>
> ------- Makefile ------
>
> run-docker: build-docker
> docker run -p 8080:8080 imagename
>
> --------------------------
>
> This defined a make-target called "run-docker" which depends on
> "build-docker", which runs the command "docker run -p 8080:8080
> imagename".
>
> In the current code, since the command contains a ":" the whole text up
> to that point ("docker run -p 8080") gets fontified as a make-target, 
even
> though it's clearly not declared at the beginning of the line.
>

Looks like the 10th duplicate of Bug#17400.





This bug report was last modified 71 days ago.

Previous Next


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