* url broken on CVS trunk?
@ 2007-11-16 21:21 Nick Roberts
2007-11-16 22:27 ` Stefan Monnier
2007-11-17 4:31 ` Edward O'Connor
0 siblings, 2 replies; 4+ messages in thread
From: Nick Roberts @ 2007-11-16 21:21 UTC (permalink / raw)
To: emacs-devel
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))))
This works fine on EMACS_22_BASE, but with Emacs on the CVS trunk it gives:
Debugger entered--Lisp error: (wrong-type-argument char-or-string-p cl-struct-url)
url-scheme-get-property(cl-struct-url loader)
url-retrieve-internal("http://tromey.com/elpa/package-install.el"...
Is something in url broken?
--
Nick http://www.inet.net.nz/~nickrob
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: url broken on CVS trunk?
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
1 sibling, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2007-11-16 22:27 UTC (permalink / raw)
To: Nick Roberts; +Cc: emacs-devel
> 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))))
> This works fine on EMACS_22_BASE, but with Emacs on the CVS trunk it gives:
> Debugger entered--Lisp error: (wrong-type-argument char-or-string-p cl-struct-url)
> url-scheme-get-property(cl-struct-url loader)
> url-retrieve-internal("http://tromey.com/elpa/package-install.el"...
> Is something in url broken?
There's been some changes in url-parse which require recompilation of
its users (i.e. basically all url*.el files). But that was months ago.
If you haven't bootstrapped in a while, then maybe that's the problem.
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: url broken on CVS trunk?
2007-11-16 21:21 url broken on CVS trunk? Nick Roberts
2007-11-16 22:27 ` Stefan Monnier
@ 2007-11-17 4:31 ` Edward O'Connor
1 sibling, 0 replies; 4+ messages in thread
From: Edward O'Connor @ 2007-11-17 4:31 UTC (permalink / raw)
To: emacs-devel
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-11-17 4:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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).