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:33:06 -0800 Message-ID: <56CFF1A2.4060506@dancol.org> References: <87k2lsuh96.fsf@gnus.org> <56CFF157.50700@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="LeRNQSnvaC3J5MB6nN3kwMnd3qAc1la3e" X-Trace: ger.gmane.org 1456468461 17850 80.91.229.3 (26 Feb 2016 06:34:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Feb 2016 06:34:21 +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:34:09 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 1aZBya-0001pU-TN for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Feb 2016 07:34:09 +0100 Original-Received: from localhost ([::1]:47648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZBya-00048s-9P for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Feb 2016 01:34:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZByX-00048m-Ic for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 01:34:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZByU-0006vJ-Aj for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 01:34:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49549) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZByU-0006vF-7K; Fri, 26 Feb 2016 01:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aZByU-0001sy-3N; Fri, 26 Feb 2016 01:34:02 -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:34:02 +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.14564683907184 (code B ref 7918); Fri, 26 Feb 2016 06:34:02 +0000 Original-Received: (at 7918) by debbugs.gnu.org; 26 Feb 2016 06:33:10 +0000 Original-Received: from localhost ([127.0.0.1]:46676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZBxe-0001ro-3j for submit@debbugs.gnu.org; Fri, 26 Feb 2016 01:33:10 -0500 Original-Received: from dancol.org ([96.126.100.184]:45902) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZBxc-0001rh-VO for 7918@debbugs.gnu.org; Fri, 26 Feb 2016 01:33:09 -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=HMJ8TyemfA5QRoUxbHKlEtAn5lxPFtq2wCxNFrogVpQ=; b=W7Om2vsk+MgqQDhv471O365FYH7Y58F64IymwLTOOPB5YnT9h+SLp/knCIVPetvxsEs6unO+4uI9d746NEHo5BACZjuIe3+aCFzRzpQ/87bqy2fTQoNKksM660toit8Qdyv80kq0nSivy8y5OzdBakBSMNKZd70W3CNbeeaTcE608OR3P7E/z4kU602NYlVoX0AR2tyxBUHSbiXKiXZtrufCO9l6m+8tkD2DTQYcyXVGe6BsR5I3Z7PDhvn/fpCADiALE+guAYFX7YVYaJUqOcD9ameBvr8gew92M/09gKHBhlrEeeNWMrj1VQSTwVRGgi3PlcFfbJ662Bu59hQFCw==; 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 1aZBxc-0005b7-I2; Thu, 25 Feb 2016 22:33:08 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: <56CFF157.50700@dancol.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:113846 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --LeRNQSnvaC3J5MB6nN3kwMnd3qAc1la3e Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 02/25/2016 10:31 PM, Daniel Colascione wrote: > On 02/25/2016 10:18 PM, Lars Ingebrigtsen wrote: >> + ;; After a ";" in a for-block. A declaration can neve= r >> + ;; begin after a `;' if the most enclosing paren is a= >> + ;; `('.-declarators' handles the rest. >=20 > Hrm. That's not true in general. Consider Java's try-with-resources > construct: >=20 > try (Foo foo =3D new Foo(); Bar bar =3D new Bar()) { ... } >=20 Gah, of course that's true in a `for' block specifically. --LeRNQSnvaC3J5MB6nN3kwMnd3qAc1la3e 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/GiAAoJEN4WImmbpWBlcf0P/0PIxlPZv5obeGR04r50vzLh v1fVv9GRtCfCXx63zkadqDKoH1DW4818TVbYU8+f3mtpIm45szts70Bxwgd//9vZ zZG3IOwAKUfGWHFUJ/Q6lomk/Htnp3jP8rEHOICgRYTATbdsQ0HSOXf1iicDxhj7 K26EHgLNuuFQn0/1UyG/K2HJ2xmp5MPUrboiG1uD+KqlYcKObWexoz0PYa5N0+Yc SpSX7KWLJHYwXWu7QTleyFc1HD1GQuULJzLlRiKVeemNvQYaex1a8mF2mpLYe5oa Z4TwOUt1PXV3BlOlZnKmy1jy88UtpgXQRrOcwWIQTbAZPWqjkAwr4LT+flTXfMtV hLCLI487iU+m4gF/OjMa2MzYzBd0g6mZB+I8mYpJZOvXyQKf+MWfsmIrLV5/9ebV JDpTVvvznooMzb46xw7/e1WIN5C5iXOX3MZEnEdf/JlDkCiQS4WG649eZ87xoAQy tilkA3ZGYhzgJ9t4r9rnVn1pvsH6p2vQL48b+Ho+HvPIbL4r3cNfE1YvbNppyP8W ZxVRUqibgOg9R5hex+Mmbd174+bn1eq4IHIWVqTF/kn+cfFLgJ1cq7gxWWekV3nf /aznnOY0QzI9NCqPG0AO6KKlqzRkLDEXX9pf9gbGDQrJPIgAokx1S9RRCoVO2QcJ zT05lXkzTF2aWmx3FKtu =Eqgl -----END PGP SIGNATURE----- --LeRNQSnvaC3J5MB6nN3kwMnd3qAc1la3e--