From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#8943: octave mode: "mismatched parentheses" warning on multiline comments Date: Mon, 04 Jul 2011 16:20:23 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309810917 9223 80.91.229.12 (4 Jul 2011 20:21:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2011 20:21:57 +0000 (UTC) Cc: 8943@debbugs.gnu.org To: fork Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 04 22:21:52 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QdpeS-0005pd-7a for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2011 22:21:52 +0200 Original-Received: from localhost ([::1]:44160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdpeR-0002kW-6l for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2011 16:21:51 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qdpdg-0002dk-7Z for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 16:21:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qdpde-0005aa-Vj for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 16:21:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qdpde-0005aT-KE for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 16:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qdpdd-0006i0-OA; Mon, 04 Jul 2011 16:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jul 2011 20:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8943 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8943-submit@debbugs.gnu.org id=B8943.130981083925744 (code B ref 8943); Mon, 04 Jul 2011 20:21:01 +0000 Original-Received: (at 8943) by debbugs.gnu.org; 4 Jul 2011 20:20:39 +0000 Original-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 Original-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" Original-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 Original-Received: by pastel.home (Postfix, from userid 20848) id 9602558DBA; Mon, 4 Jul 2011 16:20:23 -0400 (EDT) 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) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 04 Jul 2011 16:21:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.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:47989 Archived-At: 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