From unknown Sun Jun 22 17:15:39 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#17621 <17621@debbugs.gnu.org> To: bug#17621 <17621@debbugs.gnu.org> Subject: Status: sh-mode indentation of continued lines in case statements Reply-To: bug#17621 <17621@debbugs.gnu.org> Date: Mon, 23 Jun 2025 00:15:39 +0000 retitle 17621 sh-mode indentation of continued lines in case statements reassign 17621 emacs submitter 17621 Glenn Morris severity 17621 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Wed May 28 17:57:08 2014 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). From debbugs-submit-bounces@debbugs.gnu.org Wed May 28 22:33:59 2014 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 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: 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-Debbugs-Envelope-To: 17621 Cc: 17621@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 (/) > 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 debbugs-submit-bounces@debbugs.gnu.org Fri Jun 20 08:00:10 2014 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 From unknown Sun Jun 22 17:15:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 19 Jul 2014 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator