GNU bug report logs - #25585
25.1; shell-script mode not providing proper support for finding variables at point

Previous Next

Package: emacs;

Reported by: Bob Hepple <bob.hepple <at> gmail.com>

Date: Tue, 31 Jan 2017 00:40:01 UTC

Severity: normal

Tags: patch

Found in version 25.1

Fixed in version 28.1

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: Bob Hepple <bob.hepple <at> gmail.com>
Cc: 25585 <at> debbugs.gnu.org
Subject: bug#25585: Fwd: [reddit] 1 new message from u/hvis
Date: Wed, 19 Aug 2020 13:49:16 +0200
Bob Hepple <bob.hepple <at> gmail.com> writes:

> This patch (suggested by https://reddit.com/u/hvis) works for me ...
>
>     diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el      
>
>     index a0bbf55..dc296a2 100644      
>     --- a/lisp/progmodes/sh-script.el      
>     +++ b/lisp/progmodes/sh-script.el      
>     @@ -483,6 +483,7 @@ sh-mode-syntax-table      
>         ?~ "_"      
>         ?, "_"      
>         ?= "."      
>     +        ?/ "."      
>         ?\; "."      
>         ?| "."      
>         ?& "."      

I've respun the patch below...

So this would change the / character into a punctuation character in
shell buffers?  It fixes the reported problem, and it does seem
reasonable to have / classified like that.

Does anybody object to applying this patch?  There may be unwanted side
effects...

diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 5a47594878..8cd3aad268 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -386,6 +386,7 @@ sh-mode-syntax-table
 	?~ "_"
 	?, "_"
 	?= "."
+	?/ "."
 	?\; "."
 	?| "."
 	?& "."


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




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

Previous Next


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