From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#453: 23.0.60; rfc822-bad-address: wrong-type-argument error Date: Tue, 26 Aug 2008 17:30:05 -0400 Message-ID: <87vdxn1n36.fsf@cyd.mit.edu> Reply-To: Chong Yidong , 453@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1219787265 21228 80.91.229.12 (26 Aug 2008 21:47:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Aug 2008 21:47:45 +0000 (UTC) Cc: 453@emacsbugs.donarmstrong.com To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 26 23:48:39 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KY6Oz-0007bP-O3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Aug 2008 23:48:38 +0200 Original-Received: from localhost ([127.0.0.1]:54818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KY6O1-0005fG-Et for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Aug 2008 17:47:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KY6Nx-0005dD-Dr for bug-gnu-emacs@gnu.org; Tue, 26 Aug 2008 17:47:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KY6Nv-0005aB-Kg for bug-gnu-emacs@gnu.org; Tue, 26 Aug 2008 17:47:32 -0400 Original-Received: from [199.232.76.173] (port=50169 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KY6Nv-0005Zx-Dr for bug-gnu-emacs@gnu.org; Tue, 26 Aug 2008 17:47:31 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33536) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KY6Nu-0007wW-U3 for bug-gnu-emacs@gnu.org; Tue, 26 Aug 2008 17:47:31 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7QLlS61020160; Tue, 26 Aug 2008 14:47:28 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7QLZ4GE015815; Tue, 26 Aug 2008 14:35:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 26 Aug 2008 21:35:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 453 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 453-submit@emacsbugs.donarmstrong.com id=B453.121978610313904 (code B ref 453); Tue, 26 Aug 2008 21:35:04 +0000 Original-Received: (at 453) by emacsbugs.donarmstrong.com; 26 Aug 2008 21:28:23 +0000 Original-Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7QLSKrG013898 for <453@emacsbugs.donarmstrong.com>; Tue, 26 Aug 2008 14:28:21 -0700 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 77E7457E34B; Tue, 26 Aug 2008 17:30:05 -0400 (EDT) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 26 Aug 2008 17:47:32 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19737 Archived-At: Sorry for the delay in replying. > I was reading a newsgroup with Gnus, typed `n' > (gnus-summary-next-unread-article) to read the next article[1], and > got a wrong-type-argument error. The backtrace is attached. The > error occurs in rfc822-bad-address, when the first argument of > narrow-to-region, rfc822-address-start, is nil. The value is nil at > this point because rfc822-addresses calls rfc822-nuke-whitespace > before rfc822-address-start is assigned an initial value. I don't see how rfc822-address-start could be nil. The code sets it to (point) just before the call to rfc822-bad-address. Could you further explain your reasoning? (while (not (eobp)) (setq rfc822-address-start (point)) (setq tem (catch 'address ; this is for rfc822-bad-address (cond ((rfc822-looking-at ?\,) nil) ((looking-at "[][\000-\037@;:\\.>)]") (forward-char) (rfc822-bad-address (format "Strange character \\%c found" (preceding-char)))) (By the way, next time you mail a patch, please try not to change whitespaces; that makes the patch very difficult to read. Thanks.)