[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strange W3 behavior
From: |
Kevin Rodgers |
Subject: |
Re: strange W3 behavior |
Date: |
Mon, 07 Feb 2005 17:37:57 -0700 |
User-agent: |
Mozilla Thunderbird 0.9 (X11/20041105) |
Joe Bush wrote:
> Try adding the following to your .emacs file:
>
> (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)))))
AKA:
(defadvice w3-fetch (around gnus-article-mode activate)
"In Gnus Article mode, call `browse-url' instead."
(if (eq major-mode 'gnus-article-mode)
(browse-url (ad-get-arg 0)) ; URL
ad-do-it))
--
Kevin Rodgers