From: Tassilo Horn <tsdh@gnu.org>
To: Rainer@krugs.de (Rainer M. Krug)
Cc: info-gnus-english@gnu.org
Subject: Re: defining external http viewer for GNUS
Date: Tue, 02 Apr 2013 19:32:38 +0200 [thread overview]
Message-ID: <87ppyc4z49.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: <87hajonbw6.fsf@krugs.de>
Rainer@krugs.de (Rainer M. Krug) writes:
>> Ok, I see. I think this should do the trick (untested):
>>
>> (add-to-list 'mm-text-html-renderer-alist
>> '(conqueror mm-inline-render-with-file
>> nil "conqueror" file))
>> (setq mm-text-html-renderer 'conqueror)
>>
>> Then, `K H' should open conqueror with the mail.
>
> Thanks a lot - we are getting somwhere - the message is opened in
> conkeror (spelling error in my original email), but always. Which
> makes sense, as mm-text-html-renderer specifies how html emails should
> be rendered.
Ah, right.
> I would very much prefer the K H approach, where the mai is displayed
> in emacs, and that I can open it in the external renderer (conkeror).
Ok, next try.
--8<---------------cut here---------------start------------->8---
(add-to-list 'mm-text-html-renderer-alist
'(conkeror mm-inline-render-with-file
nil "conkeror" file))
(defun rainers-gnus-article-browse-html-article (&optional arg)
"Like `gnus-article-browse-html-article', but open the mail
with conkeror instead of the default web browser."
(interactive "P")
(let ((mm-text-html-renderer 'conkeror))
(gnus-article-browse-html-article arg)))
(gnus-define-keys (gnus-summary-mime-map "K" gnus-summary-mode-map)
"H" rainers-gnus-article-browse-html-article)
--8<---------------cut here---------------end--------------->8---
I've tried it, but when I hit `K H' the mail is opened in my default
browser (chromium) instead of conkeror (I actually replaced conkeror
with firefox above, because I don't have conkeror installed).
What's strange is that `mm-inline-render-with-file' is never called. I
wanted to edebug it, but when I do `K H' I'm not put into the edebugger.
I'm not sure what I'm doing wrong...
Bye,
Tassilo
next prev parent reply other threads:[~2013-04-02 17:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-02 11:11 Rainer M. Krug
2013-04-02 13:46 ` Tassilo Horn
2013-04-02 14:58 ` Rainer M. Krug
2013-04-02 15:14 ` Tassilo Horn
2013-04-02 16:19 ` Rainer M. Krug
2013-04-02 17:32 ` Tassilo Horn [this message]
2013-04-03 10:57 ` Rainer M. Krug
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=87ppyc4z49.fsf@thinkpad.tsdh.de \
--to=tsdh@gnu.org \
--cc=Rainer@krugs.de \
--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).