[Top][All Lists]

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

Re: url package

From: B. T. Raven
Subject: Re: url package
Date: Wed, 11 Mar 2009 07:32:32 -0600
User-agent: Thunderbird (Windows/20081209)

Xah Lee wrote:
On Mar 7, 4:28 pm, "B. T. Raven" <address@hidden> wrote:
Johan Bockgård wrote:
"B. T. Raven" <address@hidden> writes:
A web site claims that by merely loading this package you can C-x C-f
on a Url and have its html code loaded into a buffer. I get a new
buffer with the name of the html file that would be listed by clicking
on View > Page Source in Firefox but the buffer is empty. What else
has to be done besides M-x load-library url before opening a buffer
with the url's source?
M-x url-handler-mode (load-library is not needed since the function is
Thanks, Johan, but it still doesn't work as advertised, at least not on
w32 version 22.1
M-x browse-url-at-point brings up the web page in Firefox and
View>PageSource shows the code, but if I try C-x 
I get an empty buffer named c:/

Then I tried other web pages and some filled the buffer with html and
others didn't. Shouldn't there be some minimal block of html code on any

haven't tried the package you mentioned. However, i it's very easy to
implement what you want, in about 10 min.

you can call several external programs such as linx, w3, wget, curl,
GET, to fetch the the source of a url, then create a buffer and insert
it there. Just wrap it with shell-command-on-region. I think the
following tutorial covers it exactly:

• Elisp Wrapper For Perl Scripts

a pure elisp solution is also easy. Just call one of those elisp
packages that fetchs stuff over network. e.g. look at the installation
instruction in ljupdate mode.

Getting the url for the input of fetch is easy, by thing-at-point.


Thanks, Xah. My understanding of Emacs is still quite retarded and so I want to keep it simple and stick with what comes out of the box in vanilla Emacs, at least for now.

reply via email to

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