[Top][All Lists]

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

Re: w3 trouble

From: Kevin Rodgers
Subject: Re: w3 trouble
Date: Tue, 21 Oct 2003 10:41:37 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Björn Lindström wrote:

; Open links in Gnus articles with browse-url.
(eval-after-load "w3"
     (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

Kevin Rodgers

reply via email to

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