From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/71853 Path: news.gmane.org!not-for-mail From: Knut Anders Hatlen Newsgroups: gmane.emacs.gnus.general Subject: Re: Backtrace from gnus-html-display-image Date: Sun, 26 Sep 2010 18:32:24 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1285518765 28531 80.91.229.12 (26 Sep 2010 16:32:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 26 Sep 2010 16:32:45 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M20226@lists.math.uh.edu Sun Sep 26 18:32:44 2010 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.69) (envelope-from ) id 1Ozu9V-0001WA-MC for ding-account@gmane.org; Sun, 26 Sep 2010 18:32:37 +0200 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 1Ozu9U-0007eC-6v; Sun, 26 Sep 2010 11:32:36 -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 1Ozu9S-0007dq-8B for ding@lists.math.uh.edu; Sun, 26 Sep 2010 11:32:34 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Ozu9R-00070B-AR for ding@lists.math.uh.edu; Sun, 26 Sep 2010 11:32:34 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Ozu9Q-0001Bv-00 for ; Sun, 26 Sep 2010 18:32:32 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ozu9P-0001UI-M5 for ding@gnus.org; Sun, 26 Sep 2010 18:32:31 +0200 Original-Received: from gw2.mysql.com ([213.136.52.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 26 Sep 2010 18:32:31 +0200 Original-Received: from kahatlen by gw2.mysql.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 26 Sep 2010 18:32:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 47 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: gw2.mysql.com User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (usg-unix-v) Cancel-Lock: sha1:H6x3y26dnl858hyecN+prhvDoLw= X-Spam-Score: -1.0 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:71853 Archived-At: --=-=-= Content-Type: text/plain Knut Anders Hatlen writes: > Hi, > > When I try to show remote images in an article using W D W, I get this > backtrace: > > Debugger entered--Lisp error: (wrong-number-of-arguments #[(url start end alt-text) Hmm... Not a good idea to include those control characters in the backtrace, it seems. Don't know if the entire message made it to the mailing list. It was truncated in Gmane at least. Anyways, what I was trying to say, was that the attached patch makes displaying remote images work again by removing some unused parameters from the function's signature. -- Knut Anders --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=images.diff diff --git a/lisp/gnus-html.el b/lisp/gnus-html.el index cb5d3c6..cc3c871 100644 --- a/lisp/gnus-html.el +++ b/lisp/gnus-html.el @@ -245,10 +245,10 @@ CHARS is a regexp-like character alternative (e.g., \"[)$]\")." (> height 4)) (or (null width) (> width 4))) - (gnus-html-display-image url start end alt-text)))))))))) + (gnus-html-display-image url alt-text)))))))))) -(defun gnus-html-display-image (url start end alt-text) - "Display image at URL on text from START to END. +(defun gnus-html-display-image (url alt-text) + "Display image at URL. Use ALT-TEXT for the image string." (if (gnus-html-cache-expired url gnus-html-image-cache-ttl) ;; We don't have it, so schedule it for fetching --=-=-=--