all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 15613@debbugs.gnu.org, Angelo Graziosi <angelo.graziosi@alice.it>
Subject: bug#15613: Wrong indentation in Shell-script[sh] mode?
Date: Wed, 16 Oct 2013 18:41:27 -0400	[thread overview]
Message-ID: <yaa9i8alew.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <jwvr4bmmwl2.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Tue, 15 Oct 2013 10:37:44 -0400")


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 ----






  parent reply	other threads:[~2013-10-16 22:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-14 20:53 bug#15613: Wrong indentation in Shell-script[sh] mode? Angelo Graziosi
2013-10-15 14:37 ` Stefan Monnier
2013-10-15 14:56   ` Glenn Morris
2013-10-15 22:26     ` Angelo Graziosi
2013-10-15 22:23   ` Angelo Graziosi
2013-10-16 22:41   ` Glenn Morris [this message]
2013-10-17  1:03     ` Stefan Monnier
2013-10-17  2:03       ` Glenn Morris
2013-10-17  3:57         ` Stefan Monnier
2013-10-17 16:46           ` Angelo Graziosi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yaa9i8alew.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=15613@debbugs.gnu.org \
    --cc=angelo.graziosi@alice.it \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.