From: Stefan Monnier Date: Tue, 23 Dec 2014 04:22:20 +0000 (-0500) Subject: * lisp/progmodes/sh-script.el: Don't set global indent-line-function X-Git-Tag: emacs-24.4.90~117 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=012479a;p=emacs.git * 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. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 63076576871..7f1346d8b5a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-12-23 Stefan Monnier + + * progmodes/sh-script.el (sh-set-shell): Don't change the global value + of indent-line-function (bug#19433). + 2014-12-23 Fabián Ezequiel Gallina Fix line numbers on Python shell. 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)