GNU bug report logs - #76641
30.1; M-q fails in makefile-mode

Previous Next

Package: emacs;

Reported by: Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>

Date: Fri, 28 Feb 2025 13:42:02 UTC

Severity: normal

Found in version 30.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 76641-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>
Cc: 76641-done <at> debbugs.gnu.org
Subject: Re: bug#76641: 30.1; M-q fails in makefile-mode
Date: Sat, 01 Mar 2025 16:07:01 +0200
> From: Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>
> Date: Fri, 28 Feb 2025 14:38:55 +0100
> 
> Since Emacs 30, M-q does not work in makefiles for my most common use
> case.
> 
> Reproduction:
> 
> * Create a file "Makefile" with this content (without the indentation)
> 
>     v = 1 2 3 4 5 \
>         6 7 8 9 0
> 
> * Put point inside that expression and press M-q.
> 
> * Expected result:
> 
>     v = 1 2 3 4 5 6 7 8 9 0
> 
> * Actual result: No change.
> 
> Explanation:
> 
> In Emacs 29, M-q was bound to fill-paragraph.  In Emacs 30 it is bound
> to prog-fill-reindent-defun.
> 
> Why that function does not work, I am not sure.  It seems to check
> tree-sitter before falling back to fill-paragraph, but the fallback does
> not happen, at least not in the function prog-fill-reindent-defun
> itself.
> 
> As a workaround I am now binding M-q to fill-paragraph myself in
> makefile-mode. 

Thanks, I've installed a change on the emacs-30 release branch that
binds M-q to fill-paragraph in makefile-mode.

With that, I'm closing this bug.




This bug report was last modified 72 days ago.

Previous Next


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