GNU bug report logs - #77746
[PATCH] sh-mode: Fix incorrect word syntax for punctuation in sh-mode

Previous Next

Package: emacs;

Reported by: James Cherti <contact <at> jamescherti.com>

Date: Fri, 11 Apr 2025 14:56:02 UTC

Severity: normal

Tags: patch

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#77746: closed ([PATCH] sh-mode: Fix incorrect word syntax for
 punctuation in sh-mode)
Date: Wed, 07 May 2025 19:06:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 07 May 2025 15:05:17 -0400
with message-id <jwvr0101bv0.fsf-monnier+emacs <at> gnu.org>
and subject line Re: bug#77746: [PATCH] sh-mode: Fix incorrect word syntax for punctuation in sh-mode
has caused the debbugs.gnu.org bug report #77746,
regarding [PATCH] sh-mode: Fix incorrect word syntax for punctuation in sh-mode
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
77746: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77746
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: James Cherti <contact <at> jamescherti.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] sh-mode: Fix incorrect word syntax for punctuation in sh-mode
Date: Fri, 11 Apr 2025 10:55:02 -0400
[Message part 3 (text/plain, inline)]
Hello,

In sh and Bash, the characters !%^~:.,= and are not valid in variable or
function names.

Assigning them the "_" syntax causes Emacs to treat them as word
constituents, disrupting navigation and completion
(e.g. dabbrev-expand, forward-word, etc.).

The attached patch updates the syntax table in sh-mode to mark
these characters as punctuation, correcting the issue.

--
James Cherti
GitHub: https://github.com/jamescherti
Website: https://www.jamescherti.com/
[fix-sh-mode-syntax-table.patch (text/x-patch, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: James Cherti <contact <at> jamescherti.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, juri <at> linkov.net, 77746-done <at> debbugs.gnu.org,
 Dmitry Gutov <dgutov <at> yandex.ru>
Subject: Re: bug#77746: [PATCH] sh-mode: Fix incorrect word syntax for
 punctuation in sh-mode
Date: Wed, 07 May 2025 15:05:17 -0400
I didn't see any other objections, so I pushed it to `master`.
Thanks James, especially for your patience,


        Stefan



This bug report was last modified 107 days ago.

Previous Next


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