From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andrew Hyatt Newsgroups: gmane.emacs.bugs Subject: bug#5410: Parenthesis Matching Bug!! Date: Wed, 03 Aug 2016 22:18:50 -0400 Message-ID: References: <1263817237.2894.15.camel@matrix-laptop> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1470277170 29047 195.159.176.226 (4 Aug 2016 02:19:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 4 Aug 2016 02:19:30 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) Cc: 5410@debbugs.gnu.org To: Matrix Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 04 04:19:23 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bV8Fh-000679-HZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Aug 2016 04:19:17 +0200 Original-Received: from localhost ([::1]:37439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bV8Fe-0006gq-7k for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Aug 2016 22:19:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bV8FX-0006gN-G5 for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2016 22:19:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bV8FS-0000RB-Ao for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2016 22:19:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bV8FS-0000R6-6M for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2016 22:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bV8FR-0002hp-V2 for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2016 22:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Hyatt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Aug 2016 02:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5410 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5410-submit@debbugs.gnu.org id=B5410.147027713810392 (code B ref 5410); Thu, 04 Aug 2016 02:19:01 +0000 Original-Received: (at 5410) by debbugs.gnu.org; 4 Aug 2016 02:18:58 +0000 Original-Received: from localhost ([127.0.0.1]:55073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bV8FO-0002hY-EN for submit@debbugs.gnu.org; Wed, 03 Aug 2016 22:18:58 -0400 Original-Received: from mail-qk0-f181.google.com ([209.85.220.181]:34778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bV8FN-0002hM-7S for 5410@debbugs.gnu.org; Wed, 03 Aug 2016 22:18:57 -0400 Original-Received: by mail-qk0-f181.google.com with SMTP id p186so94564840qkd.1 for <5410@debbugs.gnu.org>; Wed, 03 Aug 2016 19:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=bN0uuLLZlL+vMOg8CTOGxLxVcyI+UotNe4rOaiULoWc=; b=oKZGQqQ3NCZSyMzMbQJTNHg3BwankZry0emUFDDP/SWLczUxboW5qZf9jCMkRRVI6L aYDKptG1TuDfFvR99mKhLKWkhWT5cx6A9XV64PrUcIvG26M/8Zma4XcA6Lc2HSAVMWIR PVMDsmyzKhmO14xjEKIrcROCUzR/NX4g+0+4FjquUylbE+tVE5oDFCDjneF2Ij6Awyks 56cyo44AV4TdnqeY9tjrfTs13hKFP/tWNG6X3Ebak1vtXGx7ghL3dlXj+9g6XwrS1exM W6mu13ct0qQr6Uvqp4XRP41sx77runFKMJD6w0CZ1e7UZIeIukJ4WENdgZ6srMXmKlE5 cE6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=bN0uuLLZlL+vMOg8CTOGxLxVcyI+UotNe4rOaiULoWc=; b=kzf3f6MXhmZQHaeSyObhH4lh6LqKWt3u0jhY9LknN9+wjzU1lU2KVHShEfLDXxhizo Pe5oAb0msVZkMr/7eJ6cOCwoWzucBOcPDCgPH8G2TYZGLAu7UwvKFhIHaIxHJGcJuhFn /BbqpYlKLqVtfNRW/dqDaFrNGSWiv8WVn4J/85UBcnbkNnp1hEsIjmf3/UXDpRPLJMLf uSupNcToLGpvxw7QSU4xNx1DlqbrZuTaHjIrvuXs4La0PgUYuML5vTV11qSBNmbr3zt3 Cpuous4oXl9dyKZf6lZHOx/BXpn1Sgc5vp83uHoxtkmKF2w0RuW7b4QfG1znuRzzw9iC nwXw== X-Gm-Message-State: AEkoouvBNRDG4gIeYjy0EUOKmoOl+q3KTBILzrHa9mz1tNfs43P5tQb2PVSIRqeA4w4ccA== X-Received: by 10.55.24.234 with SMTP id 103mr3641172qky.201.1470277131684; Wed, 03 Aug 2016 19:18:51 -0700 (PDT) Original-Received: from Andrews-MacBook-Pro.local.ahyatt-laptop (cpe-74-73-128-199.nyc.res.rr.com. [74.73.128.199]) by smtp.gmail.com with ESMTPSA id b142sm5706637qkc.43.2016.08.03.19.18.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Aug 2016 19:18:50 -0700 (PDT) In-Reply-To: <1263817237.2894.15.camel@matrix-laptop> (Matrix's message of "Mon, 18 Jan 2010 20:20:37 +0800") 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" Xref: news.gmane.org gmane.emacs.bugs:121811 Archived-At: Matrix writes: > Hello , developer! I am a student of china . I like emacs very much . > I use it to read txt-format book(because the color-theme of my emacs is > very good for eye!^^) . I also use emacs to coding!good~!! > But now I find a bug in emacs :( . May be it`s not a bug , I want to > believe this.Now The-Bug as follow: > > // Print a message and dump core (equivalent to ASSERT(FALSE) > without > // making the compiler whine). > > The Parenthesis-Matching-highlight is work with the second '(' . > yeah , When my cursor at the second '(' the first ')' highlight . But > when my cursor at first '(' , the second ')' doesn`t highlight and show > unmatch Parenthesis....I think this is wrong , It match as: ( ( ) ). > > ^^ , I like emacs , I want it to be more good tool for me and other > programer!! > Thanks developers!!! Hi, sorry for the late reply. Your example reproduces for me in Emacs 25. My guess is that emacs doesn't really assume that comment lines should be treated as a contiguous text block. Which is sometimes right, sometimes not, in my experience. For example, you could have comments that are something like: // This function does three things: // 1) Reverse the string // 2) Uuencode the string // 3) Rot-13 the string Which certainly wouldn't make a lot of sense treated contiguously. Does anyone have any opinions whether this is a bug or a wishlish item?