From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85130 Path: news.gmane.org!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.gnus.general,gmane.emacs.xemacs.beta Subject: problem in gnus-html-display-image: Xemacs while GNU Emacs is ok Date: Wed, 15 Oct 2014 14:15:43 +0200 Message-ID: <87a94xmsuo.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413375384 1618 80.91.229.3 (15 Oct 2014 12:16:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2014 12:16:24 +0000 (UTC) Cc: XEmacs Beta Discussion To: ding@gnus.org Original-X-From: ding-owner+M33374@lists.math.uh.edu Wed Oct 15 14:16:17 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XeNV0-000516-E9 for ding-account@gmane.org; Wed, 15 Oct 2014 14:16:16 +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 1XeNUv-0004WU-PZ; Wed, 15 Oct 2014 07:16:09 -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 1XeNUu-0004W5-0P for ding@lists.math.uh.edu; Wed, 15 Oct 2014 07:16:08 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XeNUs-00046l-Cj for ding@lists.math.uh.edu; Wed, 15 Oct 2014 07:16:07 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XeNUq-0004gf-2B for ding@gnus.org; Wed, 15 Oct 2014 14:16:04 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XeNUo-0004sB-0P for ding@gnus.org; Wed, 15 Oct 2014 14:16:02 +0200 Original-Received: from gilgamesch.quim.ucm.es ([147.96.12.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Oct 2014 14:16:02 +0200 Original-Received: from oub by gilgamesch.quim.ucm.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Oct 2014 14:16:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 68 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: gilgamesch.quim.ucm.es Mail-Copies-To: never X-Hashcash: 1:20:141015:gmane.emacs.gnus.general::mLGisHj48uuXGIs4:00000000000000000000000000000000000000J6V User-Agent: Gnus/5.13001 (Ma Gnus v0.10) XEmacs/21.5-b33 (linux) Cancel-Lock: sha1:4cW4Mu6ttSH24RtS7Rdl/Nhs+eE= X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85130 gmane.emacs.xemacs.beta:38672 Archived-At: gnus-html-display-image works differently in Xemacs an in gnus, A html message which contains some link to a gif image, is displayed with GNU correctly but not with Xemacs. I debugged it with both Emacsen. GNU emacs (defun gnus-html-display-image (url start end &optional alt-text) "Display image at URL on text from START to END. Use ALT-TEXT for the image string." (or alt-text (setq alt-text "*")) (if (string-match "\\`cid:" url) (let ((handle (mm-get-content-id (substring url (match-end 0))))) (when handle (gnus-html-put-image (mm-with-part handle (buffer-string)) url alt-text))) (if (gnus-html-cache-expired url gnus-html-image-cache-ttl) ;; We don't have it, so schedule it for fetching ;; asynchronously. (gnus-html-schedule-image-fetching (current-buffer) (list url alt-text)) ;; It's already cached, so just insert it. (gnus-html-put-image (gnus-html-get-image-data url) url alt-text)))) ^^: minibuffer displays some buffer which is in gif format then the function display it. Xemacs (defun gnus-html-display-image (url start end &optional alt-text) "Display image at URL on text from START to END. Use ALT-TEXT for the image string." (or alt-text (setq alt-text "*")) (if (string-match "\\`cid:" url) (let ((handle (mm-get-content-id (substring url (match-end 0))))) (when handle (gnus-html-put-image (mm-with-part handle (buffer-string)) url alt-text))) (if (gnus-html-cache-expired url gnus-html-image-cache-ttl) ;; We don't have it, so schedule it for fetching ;; asynchronously. (gnus-html-schedule-image-fetching (current-buffer) (list url alt-text)) ^^^returns: (nil . " *URL-5*"), which is a buffer in gif format: as said in a different message xemacs does not display the content of this message ;; It's already cached, so just insert it. (gnus-html-put-image (gnus-html-get-image-data url) url alt-text)))) ^xemacs jumps over this () and does nothing Any help would be appreciated. Uwe Brauer