From: Edward O'Connor <hober0@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: url broken on CVS trunk?
Date: Fri, 16 Nov 2007 20:31:35 -0800 [thread overview]
Message-ID: <m2pry9jxw8.fsf@gmail.com> (raw)
In-Reply-To: 18238.2532.34093.161825@kahikatea.snap.net.nz
Nick Roberts <nickrob@snap.net.nz> writes:
> Tom Tromey's Emacs Lisp Package Archive has the following piece of code that
> needs to be evaluated:
>
> (let ((buffer (url-retrieve-synchronously
> "http://tromey.com/elpa/package-install.el")))
> (save-excursion
> (set-buffer buffer)
> (goto-char (point-min))
> (re-search-forward "^$" nil 'move)
> (eval-region (point) (point-max))
> (kill-buffer (current-buffer))))
Incidentally, it would be better to replace the `re-search-forward' call
with (goto-char url-http-end-of-headers).
--
Edward O'Connor
hober0@gmail.com
Ense petit placidam sub libertate quietem.
prev parent reply other threads:[~2007-11-17 4:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-16 21:21 url broken on CVS trunk? Nick Roberts
2007-11-16 22:27 ` Stefan Monnier
2007-11-16 23:07 ` Nick Roberts
2007-11-17 4:31 ` Edward O'Connor [this message]
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=m2pry9jxw8.fsf@gmail.com \
--to=hober0@gmail.com \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).