]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/sh-script.el
* lisp/progmodes/sh-script.el: Don't set global indent-line-function
[gnu-emacs] / lisp / progmodes / sh-script.el
index 1165144d05c8c2739f1975aaa691c7c969e85faa..476c7961be7f0547caaf326ac186e7e002dffd66 100644 (file)
@@ -2350,7 +2350,7 @@ Calls the value of `sh-set-shell-hook' if set."
            (sh-make-vars-local))
        (message "Indentation setup for shell type %s" sh-shell))
     (message "No indentation for this shell type.")
-    (setq indent-line-function 'sh-basic-indent-line))
+    (setq-local indent-line-function 'sh-basic-indent-line))
   (when font-lock-mode
     (setq font-lock-set-defaults nil)
     (font-lock-set-defaults)