From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78748 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: shr-map keymap issues Date: Mon, 09 May 2011 10:21:50 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87hb93gar5.fsf@lifelogs.com> References: <8739ljfij1.fsf@lifelogs.com> <87mxjjm9b4.fsf@lifelogs.com> <87oc3lvxns.fsf@lifelogs.com> <87hb9b8q17.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1304954546 32601 80.91.229.12 (9 May 2011 15:22:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 May 2011 15:22:26 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27050@lists.math.uh.edu Mon May 09 17:22:22 2011 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 1QJSHt-0002Gr-LS for ding-account@gmane.org; Mon, 09 May 2011 17:22:22 +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 1QJSHg-0005JU-W6; Mon, 09 May 2011 10:22:09 -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 1QJSHf-0005JD-5t for ding@lists.math.uh.edu; Mon, 09 May 2011 10:22:07 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QJSHd-0000sL-Di for ding@lists.math.uh.edu; Mon, 09 May 2011 10:22:06 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QJSHZ-0000GQ-Nm for ding@gnus.org; Mon, 09 May 2011 17:22:01 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QJSHZ-00024k-1E for ding@gnus.org; Mon, 09 May 2011 17:22:01 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 May 2011 17:22:01 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 May 2011 17:22:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:+HhZdUOTgiVlZI5HKWu9yH/X7j8= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78748 Archived-At: On Fri, 06 May 2011 18:21:00 +0900 Katsumi Yamaoka wrote: KY> Ted Zlatanov wrote: LMI> `W D W' and `W D D' (hide-/show-images). >> I just tested that in Gnus against this article: >> Newsgroups: gwene.com.thelastpsychia.partialobjects >> Archived-at: >> Xref: news.gmane.org gwene.com.thelastpsychia.partialobjects:113 >> It did not work for me: images were not hidden. KY> It's easy if shr.el allows the use of Gnus' resource. ;-) I think you should commit this patch. Ted --- shr.el~ 2011-05-05 21:58:59.375000000 +0000 +++ shr.el 2011-05-06 09:18:35.566220400 +0000 @@ -514,7 +514,12 @@ (when (and (> (current-column) 0) (> (car (image-size image t)) 400)) (insert "\n")) - (insert-image image (or alt "*")))) + (if (eq major-mode 'gnus-article-mode) + (progn + (insert-image image (propertize (or alt "*") + 'gnus-image-category 'shr)) + (gnus-add-image 'shr image)) + (insert-image image (or alt "*"))))) (insert alt))) (defun shr-rescale-image (data)