From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67882 Path: news.gmane.org!not-for-mail From: Naohiro Aota Newsgroups: gmane.emacs.gnus.general Subject: nnimap-demule shouldn't be called with nil Date: Fri, 12 Dec 2008 12:11:14 +0900 Message-ID: <87fxkuozot.fsf@yue.localnetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1229051503 24308 80.91.229.12 (12 Dec 2008 03:11:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Dec 2008 03:11:43 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16328@lists.math.uh.edu Fri Dec 12 04:12:47 2008 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 1LAySL-00029H-IP for ding-account@gmane.org; Fri, 12 Dec 2008 04:12:45 +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 1LAyR5-0005WJ-GK; Thu, 11 Dec 2008 21:11:27 -0600 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 1LAyR4-0005W5-DM for ding@lists.math.uh.edu; Thu, 11 Dec 2008 21:11:26 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LAyR1-0005bh-Jm for ding@lists.math.uh.edu; Thu, 11 Dec 2008 21:11:26 -0600 Original-Received: from rv-out-0506.google.com ([209.85.198.234]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LAyRC-0000Wz-00 for ; Fri, 12 Dec 2008 04:11:35 +0100 Original-Received: by rv-out-0506.google.com with SMTP id k40so1194472rvb.17 for ; Thu, 11 Dec 2008 19:11:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:user-agent:mime-version:content-type; bh=Y0yRSp9lpPnJbqZviHcZN8wePg4XX5xh/EDG7lBEdLE=; b=Cf4JhXcyG3uu8TxzK57yHIoJLwpCZX1A9PJA9ziWEdgMeOcysbxxw5a0E2VdSnUtg8 jm0flXIMf0CrXJafFgqeLqL/DBSb3t5E+uGPPQBWIzvm4wZRei7Q5Xjm/XWL5F1tG33U Dcig8FPHFVPGEmVWMyUF+sUBRksBoKaUfIQEM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; b=Ny06zsLWE64nR4je+xTU5ObQgxBCp0r8jqoiI0iQMh4cvqmBuTc4LA1s5E+0dUXkJ4 XeMDPClqLt+CH4xGMUxoouNo53FZs/rBT57kyrviXjfrX3d5O6GYWqPoxe0lN3B2rFCL SeAEaqvah5+ap8Mf4xK3vBx4Y5Qp5+V562ars= Original-Received: by 10.141.137.16 with SMTP id p16mr1643627rvn.180.1229051475677; Thu, 11 Dec 2008 19:11:15 -0800 (PST) Original-Received: from yue.localnetwork (zaq3a55f27d.zaq.ne.jp [58.85.242.125]) by mx.google.com with ESMTPS id k37sm17344619rvb.1.2008.12.11.19.11.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Dec 2008 19:11:14 -0800 (PST) User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67882 Archived-At: --=-=-= Hi, list. In some situations, Gnus call `nnimap-demule' with nil, and cause an error: "insert: Wrong type argument: stringp, nil". This makes `gnus-summary-prev-article' stop working in the situations. Anyway, I wrote a patch for this. Please find the patch below. 2008-12-12 Naohiro Aota * nnimap.el (nnimap-request-article-part): Call nnimap-demule with empty string, when data is nil. --=-=-= Content-Disposition: inline Index: lisp/nnimap.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/nnimap.el,v retrieving revision 7.55 diff -u -r7.55 nnimap.el --- lisp/nnimap.el 3 Dec 2008 20:33:34 -0000 7.55 +++ lisp/nnimap.el 12 Dec 2008 02:11:50 -0000 @@ -950,9 +950,10 @@ (erase-buffer) (let ((data (imap-fetch article part prop nil nnimap-server-buffer))) - (insert (nnimap-demule (if detail - (nth 2 (car data)) - data)))) + (insert (nnimap-demule (or (if detail + (nth 2 (car data)) + data) + "")))) (nnheader-ms-strip-cr) (gnus-message 10 "nnimap: Fetching (part of) article %d from %s...done" --=-=-= Regards, --=-=-=--