From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#46093: Shell-script mode formatting error eats half the page Date: Thu, 28 Jan 2021 01:36:40 +0800 Message-ID: <87o8ha7047.5.fsf@jidanni.org> References: <87czxtfx2r.8.fsf@jidanni.org> <87a6svf7vw.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29499"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46093@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 27 18:37:16 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4okk-0007Vi-7U for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jan 2021 18:37:14 +0100 Original-Received: from localhost ([::1]:46646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4okj-00057e-7y for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jan 2021 12:37:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4okY-00052D-Dq for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2021 12:37:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l4okY-0000Lu-6H for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2021 12:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l4okY-0004Vj-2y for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2021 12:37:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87czxtfx2r.8.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jan 2021 17:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46093 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 46093-submit@debbugs.gnu.org id=B46093.161176901317324 (code B ref 46093); Wed, 27 Jan 2021 17:37:02 +0000 Original-Received: (at 46093) by debbugs.gnu.org; 27 Jan 2021 17:36:53 +0000 Original-Received: from localhost ([127.0.0.1]:46040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4okO-0004VM-PE for submit@debbugs.gnu.org; Wed, 27 Jan 2021 12:36:53 -0500 Original-Received: from cyan.ash.relay.mailchannels.net ([23.83.222.47]:36825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4okM-0004VA-19 for 46093@debbugs.gnu.org; Wed, 27 Jan 2021 12:36:51 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 13808483DB6; Wed, 27 Jan 2021 17:36:46 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a12.g.dreamhost.com (100-96-16-7.trex.outbound.svc.cluster.local [100.96.16.7]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A059E483BD5; Wed, 27 Jan 2021 17:36:45 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a12.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.16.7 (trex/6.0.2); Wed, 27 Jan 2021 17:36:45 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Tangy-Drop: 060d85f362da893d_1611769005883_2364804891 X-MC-Loop-Signature: 1611769005883:1331510247 X-MC-Ingress-Time: 1611769005883 Original-Received: from pdx1-sub0-mail-a12.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a12.g.dreamhost.com (Postfix) with ESMTP id 632647F81B; Wed, 27 Jan 2021 09:36:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=uGr4wPahrZtqe/r+sL kel19qJGg=; b=PHVr7nieRnEjfyysu0psXOqoYyZU3C18lK5FaBiR07eg4Nj1pW hrFHR1cPPZPQ7+ZbJGmxqyK0URCLptvePDU1xB+WS4A7KIz1zff+O4eh5R7ReJLJ Jh6XiINIwNZx3vSnGaLgrzDZxZw0nUH97rv4QEV8YQt6OyNtGto7u2sZE= Original-Received: from jidanni.org (114-41-0-252.dynamic-ip.hinet.net [114.41.0.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a12.g.dreamhost.com (Postfix) with ESMTPSA id EEFE484DA7; Wed, 27 Jan 2021 09:36:44 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a12 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198705 Archived-At: >>>>> "LI" =3D=3D Lars Ingebrigtsen writes: LI> (I moved the semicolon to before the "do", not after. Which is LI> apparently the correct syntax according to My example had no semicolon, not before, not after. LI> for name [ [in [words =E2=80=A6] ] ; ] do commands; done ^^^ see, that semicolon is optional. That's what the extra brackets mean. LI> So Emacs seems to do the correct thing here; closing. Well, yes, if everybody always used the optional semicolon, you might say= .