From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: Viewing HTML-mails with external browsers - proposed code
Date: Wed, 25 Jan 2006 15:44:55 +0100 [thread overview]
Message-ID: <v9fyncv02g.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <878xt8wi4l@ularx.de>
On Sun, Jan 22 2006, Hynek Schlawack wrote:
> * Reiner Steib <reinersteib+gmane@imap.cc> wrote:
>
>> JFTR: It failed with "Mail doesn't contain a HTML-part!" on the
>> following forwarded message: [...]
> Hm, would you mind to forward some look-a-like to me?
I will sent you a look-alike off-list.
>> I think (when your assignment is completed),
>
> It's up to our patience right now. ;)
>
>> 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.
In fact, `v' is a good candidate for a (prefix) key we could reserve
for the user in Gnus, see <news:v9u0bsv0at.fsf@marauder.physik.uni-ulm.de>.
>>> (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.
>>> (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? :)
I looked at `browse-url-of-buffer' and saw that there we have (Emacs
22 / CVS):
(setq browse-url-temp-file-name
(convert-standard-filename
(make-temp-file
(expand-file-name "burl" browse-url-temp-dir)
nil ".html")))
The doc string says:
,----[ <f1> f convert-standard-filename RET ]
| convert-standard-filename is a compiled Lisp function in `files.el'.
| (convert-standard-filename filename)
|
| Convert a standard file's name to something suitable for the OS.
| This means to guarantee valid names and perhaps to canonicalize
| certain patterns.
|
| filename should be an absolute file name since the conversion rules
| sometimes vary depending on the position in the file name. E.g. c:/foo
| is a valid DOS file name, but c:/bar/c:/foo is not.
|
| This function's standard definition is trivial; it just returns
| the argument. However, on Windows and DOS, replace invalid
| characters. On DOS, make sure to obey the 8.3 limitations. On
| Windows, turn Cygwin names into native names, and also turn
| slashes into backslashes if the shell requires it (see
| `w32-shell-dos-semantics').
|
| See Info node `(elisp)Standard File Names' for more details.
`----
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?
>>> "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.
,----[ <f1> f browse-url RET ]
| browse-url is an interactive autoloaded Lisp function in `browse-url'.
| (browse-url url &rest args)
|
| Ask a WWW browser to load url.
| Prompts for a url, defaulting to the url at or before point. Variable
| `browse-url-browser-function' says which browser to use.
`----
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
next prev parent reply other threads:[~2006-01-25 14:44 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-18 21:49 Hynek Schlawack
2006-01-13 13:42 ` Hynek Schlawack
2006-01-13 15:57 ` Reiner Steib
2006-01-13 17:13 ` Hynek Schlawack
2006-01-19 19:35 ` Reiner Steib
2006-01-22 12:40 ` Hynek Schlawack
2006-01-25 14:44 ` Reiner Steib [this message]
2006-01-25 16:29 ` Hynek Schlawack
2006-01-25 17:41 ` Reiner Steib
2006-01-31 12:38 ` Hynek Schlawack
2006-02-10 18:15 ` Reiner Steib
2006-02-13 0:06 ` Katsumi Yamaoka
2006-02-13 14:53 ` Reiner Steib
2006-02-13 15:24 ` Hynek Schlawack
2006-02-13 15:37 ` Hynek Schlawack
2006-02-13 22:16 ` Reiner Steib
2006-02-14 0:11 ` Katsumi Yamaoka
2006-02-14 11:50 ` Katsumi Yamaoka
2006-02-15 8:39 ` mm-make-temp-file (was Re: Viewing HTML-mails with external browsers - proposed code) Katsumi Yamaoka
2006-02-14 20:08 ` Viewing HTML-mails with external browsers - proposed code Hynek Schlawack
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=v9fyncv02g.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).