From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62145 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: mm-w3m-cid-retrieve-1 -> mm-handle-media-supertype called with nil arg Date: Fri, 03 Mar 2006 16:23:04 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1141399945 20999 80.91.229.2 (3 Mar 2006 15:32:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Mar 2006 15:32:25 +0000 (UTC) Original-X-From: ding-owner+m10673@lists.math.uh.edu Fri Mar 03 16:32:23 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FFCGH-0004qI-HG for ding-account@gmane.org; Fri, 03 Mar 2006 16:32:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FFCGC-00037D-00; Fri, 03 Mar 2006 09:32:04 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FFCFX-000378-00 for ding@lists.math.uh.edu; Fri, 03 Mar 2006 09:31:23 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FFCFT-0001rB-BT for ding@lists.math.uh.edu; Fri, 03 Mar 2006 09:31:23 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FFCFS-0006Tn-00 for ; Fri, 03 Mar 2006 16:31:18 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FFCEw-0004Wy-Ut for ding@gnus.org; Fri, 03 Mar 2006 16:30:46 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Mar 2006 16:30:46 +0100 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Mar 2006 16:30:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 90 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: 3Phac&+dw=IZHjhua]bp}LH<*p{qzj8u+" | (#> ("text/html" (charset . "iso-8859-1")) nil | (lambda nil (let ... ... ...)) nil nil nil nil)) | byte-code("[...] [url w3m-current-buffer gnus-article-mime-handles | mm-w3m-cid-retrieve-1 "<" 0 nil ">"] 5) | mm-w3m-cid-retrieve("cid:part1.01020309.03090509@imap.cc" raw nil) | w3m-cid-retrieve("cid:part1.01020309.03090509@imap.cc" raw nil) | w3m-retrieve("cid:part1.01020309.03090509@imap.cc" raw nil nil nil | ((lambda (&rest --cl-rest--) (apply | ... ... ... ... ... ... ... ... ... --cl-rest--)) (lambda (&rest | --cl-rest--) (apply | ... ... ... ... ... ... ... ... ... --cl-rest--)) (lambda (&rest | --cl-rest--) (apply ... ... ... ... ... --cl-rest--)))) | w3m-create-image("cid:part1.01020309.03090509@imap.cc" nil nil nil | ((lambda (&rest --cl-rest--) (apply | ... ... ... ... ... --cl-rest--)))) | w3m-toggle-inline-image(nil nil) | w3m-safe-toggle-inline-image(nil) | call-interactively(w3m-safe-toggle-inline-image) `---- - To get better debug output eval: (load "mm-view.el") (require 'cl) Repeat `w3m-safe-toggle-inline-image': ,---- | Debugger entered--Lisp error: (wrong-type-argument stringp nil) | string-match("/" nil 0) | split-string(nil "/") | mm-handle-media-supertype(nil) | (equal "multipart" (mm-handle-media-supertype elem)) `---- The problem is that `mm-handle-media-supertype' is called with a nil `elem' argument: (defun mm-w3m-cid-retrieve-1 (url handle) (dolist (elem handle) (when (listp elem) (if (equal url (mm-handle-id elem)) (progn (mm-insert-part elem) (throw 'found-handle (mm-handle-media-type elem)))) (if (equal "multipart" (mm-handle-media-supertype elem)) (mm-w3m-cid-retrieve-1 url elem))))) (defsubst mm-handle-media-supertype (handle) (car (split-string (mm-handle-media-type handle) "/"))) Using `w3m-safe-toggle-inline-image' without `gnus-summary-enter-digest-group' didn't trigger the bug. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/