From unknown Sun Jun 22 17:17:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17621: sh-mode indentation of continued lines in case statements Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 May 2014 21:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17621 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17621@debbugs.gnu.org X-Debbugs-Original-To: submit@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.140131422830759 (code B ref -1); Wed, 28 May 2014 21:58:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 May 2014 21:57:08 +0000 Received: from localhost ([127.0.0.1]:34884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WplqO-000802-7N for submit@debbugs.gnu.org; Wed, 28 May 2014 17:57:08 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:46818 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WplqL-0007zu-Dp for submit@debbugs.gnu.org; Wed, 28 May 2014 17:57:06 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WplqK-0005mc-NJ; Wed, 28 May 2014 17:57:04 -0400 From: Glenn Morris X-Spook: government nuclear satellite imagery 64 Vauxhall Cross X-Ran: ,;WQ}0:QH.5w)yPb?jj0c0T]l3%)?A$L"9SVi6G:^7YoBh5gL#J7?R@z:aQkc9i/#6jayo X-Hue: black X-Attribution: GM Date: Wed, 28 May 2014 17:57:04 -0400 Message-ID: <48oayhva6n.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.7 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) Package: emacs Version: 24.3.91 Severity: minor emacs -Q --eval '(setq-default indent-tabs-mode nil)' foo.sh, where foo.sh is as follows: case $foo in bar) true && \ echo foo ;; esac The above is the 24.3 indentation. In 24.3.91, it indents like: case $foo in bar) true && \ echo foo ;; esac 1. Body of case branch not indented as far (this may an improvement). 2. Continued line not indented (this is a bug). From unknown Sun Jun 22 17:17:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17621: sh-mode indentation of continued lines in case statements Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 May 2014 02:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17621 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris Cc: 17621@debbugs.gnu.org Received: via spool by 17621-submit@debbugs.gnu.org id=B17621.140133083932405 (code B ref 17621); Thu, 29 May 2014 02:34:01 +0000 Received: (at 17621) by debbugs.gnu.org; 29 May 2014 02:33:59 +0000 Received: from localhost ([127.0.0.1]:35004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WpqAI-0008QY-Er for submit@debbugs.gnu.org; Wed, 28 May 2014 22:33:59 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:26670) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WpqAG-0008QE-75 for 17621@debbugs.gnu.org; Wed, 28 May 2014 22:33:56 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNLd/fU/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCwsOJhIUGA0kiAQI0hkXjnoHhDgEqRmBaoNMIQ X-IPAS-Result: ArUGAIDvNVNLd/fU/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCwsOJhIUGA0kiAQI0hkXjnoHhDgEqRmBaoNMIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="64920642" Received: from 75-119-247-212.dsl.teksavvy.com (HELO pastel.home) ([75.119.247.212]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 28 May 2014 22:33:50 -0400 Received: by pastel.home (Postfix, from userid 20848) id 5F295601CB; Wed, 28 May 2014 22:33:50 -0400 (EDT) From: Stefan Monnier Message-ID: References: <48oayhva6n.fsf@fencepost.gnu.org> Date: Wed, 28 May 2014 22:33:50 -0400 In-Reply-To: <48oayhva6n.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 28 May 2014 17:57:04 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > In 24.3.91, it indents like: > case $foo in > bar) > true && \ > echo foo > ;; > esac > 1. Body of case branch not indented as far (this may an improvement). Indeed, the old indentation you show seems like a bug, tho I can't remember bumping into it. > 2. Continued line not indented (this is a bug). I agree that this is a surprising behavior (I'm friends with the indentation code and I understand where he comes from, so by respect for him I avoid the "b" word). The same holds without the "\", by the way. Stefan From unknown Sun Jun 22 17:17:57 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Glenn Morris Subject: bug#17621: closed (Re: bug#17621: sh-mode indentation of continued lines in case statements) Message-ID: References: <48oayhva6n.fsf@fencepost.gnu.org> X-Gnu-PR-Message: they-closed 17621 X-Gnu-PR-Package: emacs Reply-To: 17621@debbugs.gnu.org Date: Fri, 20 Jun 2014 12:01:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1403265662-17560-1" This is a multi-part message in MIME format... ------------=_1403265662-17560-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #17621: sh-mode indentation of continued lines in case statements which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 17621@debbugs.gnu.org. --=20 17621: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17621 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1403265662-17560-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 17621-done) by debbugs.gnu.org; 20 Jun 2014 12:00:11 +0000 Received: from localhost ([127.0.0.1]:53843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WxxUG-0004Ws-BT for submit@debbugs.gnu.org; Fri, 20 Jun 2014 08:00:10 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:4059) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WxxU9-0004Ve-Oe for 17621-done@debbugs.gnu.org; Fri, 20 Jun 2014 08:00:03 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCwsOJhIUGA0kiAQI0hkXjnoHhDgEqRmBaoNMIQ X-IPAS-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCwsOJhIUGA0kiAQI0hkXjnoHhDgEqRmBaoNMIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="68698231" Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 20 Jun 2014 07:59:55 -0400 Received: by pastel.home (Postfix, from userid 20848) id 621C561DB8; Fri, 20 Jun 2014 07:59:53 -0400 (EDT) From: Stefan Monnier To: Glenn Morris Subject: Re: bug#17621: sh-mode indentation of continued lines in case statements Message-ID: References: <48oayhva6n.fsf@fencepost.gnu.org> Date: Fri, 20 Jun 2014 07:59:53 -0400 In-Reply-To: <48oayhva6n.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 28 May 2014 17:57:04 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17621-done Cc: 17621-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > case $foo in > bar) > true && \ > echo foo > ;; > esac This should be fixed now (and also when the backslash is absent). Stefan ------------=_1403265662-17560-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 May 2014 21:57:08 +0000 Received: from localhost ([127.0.0.1]:34884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WplqO-000802-7N for submit@debbugs.gnu.org; Wed, 28 May 2014 17:57:08 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:46818 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WplqL-0007zu-Dp for submit@debbugs.gnu.org; Wed, 28 May 2014 17:57:06 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WplqK-0005mc-NJ; Wed, 28 May 2014 17:57:04 -0400 From: Glenn Morris To: submit@debbugs.gnu.org Subject: sh-mode indentation of continued lines in case statements X-Spook: government nuclear satellite imagery 64 Vauxhall Cross X-Ran: ,;WQ}0:QH.5w)yPb?jj0c0T]l3%)?A$L"9SVi6G:^7YoBh5gL#J7?R@z:aQkc9i/#6jayo X-Hue: black X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 28 May 2014 17:57:04 -0400 Message-ID: <48oayhva6n.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) Package: emacs Version: 24.3.91 Severity: minor emacs -Q --eval '(setq-default indent-tabs-mode nil)' foo.sh, where foo.sh is as follows: case $foo in bar) true && \ echo foo ;; esac The above is the 24.3 indentation. In 24.3.91, it indents like: case $foo in bar) true && \ echo foo ;; esac 1. Body of case branch not indented as far (this may an improvement). 2. Continued line not indented (this is a bug). ------------=_1403265662-17560-1--