From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: Undesirable sh-mode indent Date: Sat, 24 Oct 2015 08:50:06 +0300 Message-ID: <87oafo6cj5.fsf@mithlond.arda> References: <20151023152057587807192@bob.proulx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1445665854 29581 80.91.229.3 (24 Oct 2015 05:50:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Oct 2015 05:50:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 24 07:50:46 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zprj2-0003s8-IB for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Oct 2015 07:50:44 +0200 Original-Received: from localhost ([::1]:42777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zprj1-0002Rm-Ij for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Oct 2015 01:50:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zprig-0002Rg-Jm for help-gnu-emacs@gnu.org; Sat, 24 Oct 2015 01:50:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zprid-00071Q-Dd for help-gnu-emacs@gnu.org; Sat, 24 Oct 2015 01:50:22 -0400 Original-Received: from mta-out1.inet.fi ([62.71.2.233]:54522 helo=johanna4.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zprid-0006zR-32 for help-gnu-emacs@gnu.org; Sat, 24 Oct 2015 01:50:19 -0400 RazorGate-KAS: Status: not_detected RazorGate-KAS: Rate: 0 RazorGate-KAS: Envelope from: RazorGate-KAS: Version: 5.5.3 RazorGate-KAS: LuaCore: 215 2015-05-29_17-31-22 60ae4a1b4d01d14f868b20a55aced8d7df7b2e28 RazorGate-KAS: Lua profiles 78662 [Jun 02 2015] RazorGate-KAS: Method: none Original-Received: from mithlond.arda (84.251.143.106) by johanna4.inet.fi (9.0.002.03-2-gbe5d057) id 56274C170056D9C0 for help-gnu-emacs@gnu.org; Sat, 24 Oct 2015 08:50:11 +0300 Original-Received: from dtw by mithlond.arda with local (Exim 4.84) (envelope-from ) id 1ZpriU-0000lb-J8 for help-gnu-emacs@gnu.org; Sat, 24 Oct 2015 08:50:10 +0300 In-Reply-To: <20151023152057587807192@bob.proulx.com> (Bob Proulx's message of "Fri, 23 Oct 2015 15:38:51 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 62.71.2.233 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107805 Archived-At: --=-=-= Content-Type: text/plain Bob Proulx [2015-10-23 15:38:51-06] wrote: > In 24.5.1 from Debian Sid I am now getting undesirable indention that > is no longer controlled by sh-basic-offset. In 23 this worked. > > emacs -Q /tmp/trial.sh > > M-: (setq sh-basic-offset 2) > > if true; then > true > ^ indent should be 2 not 4 here There is also variable sh-indentation which I have set to the same value as sh-basic-offset. > Does anyone know how to keep syntax highlighting but to disable > indentation? Then at least I could at least stop it from doing the > wrong thing without dropping all of the way to fundamental-mode. Some new SMIE thing is, in my opinion, doing too clever and wrong things so I disable it: (setq sh-use-smie nil). --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJWKxwOAAoJEHGdadMkU5RQSrsP/2wzbiDXqdwF6TIPfqsvONPh rwlyG/4El+scFPNd1AF8vOjvguuD3+fCM1d2VwVLNhOFWLm46/o0AQugT/rObX1y 5C3Eb9brTTOiiI/28RplhON185/1ZHNNY1TEQYxT34X0K5rlPzT1OletRQ8meqwn EIhNhJ+HBHi4ukw1FMuzcRTLPh3W8dtgPI9Q/v8qKJ6IAfAci5UzESxZgDNrxBv+ +N38T9DsycUcglOsYTRzC2PmZ0LISyM8yR98DGHNjvfFE8ZTBcy3hBqsjU3XeEYw G3zvQAEnq4uBt3aP80JoUlolf8SAdjaQi+Hqmn5juQHP2MPS58pNJxdSQwBOujMk xzGmPxXzMEPqKWZQeycyJ41K0mUwbF9cNGTRD0jISPEkpRqS0xdMHG0yU5LPW01U 993ddPfjupQlUrUPGrKEo5Gzd7MLYuU45h6me3i5wDPR8r4hxw024MnM8AIBDbzZ damLacjjNCsR2vevHAmTBp+gV5/C4yyNkglfC8SeU6PYrymxdXvEMXY810gUUrZd CGwbexKOLcnX7pQoKaopOcLrf4P72HNcXVZYwBa+0PAE+sLQ5qa27z58Me3oicgg 2e7kHvsO3PaUhFmM5gzzn7jt9oJP4j0FJPnHODboKLbsTJD24F8bs9ZQfnvsASh5 17F0UkUcL9N+4yXGUmYm =/M9v -----END PGP SIGNATURE----- --=-=-=--