help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: w3 trouble


From: Björn Lindström
Subject: Re: w3 trouble
Date: Tue, 28 Oct 2003 02:03:32 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

Kevin Rodgers <ihs_4664@yahoo.com> writes:

> Björn Lindström wrote:
>
>> ; Open links in Gnus articles with browse-url.
>> (eval-after-load "w3"
>>   '(progn
>>      (fset 'w3-fetch-orig (symbol-function 'w3-fetch))
>>      (defun w3-fetch (&optional url target)
>>        (interactive (list (w3-read-url-with-default)))
>>        (if (eq major-mode 'gnus-article-mode)
>>            (browse-url url)
>>          (w3-fetch-orig url target)))))
>
> You might like advice.el:
>
> (defadvice w3-fetch (around gnus-browse-url activate)
>    "Open links in Gnus with `browse-url' instead."
>    (if (eq major-mode 'gnus-article-mode)
>        (browse-url (ad-get-arg 0))    ; URL
>      ad-do-it))

I gave up on getting w3 to work, and installed emacs-w3m instead. Now I
would like to know how to translate any of the snippets above for use
with emacs-w3m instead of w3.

-- 
Björn Lindström <bkhl@elektrubadur.se>
http://bkhl.elektrubadur.se/


reply via email to

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