GNU bug report logs - #78159
shell-script indent regression in Emacs 30

Previous Next

Package: emacs;

Reported by: john.ciolfi.32 <at> gmail.com

Date: Wed, 30 Apr 2025 06:57:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: John C <john.ciolfi.32 <at> gmail.com>, Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 78159 <at> debbugs.gnu.org
Subject: bug#78159: shell-script indent regression in Emacs 30
Date: Wed, 30 Apr 2025 17:23:03 +0300
> From: John C <john.ciolfi.32 <at> gmail.com>
> Date: Wed, 30 Apr 2025 08:49:28 -0400
> 
> I debugged this a little and see the regression occurred when sh-script.el  sh-font-lock-paren was changed
> in Emacs 30 to have:
> 
>                     ;; Also recognize OpenBSD's case X { ... } (bug#55764).
>                     (and (looking-at ";\\(?:;&?\\|[&|]\\)\\|\\_<in\\|.{")
> 
> where the Emacs 29 had:
> 
>                     (and (looking-at ";[;&]\\|\\_<in")
> 
> when I modify Emacs 30 sh-script.el to revert this one line back to the Emacs 29 content, we get the correct
> answer. I suspect reverting this line is not the right thing to do. Rather, I hope it helps someone find the
> solution.

Stefan, any suggestions?




This bug report was last modified 43 days ago.

Previous Next


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