[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to follow URL links in Gnus
From: |
Chunhua Li |
Subject: |
How to follow URL links in Gnus |
Date: |
Tue, 08 Aug 2006 16:33:20 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (gnu/linux) |
Hi, lists,
I just started using Emacs/Gnus to read news. When I read messages in article
buffer, I always need to follow url links, so I position cursor on a URL
link and press <RET>, or position mouse on the link and press <mouse-2>.
With both methods, the following message is displayed in minibuffer,
*Searching for program: no such file or directory, netscape*
Actually, I have w3m installed with these lines in ~/.emacs
(require 'w3m-load)
(setq mm-text-html-renderer 'w3m)
1. How to instruct Gnus to follow the link with w3m?
According to Gnus menu *6.4.7 Customizing w3*, I put the following lines in
.emacs, but nothing helps.
(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)))))
I am using Emacs version 21.3.1 and compiled CVS gnus (No Gnus 0.6) by myself,
./configure gave the following output.
[202]$ ./configure
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for makeinfo... no
checking for emacs... emacs
checking if emacs is really XEmacs... no
checking prefix for your Emacs... /usr
checking where .elc files should go... $(datadir)/emacs/site-lisp/gnus
checking where etc files should go... $(lispdir)/../../etc
checking where the TeXinfo docs should go... $(prefix)/info
checking for acceptable URL version... "no"
checking for acceptable W3 version... "no"
checking which options to pass on to (X)Emacs... -batch -q -no-site-file -l
$(srcdir)/dgnushack.el
checking for latex... /usr/bin/latex
checking for available fonts... "no"
configure: creating ./config.status
config.status: creating Makefile
config.status: creating etc/Makefile
config.status: creating lisp/Makefile
config.status: creating texi/Makefile
config.status: creating texi/gnusconfig.tex
config.status: creating texi/ps/Makefile
2. How to check if I have URL and W3 package installed, and do I need to
specify --with-url=<DIR> --with-w3=<DIR> when I run ./configure.
Best regards,
Chunhua
- How to follow URL links in Gnus,
Chunhua Li <=