From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Reiner Steib <Reiner.Steib@gmx.de>
Cc: 17818@debbugs.gnu.org
Subject: bug#17818: 24.3.91; sh-learn-buffer-indent doesn't learn current indent anymore
Date: Fri, 20 Jun 2014 11:48:17 -0400 [thread overview]
Message-ID: <jwvlhsrpp8c.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <87ha3fy6lv.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Fri, 20 Jun 2014 16:54:04 +0200")
> in Emacs 24.3.91, `sh-learn-buffer-indent' doesn't seem to learn the
> current indent rules of the buffer anymore. It worked correctly in
> 23.3 and better in 24.1, see below.
24.4 uses SMIE, so the indentation rules are quite different and they
don't obey all the sh-indent-* variables. Also the "learning" code uses
SMIE's generic learning code which is brand new and hasn't seen much
testing yet.
So, there might be bugs at several levels:
1- setting sh-use-smie to nil should revert to the 24.3 behavior.
This is just a stop-gap setting that will disappear in some future
release (depending on how many bug reports we get about the SMIE
code ;-).
2- If you set the sh-indent-* vars learned by the non-SMIE code, the
SMIE code should indent as desired.
3- the generic SMIE learning code should behave about as well as the old
sh-learn-buffer-indent (i.e. "poorly" in my opinion ;-).
Stefan
next prev parent reply other threads:[~2014-06-20 15:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-20 14:54 bug#17818: 24.3.91; sh-learn-buffer-indent doesn't learn current indent anymore Reiner Steib
2014-06-20 15:48 ` Stefan Monnier [this message]
2014-06-20 21:10 ` Stefan Monnier
2014-06-23 16:04 ` Reiner Steib
2014-06-24 13:49 ` Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvlhsrpp8c.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=17818@debbugs.gnu.org \
--cc=Reiner.Steib@gmx.de \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).