From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16198 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.user Subject: Re: defining external http viewer for GNUS Date: Tue, 02 Apr 2013 19:32:38 +0200 Message-ID: <87ppyc4z49.fsf@thinkpad.tsdh.de> References: <87y5d1mblj.fsf@krugs.de> <87a9phyri7.fsf@thinkpad.tsdh.de> <87li91m129.fsf@krugs.de> <876205yng5.fsf@thinkpad.tsdh.de> <87hajonbw6.fsf@krugs.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 1364925585 19809 80.91.229.3 (2 Apr 2013 17:59:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Apr 2013 17:59:45 +0000 (UTC) Cc: info-gnus-english@gnu.org To: Rainer@krugs.de (Rainer M. Krug) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Tue Apr 02 20:00:11 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 1UN5V8-0003ug-Ku for gegu-info-gnus-english@m.gmane.org; Tue, 02 Apr 2013 20:00:06 +0200 Original-Received: from localhost ([::1]:41599 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UN5Uk-0001ZV-2h for gegu-info-gnus-english@m.gmane.org; Tue, 02 Apr 2013 13:59:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UN54c-0006NK-4D for info-gnus-english@gnu.org; Tue, 02 Apr 2013 13:32:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UN54a-00028z-Rj for info-gnus-english@gnu.org; Tue, 02 Apr 2013 13:32:42 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:50592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UN54a-00028n-LB for info-gnus-english@gnu.org; Tue, 02 Apr 2013 13:32:40 -0400 Original-Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 2DDA020D79; Tue, 2 Apr 2013 13:32:40 -0400 (EDT) Original-Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute4.internal (MEProxy); Tue, 02 Apr 2013 13:32:40 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :message-id:mime-version:content-type; s=smtpout; bh=vDmKuU+55Y+ sVQAlBDkzVMbKIGw=; b=DbuQZIoeFyWwZ7Rv8WjI4Fmt4J/GL8Wd07fnXljvWmW qrpavTQaihlkV0H9PidkL+2kDRFjWXyICWLIPuYdtt4tnUuxlJqKZSW9ENAIsmBF BwqoEih96PyWxOCfH0SBWXW26gTtaAvOpcuOby8h6xPx+TsZvKhWSuJdo8gP2ZVM = X-Sasl-enc: GZ6ra47EKWzK4Wfh3Pp6DMm+HiJVHVWyiTmBOUVZtwmQ 1364923959 Original-Received: from thinkpad.tsdh.de (unknown [91.67.10.84]) by mail.messagingengine.com (Postfix) with ESMTPA id 988D3200172; Tue, 2 Apr 2013 13:32:39 -0400 (EDT) User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.25 X-Mailman-Approved-At: Tue, 02 Apr 2013 13:59:39 -0400 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:16198 Archived-At: 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