From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.bugs Subject: bug#15613: Wrong indentation in Shell-script[sh] mode? Date: Thu, 17 Oct 2013 18:46:07 +0200 Message-ID: <5260144F.5000107@alice.it> References: <525C59B0.7090804@alice.it> <2by55sr6vx.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1382028504 31795 80.91.229.3 (17 Oct 2013 16:48:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Oct 2013 16:48:24 +0000 (UTC) Cc: 15613@debbugs.gnu.org To: Stefan Monnier , Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 17 18:48:27 2013 Return-path: Envelope-to: geb-bug-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 1VWqkN-0005JH-3X for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Oct 2013 18:48:27 +0200 Original-Received: from localhost ([::1]:53414 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWqkM-0005hN-QB for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Oct 2013 12:48:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWqk9-0005fv-Sn for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2013 12:48:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWqjz-0004w2-5J for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2013 12:48:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWqjz-0004vs-2V for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2013 12:48:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VWqjy-0002Da-M1 for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2013 12:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Angelo Graziosi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Oct 2013 16:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15613 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-Cc: bug-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.13820284248451 (code B ref -1); Thu, 17 Oct 2013 16:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Oct 2013 16:47:04 +0000 Original-Received: from localhost ([127.0.0.1]:55721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VWqj1-0002CE-RX for submit@debbugs.gnu.org; Thu, 17 Oct 2013 12:47:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55645) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VWqiz-0002Bk-Fp for submit@debbugs.gnu.org; Thu, 17 Oct 2013 12:47:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWqik-0004jK-Gp for submit@debbugs.gnu.org; Thu, 17 Oct 2013 12:46:56 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWqik-0004jF-Dm for submit@debbugs.gnu.org; Thu, 17 Oct 2013 12:46:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWqid-00051G-0w for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2013 12:46:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWqiV-0004hL-Jd for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2013 12:46:38 -0400 Original-Received: from smtp204.alice.it ([82.57.200.100]:38628) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWqiN-0004fs-Mr; Thu, 17 Oct 2013 12:46:23 -0400 Original-Received: from [192.168.1.100] (79.11.41.85) by smtp204.alice.it (8.6.060.28) (authenticated as angelo.graziosi@alice.it) id 524A99080156C1C7; Thu, 17 Oct 2013 18:46:20 +0200 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79338 Archived-At: Il 17/10/2013 5.57, Stefan Monnier ha scritto: > I installed the patch below which should fix it, thank you, Confirmed! Thanks, Angelo. > > --- lisp/progmodes/sh-script.el 2013-10-13 23:21:56 +0000 > +++ lisp/progmodes/sh-script.el 2013-10-17 03:53:43 +0000 > @@ -3097,6 +3097,7 @@ > OPEN and CLOSE are regexps denoting the tokens to be matched. > Optional parameter DEPTH (usually 1) says how many to look for." > (let ((parse-sexp-ignore-comments t) > + (forward-sexp-function nil) > prev) > (setq depth (or depth 1)) > (save-excursion >