From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67691 Path: news.gmane.org!not-for-mail From: TSUCHIYA Masatoshi Newsgroups: gmane.emacs.gnus.general Subject: Make ietf-drums-remove-comments() robust against broken header Date: Thu, 30 Oct 2008 16:11:36 +0900 Message-ID: <87wsfqsgk7.fsf@tsuchiya.vaj.namazu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225350836 19856 80.91.229.12 (30 Oct 2008 07:13:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Oct 2008 07:13:56 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16142@lists.math.uh.edu Thu Oct 30 08:14:58 2008 connect(): Connection refused Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1KvRk1-0008NX-GB for ding-account@gmane.org; Thu, 30 Oct 2008 08:14:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1KvRh2-0002Yh-U4; Thu, 30 Oct 2008 02:11:44 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KvRh1-0002YP-PE for ding@lists.math.uh.edu; Thu, 30 Oct 2008 02:11:43 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1KvRgz-0003Mw-7z for ding@lists.math.uh.edu; Thu, 30 Oct 2008 02:11:43 -0500 Original-Received: from vaj.namazu.org ([202.221.179.42]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1KvRh6-0006Sl-00 for ; Thu, 30 Oct 2008 08:11:48 +0100 Original-Received: from vaj.namazu.org (vaj.namazu.org [202.221.179.42]) by vaj.namazu.org (Postfix) with ESMTP id B7F881BB54 for ; Thu, 30 Oct 2008 16:11:37 +0900 (JST) X-Cite-Me: =?iso-2022-jp?B?GyRCRVobKEI=?= Mail-Followup-To: ding@gnus.org User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67691 Archived-At: Hi, I have just met a message including a broken references header, like: References: <200810150047.AA17342@mailhost.example.net> <7B77911B-167E-47BF-A826-1C4396FEF000@foo.example.net> <7B77911B-167E-47BF-A826-1C4396FEF000@foo.example.net> (=?iso-2022-jp?B?IhskQj0pTVUbKEIgGyRCTSdOSRsoQg==?= "'s message of "Fri, 17 Oct 2008 04:32:17 +0900") It forces ietf-drums-remove-comments() to say: Debugger entered--Lisp error: (scan-error "Unbalanced parentheses" 157 258) scan-sexps(157 1) forward-sexp(1) In order to avoid this error, I'd like to install the attached change. Do you have any objections or better solutions? Regards, -- TSUCHIYA Masatoshi --- ietf-drums.el 19 May 2008 08:47:42 -0000 7.16 +++ ietf-drums.el 30 Oct 2008 07:11:01 -0000 @@ -125,7 +125,10 @@ ((eq c ?\") (forward-sexp 1)) ((eq c ?\() - (delete-region (point) (progn (forward-sexp 1) (point)))) + (delete-region (point) + (condition-case nil + (progn (forward-sexp 1) (point)) + (error (point-max))))) (t (forward-char 1)))) (buffer-string))))