[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: w3m-content-type-alist default text/html handler
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Mon, 31 Jan 2011 08:58:52 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 11508
- References: <87oc6yfnnz.fsf@xxxxxxxxxxxx>
Johan Claesson <johanclaesson@xxxxxxxxxxxx> wrote:
(B> The default value for text/html handler in the w3m-content-type-alist
(B> is based among other things on the variable
(B> browse-url-browser-function. It works as expected when
(B> browse-url-browser-function is set to a symbol like
(B> browse-url-firefox. But this variable can also have a alist value,
(B> for example like this:
(B> (setq browse-url-browser-function '(("^mailto:" . browse-url-mail)
(B> ("." . browse-url-firefox)))
(B> In this case the text/html handler will not get a appropriate value.
(B> This will make the command w3m-view-url-with-external-browser (bound
(B> to M) download the webpage instead of browsing it in a external
(B> The following patch of w3m.el attempts to remedy this. It will walk
(B> through the alist and select whatever entry that matches the url
(BThanks! Could you eliminate a cl macro in it? Normally the use
(Bof cl macros is ok, but they have to be expanded at the compile
(Btime since emacs-w3m never uses cl at run-time, like the rest.
(BHowever, macros will not be expanded in defcustom forms, except
(Bfor the recent XEmacs 21.5. So, an alist value for
(B`browse-url-browser-function' will cause the `(void-function loop)'
(BIn addition, please provide a chengelog entry by yourself.