summaryrefslogtreecommitdiff
path: root/lisp/progmodes/sh-script.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2014-12-22 23:22:20 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2014-12-22 23:22:20 -0500
commit012479a7a6a9a2e49ba0218285b2b65b3c70b293 (patch)
tree4ce2e9054893de3d4c9c247826761cf4315fced6 /lisp/progmodes/sh-script.el
parent75e114fa3b0b45a6356ae3fb580e8c928b45c258 (diff)
downloademacs-012479a7a6a9a2e49ba0218285b2b65b3c70b293.tar.gz
* lisp/progmodes/sh-script.el: Don't set global indent-line-function
Fixes: debbugs:19433 (sh-set-shell): Don't change the global value of indent-line-function.
Diffstat (limited to 'lisp/progmodes/sh-script.el')
-rw-r--r--lisp/progmodes/sh-script.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 1165144d05c..476c7961be7 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -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)