From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61768 Path: news.gmane.org!not-for-mail From: Hynek Schlawack Newsgroups: gmane.emacs.gnus.general Subject: Re: Viewing HTML-mails with external browsers - proposed code Date: Wed, 25 Jan 2006 17:29:26 +0100 Message-ID: References: <874q56xeh4@ularx.de> <878xt8wi4l@ularx.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138207100 5171 80.91.229.2 (25 Jan 2006 16:38:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2006 16:38:20 +0000 (UTC) Original-X-From: ding-owner+m10298@lists.math.uh.edu Wed Jan 25 17:38:11 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F1nYm-00009b-M0 for ding-account@gmane.org; Wed, 25 Jan 2006 17:31:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1F1nYi-0005pV-00; Wed, 25 Jan 2006 10:31:48 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1F1nWV-0005pQ-00 for ding@lists.math.uh.edu; Wed, 25 Jan 2006 10:29:31 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1F1nWR-000085-SP for ding@lists.math.uh.edu; Wed, 25 Jan 2006 10:29:31 -0600 Original-Received: from relay1.mail.vrmd.de ([81.28.232.18]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1F1nWR-0004pc-00 for ; Wed, 25 Jan 2006 17:29:27 +0100 Original-Received: from [141.89.59.172] (helo=sanday.haiti.cs.uni-potsdam.de) by relay1.mail.vrmd.de with esmtpa (Exim 4.60) (envelope-from ) id 1F1nWO-00081T-T1 for ding@gnus.org; Wed, 25 Jan 2006 17:29:24 +0100 Original-To: ding@gnus.org In-Reply-To: (Reiner Steib's message of "Wed, 25 Jan 2006 15:44:55 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Relay-User: mailout@ularx.de X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61768 Archived-At: * Reiner Steib wrote: >>> we should add both functions to `gnus-art.el' and add a key binding >>> (suggestions?) >> Well, _I_ use "v", but I guess I won't be able to push that. ;) > The very few remaining single letter keys should be reserved for very > frequently used commands. Well, something behind an attachment-related prefix then? > In fact, `v' is a good candidate for a (prefix) key we could reserve > for the user in Gnus, see . I read it and I knew what inspired you. ;) >>>> (let ((showed)) >>> Maybe "done" instead of "showed"? >> I'm not sure whether "done" exactly reflects the purpose of "showed". > I didn't read the code very carefully, so I probably misunderstood its > purpose. Well, it indicates, whether a (or more) HTML-attachment has been shown. "done" sounds like "we've done our job successfully and can quit". >>>> (make-temp-name "/tmp/gnus-html-") >>>> (user-login-name)))) >>> (mm-make-temp-file (expand-file-name "mm" mm-tmp-directory) nil ".html") >>> Maybe even (convert-standard-filename (mm-make-temp-file ...)) like >>> in `browse-url-of-buffer' is required? >> Uhm, so what's your final suggestion here? :) [...] > We don't use `convert-standard-filename' at all in Gnus upto now. I > don't use those systems (Windows, DOS, Cygwin) so I'm not sure if we > also need to add `convert-standard-filename' when we use > `mm-make-temp-file' in Gnus. Maybe the use in `browse-url-of-buffer' > isn't necessary? I'd say, mm-make-temp-file should take care of this as it also takes care where to put the tmp-file to. >>>> "View HTML-parts of the current Gnus-Article in a graphical browser." >>> "View \"text/html\" parts of the current article with a WWW browser." >>> See `C-h f browse-url RET'. >> Ehm, for what exactly? > Well, "graphical browser" might not be correct, depending on the > user's environment and preferences. Ok, but that's fixed now anyway. So, there's the bug with your mail and the temp-file-stuff left, iirc? -hs