From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16200 Path: news.gmane.org!not-for-mail From: Rainer@krugs.de (Rainer M. Krug) Newsgroups: gmane.emacs.gnus.user Subject: Re: defining external http viewer for GNUS Date: Wed, 03 Apr 2013 12:57:14 +0200 Message-ID: <87ip43j305.fsf@krugs.de> References: <87y5d1mblj.fsf@krugs.de> <87a9phyri7.fsf@thinkpad.tsdh.de> <87li91m129.fsf@krugs.de> <876205yng5.fsf@thinkpad.tsdh.de> <87hajonbw6.fsf@krugs.de> <87ppyc4z49.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1364986652 32561 80.91.229.3 (3 Apr 2013 10:57:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Apr 2013 10:57:32 +0000 (UTC) Cc: info-gnus-english@gnu.org To: Tassilo Horn Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed Apr 03 12:57:59 2013 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UNLO4-0002FL-IE for gegu-info-gnus-english@m.gmane.org; Wed, 03 Apr 2013 12:57:52 +0200 Original-Received: from localhost ([::1]:37782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNLNf-00052C-Sa for gegu-info-gnus-english@m.gmane.org; Wed, 03 Apr 2013 06:57:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNLNZ-0004w5-VL for info-gnus-english@gnu.org; Wed, 03 Apr 2013 06:57:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNLNX-0004oV-3X for info-gnus-english@gnu.org; Wed, 03 Apr 2013 06:57:21 -0400 Original-Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:51056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNLNW-0004oF-Tq; Wed, 03 Apr 2013 06:57:19 -0400 Original-Received: by mail-wg0-f42.google.com with SMTP id k13so4075509wgh.5 for ; Wed, 03 Apr 2013 03:57:17 -0700 (PDT) X-Received: by 10.180.39.207 with SMTP id r15mr72516wik.16.1364986637638; Wed, 03 Apr 2013 03:57:17 -0700 (PDT) Original-Received: from ecolmod ([2a01:e35:8baa:b070:f52e:a187:546f:1d99]) by mx.google.com with ESMTPS id n2sm24117155wiy.6.2013.04.03.03.57.15 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 03 Apr 2013 03:57:16 -0700 (PDT) In-Reply-To: <87ppyc4z49.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Tue, 02 Apr 2013 19:32:38 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22a X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:16200 Archived-At: Tassilo Horn 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