From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: url package Date: Wed, 11 Mar 2009 07:32:32 -0600 Message-ID: References: <68b99b75-6495-4023-8f79-7036be8b456b@e1g2000pra.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1236778855 26484 80.91.229.12 (11 Mar 2009 13:40:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Mar 2009 13:40:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 11 14:42:11 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LhOh2-00041a-Qj for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Mar 2009 14:41:57 +0100 Original-Received: from localhost ([127.0.0.1]:42268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhOfg-0008Eb-CF for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Mar 2009 09:40:32 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.posted.cpinternet!news.posted.cpinternet.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 11 Mar 2009 08:32:33 -0500 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) Original-Newsgroups: gnu.emacs.help,comp.emacs In-Reply-To: <68b99b75-6495-4023-8f79-7036be8b456b@e1g2000pra.googlegroups.com> Original-Lines: 47 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 64.61.220.11 Original-X-Trace: sv3-4IBUyDscR6WaP89Yg8F5vS2KYLWIajR5IxhD1krXQVNbpqw45+SpHwj6Rjx9eIhGvVtcoqS58FoSmJP!16K7k9M3GWkwoQEpeYbl+PiHxYNuP0GV+qizZ6dh6H4P86h0ZTjPV9tD5Un31j+985Ir1giNkI/4!qn+TnWeRO1FofLj0Ng== Original-X-Complaints-To: abuse@cpinternet.com X-DMCA-Complaints-To: abuse@cpinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:167516 comp.emacs:97999 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62833 Archived-At: Xah Lee wrote: > On Mar 7, 4:28 pm, "B. T. Raven" wrote: >> Johan Bockgård wrote: >>> "B. T. Raven" 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 >>> autoloaded) >> 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 C-fhttp://en-us.www.mozilla.com/en-US/firefox/about/ >> I get an empty buffer named c:/en-us.www.mozilla.com/en-US/firefox/about/ >> >> 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 >> page? > > 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 > http://xahlee.org/emacs/elisp_perl_wrapper.html > > 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. > > Xah > ∑ http://xahlee.org/ > > ☄ 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.