Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Rainer@krugs.de (Rainer M. Krug)
To: Tassilo Horn <tsdh@gnu.org>
Cc: info-gnus-english@gnu.org
Subject: Re: defining external http viewer for GNUS
Date: Wed, 03 Apr 2013 12:57:14 +0200	[thread overview]
Message-ID: <87ip43j305.fsf@krugs.de> (raw)
In-Reply-To: <87ppyc4z49.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Tue, 02 Apr 2013 19:32:38 +0200")

Tassilo Horn <tsdh@gnu.org> writes:

> 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.
>
> (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)
>
> 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...

If I use your code, the mail is opened in conkerer, but emacs is
unresponsive, and when I close conkeror, the message is opened again in
my default browser and again in conkeror - strange.

Cheers,

Rainer

>
> Bye,
> Tassilo


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug

      reply	other threads:[~2013-04-03 10:57 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
2013-04-03 10:57           ` Rainer M. Krug [this message]

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=87ip43j305.fsf@krugs.de \
    --to=rainer@krugs.de \
    --cc=info-gnus-english@gnu.org \
    --cc=tsdh@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).