From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/71058 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] (gnus-html-image-fetched): Fix `gnus-html-put-image' call not setting the right URL and ALT text on images. Date: Sun, 19 Sep 2010 09:41:20 +0200 Message-ID: <1284882080-17658-1-git-send-email-julien@danjou.info> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1284882148 10932 80.91.229.12 (19 Sep 2010 07:42:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 19 Sep 2010 07:42:28 +0000 (UTC) Cc: Julien Danjou To: ding@gnus.org Original-X-From: ding-owner+M19431@lists.math.uh.edu Sun Sep 19 09:42:27 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 1OxEXa-0002zK-Gi for ding-account@gmane.org; Sun, 19 Sep 2010 09:42:26 +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 1OxEXR-00071t-Vl; Sun, 19 Sep 2010 02:42:18 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1OxEXP-00071e-V5 for ding@lists.math.uh.edu; Sun, 19 Sep 2010 02:42:15 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1OxEXC-0005r1-NE for ding@lists.math.uh.edu; Sun, 19 Sep 2010 02:42:15 -0500 Original-Received: from prometheus.naquadah.org ([212.85.154.174] helo=mx1.naquadah.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1OxEXC-000604-00 for ; Sun, 19 Sep 2010 09:42:02 +0200 Original-Received: by mx1.naquadah.org (Postfix, from userid 8) id B7DF25C155; Sun, 19 Sep 2010 09:41:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on prometheus.naquadah.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=4.5 tests=ALL_TRUSTED,BAYES_00, URIBL_RHS_DOB autolearn=no version=3.3.1 Original-Received: from keller.adm.naquadah.org (unknown [IPv6:2a01:e35:2e39:e900:222:faff:fe9d:ce44]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id A16855C153; Sun, 19 Sep 2010 09:41:25 +0200 (CEST) Original-Received: from jd by keller.adm.naquadah.org with local (Exim 4.72) (envelope-from ) id 1OxEWb-0004bM-0B; Sun, 19 Sep 2010 09:41:25 +0200 X-Mailer: git-send-email 1.7.1 X-Spam-Score: -0.4 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:71058 Archived-At: Signed-off-by: Julien Danjou --- lisp/ChangeLog | 2 ++ lisp/gnus-html.el | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d3febc4..09af7dd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -2,6 +2,8 @@ * gnus-html.el (gnus-html-prefetch-images): Use `url-retrieve' rather than curl. + (gnus-html-image-fetched): Fix `gnus-html-put-image' call not setting + the right URL and ALT text on images. 2010-09-19 Lars Magne Ingebrigtsen diff --git a/lisp/gnus-html.el b/lisp/gnus-html.el index 1bd9ed4..fd59ec1 100644 --- a/lisp/gnus-html.el +++ b/lisp/gnus-html.el @@ -325,7 +325,7 @@ fit these criteria." (let ((inhibit-read-only t) (string (buffer-substring (cadr image) (caddr image)))) (delete-region (cadr image) (caddr image)) - (gnus-html-put-image file (cadr image) string)))))) + (gnus-html-put-image file (cadr image) (car image) string)))))) (defun gnus-html-put-image (file point string &optional url alt-text) (when (gnus-graphic-display-p) -- 1.7.1