[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open Hypspec with w3m

From: Jason Earl
Subject: Re: Open Hypspec with w3m
Date: Fri, 28 Jan 2011 17:29:02 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

On Fri, Jan 28 2011, Stefan Monnier wrote:

>> So is there a way to override 'hyperspec-lookup so that it always
>> behaves as if browse-url-browser-function was 'w3m-browse-url?
> You can use defadvice (with `around' advice) on hyperspec-lookup to
> let-bind browse-url-browser-function for the duration of that
> function.

That worked perfectly.  Thank you.

> PS: Another attack vector is to globally set
> browse-url-browser-function to a function that either invokes
> emacs-23m or firefox depending on the URL.  Some Emacs maintainer I
> know might even be willing to accept patches to provide such a feature
> more generally, e.g. via a configuration variable that lists URL
> patterns that should use emacs-w3m.

I would love to try and do that, despite the fact that the defadvice
solution seems to do precisely what I want.  I think that should be
within my grasp.  You do realize, of course, that you are essentially
volunteering to look over some potentially very bad Elisp.  The only
reason that I needed your advice is that I haven't made it all the way
through the Elisp manual :).

Either way, thanks for the challenge.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]