emacs-diffs
[Top][All Lists]
Advanced

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

master e32dcc7527: Add .bashrc detection to sh-mode


From: Lars Ingebrigtsen
Subject: master e32dcc7527: Add .bashrc detection to sh-mode
Date: Wed, 6 Apr 2022 05:38:13 -0400 (EDT)

branch: master
commit e32dcc752723cd255622fde73a324bdcb1e90664
Author: Davide Masserut <dm@mssdvd.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Add .bashrc detection to sh-mode
    
    * lisp/progmodes/sh-script.el (sh-mode): Add .bashrc string-match
    (bug#54727).
---
 lisp/progmodes/sh-script.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 8dc5562143..9151fd0a34 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -1549,7 +1549,7 @@ with your script for an edit-interpret-debug cycle."
          ;; Checks that use `buffer-file-name' follow.
          ((string-match "\\.m?spec\\'" buffer-file-name) "rpm")
          ((string-match "[.]sh\\>"     buffer-file-name) "sh")
-         ((string-match "[.]bash\\>"   buffer-file-name) "bash")
+         ((string-match "[.]bash\\(rc\\)?\\>"   buffer-file-name) "bash")
          ((string-match "[.]ksh\\>"    buffer-file-name) "ksh")
          ((string-match "[.]mkshrc\\>" buffer-file-name) "mksh")
          ((string-match "[.]t?csh\\(rc\\)?\\>" buffer-file-name) "csh")



reply via email to

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