unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "B. T. Raven" <nihil@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: url package
Date: Wed, 11 Mar 2009 07:32:32 -0600	[thread overview]
Message-ID: <HYSdnTjcJpbvICrUnZ2dnUVZ_uKWnZ2d@posted.cpinternet> (raw)
In-Reply-To: <68b99b75-6495-4023-8f79-7036be8b456b@e1g2000pra.googlegroups.com>

Xah Lee wrote:
> On Mar 7, 4:28 pm, "B. T. Raven" <ni...@nihilo.net> wrote:
>> Johan Bockgård wrote:
>>> "B. T. Raven" <ni...@nihilo.net> 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.


  reply	other threads:[~2009-03-11 13:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-07 15:53 url package B. T. Raven
2009-03-07 21:39 ` Johan Bockgård
     [not found] ` <mailman.2667.1236461978.31690.help-gnu-emacs@gnu.org>
2009-03-07 23:28   ` B. T. Raven
2009-03-09 22:56     ` Johan Bockgård
2009-03-11  0:06     ` Xah Lee
2009-03-11 13:32       ` B. T. Raven [this message]
     [not found]     ` <mailman.2796.1237105025.31690.help-gnu-emacs@gnu.org>
2009-03-17  3:49       ` B. T. Raven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=HYSdnTjcJpbvICrUnZ2dnUVZ_uKWnZ2d@posted.cpinternet \
    --to=nihil@nihilo.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).