From: Katsumi Yamaoka <yamaoka@jpl.org>
To: info-gnus-english@gnu.org
Subject: Re: Displaying images in nnrss feeds
Date: Fri, 11 May 2007 19:56:10 +0900 [thread overview]
Message-ID: <b4mzm4bwrw5.fsf@jpl.org> (raw)
In-Reply-To: <85d517acr0.fsf@qustom.co.uk>
>>>>> In <85d517acr0.fsf@qustom.co.uk> Peter Russell wrote:
> I've added the RSS feed for http://planet.gnome.org, which is always a
> pretty interesting read, and I'm impressed by how well it works. Some
> of the posts on the feed have "hackergotchis", images of the poster
> which are attached to posts. These appear in Gnus as text like this:
> [jdub]
> And when I put the point over them, and press enter the images are
> downloaded and displayed inline.
You've set `mm-text-html-renderer' to `w3m'. Right?
> Is it possible to make these images display by default? I can't find
> any option to do this.
> I'd really like all images in posts to be displayed by default, but
> it's the hackergotchis I care more about.
There is a way to do that if you use emacs-w3m. Try putting the
following forms in your ~/.gnus.el file:
--8<---------------cut here---------------start------------->8---
;; Set the default values of `mm-w3m-safe-url-regexp'
;; and `mm-inline-text-html-with-images'.
(eval-after-load "gnus-sum"
'(progn
(add-to-list 'gnus-newsgroup-variables
'(mm-w3m-safe-url-regexp . "\\`cid:"))
(add-to-list 'gnus-newsgroup-variables
'(mm-inline-text-html-with-images . nil))))
;; Display images inline in `nnrss' groups.
(add-to-list 'gnus-parameters
'("\\`nnrss:"
(mm-inline-text-html-with-images t)
(mm-w3m-safe-url-regexp nil)))
--8<---------------cut here---------------end--------------->8---
You can find a similar example in the Gnus manual:
(info "(gnus)RSS") <- Type `C-x C-e' here.
The Emacs MIME manual will be helpful as well:
(info "(emacs-mime)Display Customization")
Regards,
next prev parent reply other threads:[~2007-05-11 10:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-11 10:12 Peter Russell
2007-05-11 10:56 ` Katsumi Yamaoka [this message]
2007-05-11 11:19 ` Peter Russell
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=b4mzm4bwrw5.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=info-gnus-english@gnu.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).