From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: [jbw@macs.hw.ac.uk: parentheses matching failure on valid sexp] Date: Wed, 12 Sep 2007 17:21:13 +0200 Message-ID: <46E803E9.4000300@gmx.at> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189610403 4732 80.91.229.12 (12 Sep 2007 15:20:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Sep 2007 15:20:03 +0000 (UTC) Cc: Joe Wells , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 12 17:20:01 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IVU0S-00076g-IV for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2007 17:19:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVU0S-0001J3-AL for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2007 11:19:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IVU0P-0001Iq-V3 for emacs-devel@gnu.org; Wed, 12 Sep 2007 11:19:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IVU0N-0001IZ-Um for emacs-devel@gnu.org; Wed, 12 Sep 2007 11:19:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVU0N-0001IW-QW for emacs-devel@gnu.org; Wed, 12 Sep 2007 11:19:51 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IVU0M-00061A-WE for emacs-devel@gnu.org; Wed, 12 Sep 2007 11:19:51 -0400 Original-Received: (qmail invoked by alias); 12 Sep 2007 15:19:49 -0000 Original-Received: from N792P027.adsl.highway.telekom.at (EHLO [62.47.42.251]) [62.47.42.251] by mail.gmx.net (mp046) with SMTP; 12 Sep 2007 17:19:49 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19x3/VBOBxxaz9054au/jMEadU8+lYS9PtdvKUcX5 emdYxwXZ/2rIeq User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:78682 Archived-At: > This bug is because there is a limit on how far back > blink-matching-open can search for a matching openparen. > > That limit is necessary, but it would be nicer to say some different > message when no openparen is found. Could someone please implement that, > and ack? Maybe something like the patch below should avoid printing a message in the first place. *** simple.el.~1.859.2.8.~ Sun Aug 26 22:26:46 2007 --- simple.el Wed Sep 12 17:17:34 2007 *************** *** 4505,4515 **** (eq (syntax-class syntax) 4) (cdr syntax))))) (cond ! ((not (or (eq matching-paren (char-before oldpos)) ! ;; The cdr might hold a new paren-class info rather than ! ;; a matching-char info, in which case the two CDRs ! ;; should match. ! (eq matching-paren (cdr (syntax-after (1- oldpos)))))) (message "Mismatched parentheses")) ((not blinkpos) (if (not blink-matching-paren-distance) --- 4505,4516 ---- (eq (syntax-class syntax) 4) (cdr syntax))))) (cond ! ((and blinkpos ! (not (or (eq matching-paren (char-before oldpos)) ! ;; The cdr might hold a new paren-class info rather than ! ;; a matching-char info, in which case the two CDRs ! ;; should match. ! (eq matching-paren (cdr (syntax-after (1- oldpos))))))) (message "Mismatched parentheses")) ((not blinkpos) (if (not blink-matching-paren-distance)