[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnus-article-browse-html-article / X11 forwarding

From: Joseph Mingrone
Subject: Re: gnus-article-browse-html-article / X11 forwarding
Date: Sat, 07 Jun 2014 21:06:56 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix)

Joseph Mingrone <> writes:

> Hello,
> I recently discovered gnus-article-browse-html-article to view HTML
> parts of articles in an external browser.  This works great when the
> Emacs window is displayed on the local host.
> I often use X11 forwarding to display the Emacs client window on a
> remote host.  That is, I keep an Emacs daemon always running on my
> desktop at work and display a client on my laptop.  This has some nice
> properties.  For example, when I follow a link, Firefox/Conkeror is run
> on my laptop (I think this is a Firefox/XULRunner feature).  However,
> Firefox/Conkeror running on my laptop can't find those files in
> desktop:/tmp created by gnus-article-browse-html-article.

The solution I came up with involved making customized versions of
`gnus-article-browse-html-article` and `gnus-article-browse-html-parts`,
which I called `gnus-article-browse-remote-html-article` and
`gnus-article-browse-remote-html-parts`, respectively.  The changes were minor.

The only change in `gnus-article-browse-remote-html-article` is that it
calls `gnus-article-browse-remote-html-parts` instead of
`gnus-article-browse-html-parts`.  In `gnus-article-browse-remote-html-parts`, 
the line 

(let (type file charset content cid-dir tmp-file showed)

changes to

(let (type file charset content cid-dir tmp-file showed
(temporary-file-directory "/www/tmp") )

and after 

(setq tmp-file (mm-make-temp-file
                ;; Do we need to care for 8.3 filenames?
                "mm-" nil ".html")) 

I added the line

(set-file-modes tmp-file #o644)).


(browse-url-of-file (or tmp-file (expand-file-name file)))

changes to

(browse-url-of-file (concat "http://"; system-name (replace-regexp-in-string 
"/www" "" tmp-file)))

but this may vary depending on your web server configuration.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]