From unknown Wed Jun 25 03:52:26 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#8943 <8943@debbugs.gnu.org> To: bug#8943 <8943@debbugs.gnu.org> Subject: Status: octave mode: "mismatched parentheses" warning on multiline comments Reply-To: bug#8943 <8943@debbugs.gnu.org> Date: Wed, 25 Jun 2025 10:52:26 +0000 retitle 8943 octave mode: "mismatched parentheses" warning on multiline com= ments=20 reassign 8943 emacs submitter 8943 fork severity 8943 minor tag 8943 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 27 13:11:04 2011 Received: (at submit) by debbugs.gnu.org; 27 Jun 2011 17:11:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QbFKy-0001kl-8W for submit@debbugs.gnu.org; Mon, 27 Jun 2011 13:11:04 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QbFKE-0001jK-8A for submit@debbugs.gnu.org; Mon, 27 Jun 2011 13:10:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbFK6-0007Mm-Qg for submit@debbugs.gnu.org; Mon, 27 Jun 2011 13:10:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_NUMERIC_HELO, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:48926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbFK6-0007Mb-G3 for submit@debbugs.gnu.org; Mon, 27 Jun 2011 13:10:10 -0400 Received: from eggs.gnu.org ([140.186.70.92]:41689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbFK4-0008LV-PM for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2011 13:10:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbFK2-0007Jz-E5 for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2011 13:10:08 -0400 Received: from lo.gmane.org ([80.91.229.12]:57429) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbFK1-0007Ib-TR for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2011 13:10:06 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QbFK0-0003wu-3s for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2011 19:10:04 +0200 Received: from 198.239.99.92 ([198.239.99.92]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jun 2011 19:10:04 +0200 Received: from forkandwait by 198.239.99.92 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jun 2011 19:10:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: fork Subject: octave mode: "mismatched parentheses" warning on multiline comments Date: Mon, 27 Jun 2011 17:05:10 +0000 (UTC) Lines: 13 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 198.239.99.92 (Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 27 Jun 2011 13:11:02 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) When using multiline comments in octave mode, there is a "mismatched parentheses" warning issued to the mini-buffer when closing the comment. For example, the warning appears on the final "}" in the following code: %{ blah blah blah %} There doesn't seem to be any problems with indentation. Also, I see the same result for both "#{" and "%{" Thanks for all your excellent work! From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 04 16:20:38 2011 Received: (at 8943) by debbugs.gnu.org; 4 Jul 2011 20:20:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdpdF-0006hA-So for submit@debbugs.gnu.org; Mon, 04 Jul 2011 16:20:38 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdpdD-0006gs-C6; Mon, 04 Jul 2011 16:20:36 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG4fEk5FxIxr/2dsb2JhbABTp3t4iHrBL4Y2BJ5chCw X-IronPort-AV: E=Sophos;i="4.65,475,1304308800"; d="scan'208";a="120415922" Received: from 69-196-140-107.dsl.teksavvy.com (HELO pastel.home) ([69.196.140.107]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 04 Jul 2011 16:20:26 -0400 Received: by pastel.home (Postfix, from userid 20848) id 9602558DBA; Mon, 4 Jul 2011 16:20:23 -0400 (EDT) From: Stefan Monnier To: fork Subject: Re: bug#8943: octave mode: "mismatched parentheses" warning on multiline comments Message-ID: References: Date: Mon, 04 Jul 2011 16:20:23 -0400 In-Reply-To: (fork's message of "Mon, 27 Jun 2011 17:05:10 +0000 (UTC)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 8943 Cc: 8943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) tags 8943 wontfix thanks > When using multiline comments in octave mode, there is a "mismatched > parentheses" warning issued to the mini-buffer when closing the comment. > For example, the warning appears on the final "}" in the following code: > %{ > blah blah blah > %} > There doesn't seem to be any problems with indentation. Also, I see the same > result for both "#{" and "%{" Indeed, that's a bug. A related bug that can be seen in all programming modes is that if you type something like // some comment (and some // side note). the final ) will not be matched to the opening (. It will either raise a "mismatched parenthesis" warning or will be matched to some unrelated open parenthesis. Your case is slightly different since the paren is actually part of the comment-marker rather than being inside the comment, but the problem has basically the same origin. I don't expect we'll fix this problem any time soon, tho. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 15 10:32:52 2011 Received: (at control) by debbugs.gnu.org; 15 Jul 2011 14:32:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhjRk-000246-ER for submit@debbugs.gnu.org; Fri, 15 Jul 2011 10:32:52 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhjRj-00023u-38 for control@debbugs.gnu.org; Fri, 15 Jul 2011 10:32:51 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QhjRY-0003ZR-0n for control@debbugs.gnu.org; Fri, 15 Jul 2011 16:32:40 +0200 Date: Fri, 15 Jul 2011 16:32:39 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #8943 X-MailScanner-ID: 1QhjRY-0003ZR-0n X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1311345160.39953@JojgFbUTGSBuC7BdDCoUmQ X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) close 8943 From unknown Wed Jun 25 03:52:26 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, 13 Aug 2011 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