aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2014-12-22 23:22:20 -0500
committerStefan Monnier2014-12-22 23:22:20 -0500
commit012479a7a6a9a2e49ba0218285b2b65b3c70b293 (patch)
tree4ce2e9054893de3d4c9c247826761cf4315fced6
parent75e114fa3b0b45a6356ae3fb580e8c928b45c258 (diff)
downloademacs-012479a7a6a9a2e49ba0218285b2b65b3c70b293.tar.gz
emacs-012479a7a6a9a2e49ba0218285b2b65b3c70b293.zip
* 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.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/sh-script.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 63076576871..7f1346d8b5a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-12-23 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * progmodes/sh-script.el (sh-set-shell): Don't change the global value
4 of indent-line-function (bug#19433).
5
12014-12-23 Fabián Ezequiel Gallina <fgallina@gnu.org> 62014-12-23 Fabián Ezequiel Gallina <fgallina@gnu.org>
2 7
3 Fix line numbers on Python shell. 8 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."
2350 (sh-make-vars-local)) 2350 (sh-make-vars-local))
2351 (message "Indentation setup for shell type %s" sh-shell)) 2351 (message "Indentation setup for shell type %s" sh-shell))
2352 (message "No indentation for this shell type.") 2352 (message "No indentation for this shell type.")
2353 (setq indent-line-function 'sh-basic-indent-line)) 2353 (setq-local indent-line-function 'sh-basic-indent-line))
2354 (when font-lock-mode 2354 (when font-lock-mode
2355 (setq font-lock-set-defaults nil) 2355 (setq font-lock-set-defaults nil)
2356 (font-lock-set-defaults) 2356 (font-lock-set-defaults)