From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Undesirable sh-mode indent Date: Fri, 23 Oct 2015 15:38:51 -0600 Message-ID: <20151023152057587807192@bob.proulx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1445636362 6599 80.91.229.3 (23 Oct 2015 21:39:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 21:39:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 23 23:39:14 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 1Zpk3K-00065S-ML for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 23:39:10 +0200 Original-Received: from localhost ([::1]:41749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpk3K-0008Tm-2Z for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 17:39:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpk38-0008TY-KZ for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 17:38:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpk33-0002xE-Kh for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 17:38:58 -0400 Original-Received: from joseki.proulx.com ([216.17.153.58]:51164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpk33-0002x8-Dn for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 17:38:53 -0400 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 17C8121978 for ; Fri, 23 Oct 2015 15:38:52 -0600 (MDT) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id E229C2DC52; Fri, 23 Oct 2015 15:38:51 -0600 (MDT) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 216.17.153.58 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:107801 Archived-At: 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 C-c ? Rules used: :elem basic -> 4, :before "then" -> 0, :after "then" -> nil Anyone know what is happening here? I have reviewed the NEWS but I didn't find any intentionally noted changes here. 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. Thanks, Bob