bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25585: Fwd: [reddit] 1 new message from u/hvis


From: Lars Ingebrigtsen
Subject: bug#25585: Fwd: [reddit] 1 new message from u/hvis
Date: Wed, 19 Aug 2020 13:49:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Bob Hepple <bob.hepple@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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]