[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15613: Wrong indentation in Shell-script[sh] mode?
From: |
Glenn Morris |
Subject: |
bug#15613: Wrong indentation in Shell-script[sh] mode? |
Date: |
Wed, 16 Oct 2013 18:41:27 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
By experiment, reverting the "Always setup SMIE..." part of your
2013-10-11 change fixes this regression.
*** lisp/progmodes/sh-script.el 2013-10-13 23:21:56 +0000
--- lisp/progmodes/sh-script.el 2013-10-16 22:35:56 +0000
***************
*** 2248,2253 ****
--- 2248,2254 ----
(sh-feature sh-indent-supported))
(progn
(message "Setting up indent for shell type %s" sh-shell)
+ (if sh-use-smie
(let ((mksym (lambda (name)
(intern (format "sh-smie-%s-%s"
sh-indent-supported-here name)))))
***************
*** 2255,2261 ****
(funcall mksym "rules")
:forward-token (funcall mksym "forward-token")
:backward-token (funcall mksym "backward-token")))
- (unless sh-use-smie
(setq-local parse-sexp-lookup-properties t)
(setq-local sh-kw-alist (sh-feature sh-kw))
(let ((regexp (sh-feature sh-kws-for-done)))
--- 2256,2261 ----