Gnus development mailing list
 help / color / mirror / Atom feed
* Make ietf-drums-remove-comments() robust against broken header
@ 2008-10-30  7:11 TSUCHIYA Masatoshi
  2008-10-30  8:54 ` Katsumi Yamaoka
  2008-10-30  9:07 ` Bjørn Mork
  0 siblings, 2 replies; 13+ messages in thread
From: TSUCHIYA Masatoshi @ 2008-10-30  7:11 UTC (permalink / raw)
  To: ding

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))))



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-10-31 17:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-30  7:11 Make ietf-drums-remove-comments() robust against broken header TSUCHIYA Masatoshi
2008-10-30  8:54 ` Katsumi Yamaoka
2008-10-30  9:07 ` Bjørn Mork
2008-10-30  9:25   ` Katsumi Yamaoka
2008-10-30 14:27     ` Bjørn Mork
2008-10-30 14:38       ` TSUCHIYA Masatoshi
2008-10-30 23:33         ` Katsumi Yamaoka
2008-10-31  0:35           ` TSUCHIYA Masatoshi
2008-10-31  1:21             ` Katsumi Yamaoka
2008-10-31  3:19               ` Ted Zlatanov
2008-10-31  7:26                 ` Katsumi Yamaoka
2008-10-31  9:06                   ` Katsumi Yamaoka
2008-10-31 17:34                     ` Ted Zlatanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).