From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#7918: [PATCH] cc-mode: only the first clause of a for-loop should be checked for declarations Date: Thu, 25 Feb 2016 22:31:51 -0800 Message-ID: <56CFF157.50700@dancol.org> References: <87k2lsuh96.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hEiptgQkSSbOW4pDLtk0s5OxPu1jqNDli" X-Trace: ger.gmane.org 1456468342 15877 80.91.229.3 (26 Feb 2016 06:32:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Feb 2016 06:32:22 +0000 (UTC) Cc: 7918@debbugs.gnu.org To: Lars Ingebrigtsen , Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 26 07:32:10 2016 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 1aZBwg-0000cS-Cx for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Feb 2016 07:32:10 +0100 Original-Received: from localhost ([::1]:47641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZBwf-0002sR-Sr for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Feb 2016 01:32:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZBwb-0002sA-Cm for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 01:32:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZBwY-0006LH-4k for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 01:32:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49545) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZBwY-0006L9-1H; Fri, 26 Feb 2016 01:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aZBwX-0001mo-QV; Fri, 26 Feb 2016 01:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 26 Feb 2016 06:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7918 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch confirmed X-Debbugs-Original-Cc: bug-cc-mode@gnu.org, 7918@debbugs.gnu.org Original-Received: via spool by 7918-submit@debbugs.gnu.org id=B7918.14564683196757 (code B ref 7918); Fri, 26 Feb 2016 06:32:01 +0000 Original-Received: (at 7918) by debbugs.gnu.org; 26 Feb 2016 06:31:59 +0000 Original-Received: from localhost ([127.0.0.1]:46672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZBwU-0001kn-Qp for submit@debbugs.gnu.org; Fri, 26 Feb 2016 01:31:58 -0500 Original-Received: from dancol.org ([96.126.100.184]:45892) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZBwS-0001io-Ln for 7918@debbugs.gnu.org; Fri, 26 Feb 2016 01:31:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject; bh=O6jHkBbaudX6XjdtsyBKKNzLh279Oql4JRdz2k2/DWA=; b=lPvxa+E15Nflea73ZG2hRq+bf79h5PHJSN9bnN1RJxFHyz2glt/Mwy/KX8ArKBx9vWI4LsQXzxA8f1m8soLAtoTkisNSfvnfGI4Ib+qH7EV7KO19fD7rwWMD6RvW1Fl/6wKsgnsGnx8OBEBa6blJpnQ0Sev7R1amgJEquIcq1yXQOpu6ryuUuGpQgFY+Dv/W6r9u7oMd1U6Eh/13vAhUbAtNvhwNJt47ncACTPnwg2BX3IaDyr2FMs7jHmB9NW6tJNGZPpPPgrFC6yW52h0DQhuqXeu2HqndRetluQxCrUpW/OS3QkT9Ywdw8XFT+mmNu2HuTteWgETqJMcx5B4hew==; Original-Received: from c-67-161-115-4.hsd1.wa.comcast.net ([67.161.115.4] helo=[192.168.1.210]) by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1aZBwR-0005ab-V3; Thu, 25 Feb 2016 22:31:56 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: <87k2lsuh96.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:113845 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --hEiptgQkSSbOW4pDLtk0s5OxPu1jqNDli Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 02/25/2016 10:18 PM, Lars Ingebrigtsen wrote: > + ;; After a ";" in a for-block. A declaration can never= > + ;; begin after a `;' if the most enclosing paren is a > + ;; `('.-declarators' handles the rest. Hrm. That's not true in general. Consider Java's try-with-resources construct: try (Foo foo =3D new Foo(); Bar bar =3D new Bar()) { ... } --hEiptgQkSSbOW4pDLtk0s5OxPu1jqNDli Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJWz/FYAAoJEN4WImmbpWBl3/4QAJyEOzs3omJYWT2SuF2CTKwb I/ILvnyPP85nv9SQkDPwk2Z8yvXWUSD+XfbqsSaZWTRKzUSLREBsnnLea4xTaqBi Y9gPYlNDIgAj4cdmWTvUfvZDLwS2Mtr1hYDKGckSmTKUCK+gIVcVEgpnNTB05NA9 KrahVdtRz8pUsaBWJ8bc+G+Zmlq/v9bE4N1Fq4Wsy5C3Lw8aHobIXvSlmCMwL+sO GPAB/5PwTY2X5/wxH0ueYWTflm/cbpjXI73gFh1eNxJi+1XTqHDLWrrqfTNnOC9r 0n75zP1YHVJ4ZfxOvx01dHqL1+uQeFF7yI4YW4VVD0GCIQfGe1mxy2amZ8+q6psF IxBZE5etZ4U6yTW+XfQbLlyAFrAADN3H49lOJcScJKCSVUEDyFUtBMgq3DJip4nK h7zxjAOrcFfnZcUBOWSkmLSrmlADIbPTTHqyBon749TpMF9BUUGPAjeX1os3UcvE U23cmXIGuSYPhuFCg6N8yFNl7V3olvUA01BWz+mBSvpmJQLNdOENRBB0eve0SGt5 cuweokupDuI2TcnaZSvgJ4bVteNL2URkoVcdbmfUlI52b+ZNXXiMEKWiDFL3q3mx gu1RQjPRPeQITFNZ61+arNyL+jHwzJrTbJRH6C3G8i84ut/N4/f9VeLAVgfF1ICu H17Z1PZuxke5ocTDulCc =ZU6R -----END PGP SIGNATURE----- --hEiptgQkSSbOW4pDLtk0s5OxPu1jqNDli--