From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: Re: shr-map keymap issues
Date: Fri, 06 May 2011 18:21:00 +0900 [thread overview]
Message-ID: <b4mr58cqj5v.fsf@jpl.org> (raw)
In-Reply-To: <87hb9b8q17.fsf@lifelogs.com>
[-- Attachment #1: Type: text/plain, Size: 432 bytes --]
Ted Zlatanov <tzz@lifelogs.com> 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: <http://partialobjects.com/2011/04/mad-dolls/>
> Xref: news.gmane.org gwene.com.thelastpsychia.partialobjects:113
> It did not work for me: images were not hidden.
It's easy if shr.el allows the use of Gnus' resource. ;-)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 530 bytes --]
--- 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)
next prev parent reply other threads:[~2011-05-06 9:21 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-15 18:58 Ted Zlatanov
2011-04-22 0:14 ` Ted Zlatanov
2011-05-01 16:13 ` Lars Magne Ingebrigtsen
2011-05-02 17:07 ` Ted Zlatanov
2011-05-02 17:16 ` Lars Magne Ingebrigtsen
2011-05-02 17:22 ` Ted Zlatanov
2011-05-30 20:58 ` Lars Magne Ingebrigtsen
2011-05-31 16:31 ` Ted Zlatanov
2011-05-31 19:00 ` Lars Magne Ingebrigtsen
2011-05-31 19:18 ` Ted Zlatanov
2011-05-31 19:26 ` Lars Magne Ingebrigtsen
2011-05-03 20:53 ` Ted Zlatanov
2011-05-06 9:21 ` Katsumi Yamaoka [this message]
2011-05-09 15:21 ` Ted Zlatanov
2011-05-10 0:12 ` Katsumi Yamaoka
2011-05-30 20:59 ` Lars Magne Ingebrigtsen
2011-05-01 16:10 ` Lars Magne Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4mr58cqj5v.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).