* defining external http viewer for GNUS @ 2013-04-02 11:11 Rainer M. Krug 2013-04-02 13:46 ` Tassilo Horn 0 siblings, 1 reply; 7+ messages in thread From: Rainer M. Krug @ 2013-04-02 11:11 UTC (permalink / raw) To: info-gnus-english Hi I would like to use an external viewer (conqueror) to view html emails from time to time, but I would not like to change my emacs default viewer (x-www-browser). Is there a way of defining one (conqueror in my case) only for gnus? Thanks, Rainer PS: the more I use gnus (my fourth day now), the more I like it -- 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: defining external http viewer for GNUS 2013-04-02 11:11 defining external http viewer for GNUS Rainer M. Krug @ 2013-04-02 13:46 ` Tassilo Horn 2013-04-02 14:58 ` Rainer M. Krug 0 siblings, 1 reply; 7+ messages in thread From: Tassilo Horn @ 2013-04-02 13:46 UTC (permalink / raw) To: info-gnus-english Rainer@krugs.de (Rainer M. Krug) writes: Hi Rainer, > I would like to use an external viewer (conqueror) to view html emails > from time to time, but I would not like to change my emacs default > viewer (x-www-browser). Is there a way of defining one (conqueror in > my case) only for gnus? Is this what you are looking for? ,----[ C-h k K H ] | gnus-article-browse-html-article is an interactive compiled Lisp function in | `gnus-art.el'. | | (gnus-article-browse-html-article &optional ARG) | | View "text/html" parts of the current article with a WWW browser. | Inline images embedded in a message using the cid scheme, as they are | generally considered to be safe, will be processed properly. | The message header is added to the beginning of every html part unless | the prefix argument ARG is given. | | Warning: Spammers use links to images (using the http scheme) in HTML | articles to verify whether you have read the message. As | `gnus-article-browse-html-article' passes the HTML content to the | browser without eliminating these "web bugs" you should only | use it for mails from trusted senders. | | If you always want to display HTML parts in the browser, set | `mm-text-html-renderer' to nil. | | This command creates temporary files to pass HTML contents including | images if any to the browser, and deletes them when exiting the group | (if you want). `---- Bye, Tassilo ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: defining external http viewer for GNUS 2013-04-02 13:46 ` Tassilo Horn @ 2013-04-02 14:58 ` Rainer M. Krug 2013-04-02 15:14 ` Tassilo Horn 0 siblings, 1 reply; 7+ messages in thread From: Rainer M. Krug @ 2013-04-02 14:58 UTC (permalink / raw) To: Tassilo Horn; +Cc: info-gnus-english Tassilo Horn <tsdh@gnu.org> writes: > Rainer@krugs.de (Rainer M. Krug) writes: > > Hi Rainer, > >> I would like to use an external viewer (conqueror) to view html emails >> from time to time, but I would not like to change my emacs default >> viewer (x-www-browser). Is there a way of defining one (conqueror in >> my case) only for gnus? > > Is this what you are looking for? Not exactly. I can open the article in an external viewer, but it is always the external viewer as defined in emacs. I use (setq browse-url-browser-function 'browse-url-generic browse-url-generic-program "x-www-browser") to define my external browser and I only would like to be able to open html mails in a different browser (conqueror or dillo) as this will be uch faster them chromium which is my normal x-www-browser (and I want to keep chromium for normal browsing). Thanks, Rainer > > ,----[ C-h k K H ] > | gnus-article-browse-html-article is an interactive compiled Lisp function in > | `gnus-art.el'. > | > | (gnus-article-browse-html-article &optional ARG) > | > | View "text/html" parts of the current article with a WWW browser. > | Inline images embedded in a message using the cid scheme, as they are > | generally considered to be safe, will be processed properly. > | The message header is added to the beginning of every html part unless > | the prefix argument ARG is given. > | > | Warning: Spammers use links to images (using the http scheme) in HTML > | articles to verify whether you have read the message. As > | `gnus-article-browse-html-article' passes the HTML content to the > | browser without eliminating these "web bugs" you should only > | use it for mails from trusted senders. > | > | If you always want to display HTML parts in the browser, set > | `mm-text-html-renderer' to nil. > | > | This command creates temporary files to pass HTML contents including > | images if any to the browser, and deletes them when exiting the group > | (if you want). > `---- > > Bye, > Tassilo > > > _______________________________________________ > info-gnus-english mailing list > info-gnus-english@gnu.org > https://lists.gnu.org/mailman/listinfo/info-gnus-english <#secure method=pgpmime mode=sign> -- 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: defining external http viewer for GNUS 2013-04-02 14:58 ` Rainer M. Krug @ 2013-04-02 15:14 ` Tassilo Horn 2013-04-02 16:19 ` Rainer M. Krug 0 siblings, 1 reply; 7+ messages in thread From: Tassilo Horn @ 2013-04-02 15:14 UTC (permalink / raw) To: Rainer M. Krug; +Cc: info-gnus-english Rainer@krugs.de (Rainer M. Krug) writes: Hi Rainer, >> Is this what you are looking for? > > Not exactly. I can open the article in an external viewer, but it is > always the external viewer as defined in emacs. I use > > (setq browse-url-browser-function 'browse-url-generic > browse-url-generic-program "x-www-browser") > > to define my external browser and I only would like to be able to open > html mails in a different browser (conqueror or dillo) as this will be > uch faster them chromium which is my normal x-www-browser (and I want > to keep chromium for normal browsing). Ok, I see. I think this should do the trick (untested): --8<---------------cut here---------------start------------->8--- (add-to-list 'mm-text-html-renderer-alist '(conqueror mm-inline-render-with-file nil "conqueror" file)) (setq mm-text-html-renderer 'conqueror) --8<---------------cut here---------------end--------------->8--- Then, `K H' should open conqueror with the mail. Bye, Tassilo ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: defining external http viewer for GNUS 2013-04-02 15:14 ` Tassilo Horn @ 2013-04-02 16:19 ` Rainer M. Krug 2013-04-02 17:32 ` Tassilo Horn 0 siblings, 1 reply; 7+ messages in thread From: Rainer M. Krug @ 2013-04-02 16:19 UTC (permalink / raw) To: Tassilo Horn; +Cc: info-gnus-english Tassilo Horn <tsdh@gnu.org> writes: > Rainer@krugs.de (Rainer M. Krug) writes: > > Hi Rainer, > >>> Is this what you are looking for? >> >> Not exactly. I can open the article in an external viewer, but it is >> always the external viewer as defined in emacs. I use >> >> (setq browse-url-browser-function 'browse-url-generic >> browse-url-generic-program "x-www-browser") >> >> to define my external browser and I only would like to be able to open >> html mails in a different browser (conqueror or dillo) as this will be >> uch faster them chromium which is my normal x-www-browser (and I want >> to keep chromium for normal browsing). > > 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. 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). Cheers, Rainer > > Bye, > Tassilo <#secure method=pgpmime mode=sign> -- 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: defining external http viewer for GNUS 2013-04-02 16:19 ` Rainer M. Krug @ 2013-04-02 17:32 ` Tassilo Horn 2013-04-03 10:57 ` Rainer M. Krug 0 siblings, 1 reply; 7+ messages in thread From: Tassilo Horn @ 2013-04-02 17:32 UTC (permalink / raw) To: Rainer M. Krug; +Cc: info-gnus-english 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: defining external http viewer for GNUS 2013-04-02 17:32 ` Tassilo Horn @ 2013-04-03 10:57 ` Rainer M. Krug 0 siblings, 0 replies; 7+ messages in thread From: Rainer M. Krug @ 2013-04-03 10:57 UTC (permalink / raw) To: Tassilo Horn; +Cc: info-gnus-english 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-04-03 10:57 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-04-02 11:11 defining external http viewer for GNUS 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 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).