(url-generic-parse-url): Use with-temp-buffer.
[bpt/emacs.git] / lisp / url / ChangeLog
1 2006-11-15 Magnus Henoch <mange@freemail.hu>
2
3 * url-parse.el (url-generic-parse-url): Use with-temp-buffer.
4
5 2006-11-15 Shun-ichi GOTO <gotoh@taiyo.co.jp> (tiny change)
6
7 * url-http.el (url-http-wait-for-headers-change-function): Defer
8 detection of HTTP 0.9 until we have at least one line.
9
10 2006-11-10 Shun-ichi GOTO <gotoh@taiyo.co.jp> (tiny change)
11
12 * url-http.el (url-http-mark-connection-as-free)
13 (url-http-find-free-connection): Don't treat process with status
14 `connect' as free.
15 (url-http-async-sentinel): Request correct url.
16
17 2006-11-08 Magnus Henoch <mange@freemail.hu>
18
19 * url-http.el (url-http-handle-authentication): If there are
20 several authentication headers, use the strongest available
21 method.
22
23 * url.el (url-retrieve-synchronously): Allow quitting when
24 inhibit-quit is t.
25
26 2006-11-03 Shun-ichi GOTO <gotoh@taiyo.co.jp> (tiny change)
27
28 * url-http.el (url-http-handle-authentication): If there are
29 several authentication headers, use the first with a supported
30 method.
31
32 2006-11-01 Magnus Henoch <mange@freemail.hu>
33
34 * url-http.el (url-http-create-request): Use buffer-local
35 equivalents of dynamically bound variables.
36
37 2006-10-29 Magnus Henoch <mange@freemail.hu>
38
39 * url-gw.el (url-open-stream): Really use asynchronous
40 connections (accidentally disabled during debugging).
41
42 2006-10-28 Magnus Henoch <mange@freemail.hu>
43
44 * url-http.el (url-http-parse-headers): Fix misplaced paren.
45
46 2006-10-27 Magnus Henoch <mange@freemail.hu>
47
48 * url-http.el (url-http-mark-connection-as-free): Verify that
49 connection is open before saving it.
50 (url-http-handle-authentication): Use url-retrieve-internal
51 instead of url-retrieve.
52 (url-http-parse-headers): Adapt to new callback interface.
53 (url-http): Handle non-blocking connections.
54 (url-http-async-sentinel): Create.
55
56 * url.el (url-retrieve): Update docstring for new callback interface.
57 Remove all code.
58 (url-retrieve-internal): Move code from url-retrieve here.
59
60 * url-gw.el (url-open-stream): Use a non-blocking socket for
61 `native' gateway method, if available.
62
63 2006-10-16 Magnus Henoch <mange@freemail.hu>
64
65 * url-http.el (url-https-create-secure-wrapper): Always use tls
66 gateway method.
67
68 2006-10-12 Magnus Henoch <mange@freemail.hu>
69
70 * url-http.el (url-http-find-free-connection): Handle
71 url-open-stream returning nil.
72
73 2006-10-11 Magnus Henoch <mange@freemail.hu>
74
75 * url-https.el: Remove (clashes with url-http on 8+3 systems).
76
77 * url-http.el: Move contents of url-https.el here. Add autoloads.
78
79 2006-10-09 Magnus Henoch <mange@freemail.hu>
80
81 * url-parse.el (url-generic-parse-url): Handle URLs with empty
82 path component and non-empty query component. Untangle path,
83 query and fragment parsing code. Add references to RFC 3986 in
84 comments.
85 (url-recreate-url-attributes): Start query string with "?", not ";".
86
87 2006-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
88
89 * url-dav.el (url-dav-file-attributes): Simplify.
90
91 * url-http.el (url-http-head-file-attributes): Add device "info".
92
93 2006-09-18 Michael Olson <mwolson@gnu.org>
94
95 * url-methods.el (url-scheme-register-proxy): Handle case where
96 getenv returns an empty string for http_proxy. This prevents an
97 error when calling `format' later on.
98
99 2006-08-31 Diane Murray <disumu@x3y2z1.net>
100
101 * url-parse.el (url-recreate-url-attributes): New function, code
102 simply moved from `url-recreate-url'.
103 (url-recreate-url): Use it.
104 Put the `url-target' at the end of the URL after the attributes.
105
106 * url-http.el (url-http-create-request):
107 Use `url-recreate-url-attributes' when setting real-fname.
108
109 2006-08-29 Diane Murray <disumu@x3y2z1.net>
110
111 * url-cookie.el (url-cookie-write-file): Really don't use versioned
112 backups.
113
114 2006-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
115
116 * url-handlers.el (url-file-local-copy): Tell url-copy-file that the
117 dest file will already exist.
118
119 2006-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
120
121 * url-util.el (url-hexify-string): Only utf-8 encode if it's
122 a multibyte string.
123 (url-normalize-url): Remove unused var `grok'.
124 (url-truncate-url-for-viewing): Remove unused var `tail'.
125
126 2006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
127
128 * url-util.el (url-hexify-string): Rewrite.
129 Suggested by David Smith <davidsmith@acm.org>.
130
131 2006-07-12 Michael Olson <mwolson@gnu.org>
132
133 * url-irc.el (url-irc-erc): Call erc-handle-irc-url.
134
135 2006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
136
137 * url-cookie.el: Remove spurious * in docstrings.
138 (url-cookie-write-file): Don't use versioned backups.
139 (url-cookie-host-can-set-p): Remove unused var `tmp'.
140
141 2006-07-04 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de>
142
143 * url-cookie.el (url-cookie-save-interval): Move to url-cookie group.
144 (url-cookie-write-file): Reset url-cookies-changed-since-last-save.
145
146 2006-05-12 Reiner Steib <Reiner.Steib@gmx.de>
147
148 * url-http.el (url-http-file-exists-p): Test if status is integer.
149
150 2006-05-05 Andreas Seltenreich <seltenreich@gmx.de>
151
152 * url-http.el (url-http-parse-headers): Don't reuse connection if
153 "Connection: close" header was seen.
154
155 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
156
157 * url-gw.el (url-open-stream): Don't hide errors.
158 (url-gateway-nslookup-host, url-open-telnet): Use with-current-buffer.
159
160 * url-handlers.el (url-insert): New function.
161 (url-insert-file-contents): Use it.
162
163 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
164
165 * url-handlers.el (url-handler-directory-file-name): New handler.
166 (url-file-local-copy): Plug race condition security hole.
167
168 2006-03-27 Romain Francoise <romain@orebokech.com>
169
170 * url-irc.el (url-irc-rcirc, url-irc-erc): New functions.
171 (url-irc-function): Add rcirc and ERC to the list of IRC clients.
172 Default to rcirc, since ZenIRC isn't part of Emacs.
173
174 2006-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
175
176 * url-http.el (url-http-find-free-connection): Fix braino in last fix.
177
178 2006-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
179
180 * url-http.el (url-http-find-free-connection): Don't kill the process
181 when killing the temp buffer.
182 (url-http-symbol-value-in-buffer): Massage to make it clear to the
183 byte-compiler that the function is defined.
184
185 2006-02-20 Stefan Monnier <monnier@iro.umontreal.ca>
186
187 * url.el (url-redirect-buffer): New var.
188 (url-retrieve-synchronously): Use it to follow redirections.
189
190 * url-http.el: Require `url' rather than try to autoload parts of it.
191 (url-http-find-free-connection): `url-open-stream' needs a real buffer.
192 (url-http-parse-headers): Set `url-redirect-buffer' when following
193 a redirection reply.
194
195 2006-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
196
197 * url-news.el: Move defvars out of eval-when-compile.
198 (url-news-fetch-message-id, url-news-fetch-newsgroup):
199 Use with-current-buffer.
200
201 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
202
203 * url.el (url-retrieve-synchronously): Adjust the workaround so as not
204 to stop in the middle of a redirection.
205
206 * url-vars.el (url-privacy-level): Add setter.
207
208 2006-01-05 Stefan Monnier <monnier@iro.umontreal.ca>
209
210 * url-history.el (url-history-hash-table): Initialize in declaration.
211 (url-history-parse-history): Don't reset the history.
212 (url-history-save-history): Create parent dir if necessary.
213 (url-history-save-history): Don't write the initialization of
214 url-history-hash-table into the history file.
215 (url-have-visited-url): Simplify since url-history-hash-table isn't nil.
216 (url-completion-function): Simplify.
217
218 * url-cookie.el (url-cookie-parse-file): Don't complain of missing file.
219 (url-cookie-parse-file, url-cookie-write-file, url-cookie-retrieve)
220 (url-cookie-generate-header-lines, url-cookie-handle-set-cookie)
221 (url-cookie-setup-save-timer): Remove autoload cookies.
222 They're only called from files that require url-cookie anyway.
223
224 * url-history.el (url-history-setup-save-timer)
225 (url-history-parse-history, url-history-save-history):
226 Remove autoload cookies. They're only called from url.el which requires
227 url-history anyway.
228 (url-history-parse-history): Don't complain if the file is missing.
229
230 2006-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
231
232 * url-handlers.el (url-retrieve-synchronously): Don't autoload.
233
234 * url.el (url-retrieve, url-retrieve-synchronously): Autoload.
235
236 * url-cache.el: Require `url'.
237
238 2005-12-27 Stefan Monnier <monnier@iro.umontreal.ca>
239
240 * url-cache.el (url-store-in-cache): Use save-current-buffer.
241
242 * url.el (url-configuration-directory): Don't autoload because the
243 default value needs to be computed at run-time, not dump-time.
244
245 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
246
247 * url-cookie.el (url-cookie-write-file): Create parent dir.
248
249 * url.el (url-configuration-directory): Use ~/.emacs.d if possible.
250
251 2005-12-07 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
252
253 * url-cookie.el (url-cookie-save-interval): Simplify.
254 (url-cookie-setup-save-timer): Simplify.
255
256 2005-12-04 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
257
258 * url-history.el (url-history-list): Var deleted.
259 (url-history-save-interval): Simplify.
260 (url-history-setup-save-timer): Simplify.
261
262 2005-12-01 Kim F. Storm <storm@cua.dk>
263
264 * url-history.el (url-history-track): Fix last change.
265
266 2005-12-01 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
267
268 * url-history.el (url-history-track):
269 Call url-history-setup-save-timer in :set function.
270 :type allows three alternatives.
271 (url-history-setup-save-timer): Test url-history-track.
272 * url.el (url-retrieve): Test url-history-track.
273
274 2005-11-18 Stefan Monnier <monnier@iro.umontreal.ca>
275
276 * url-http.el: Use with-current-buffer.
277 (url-http-target-url): Rename from url-http-cookies-sources.
278 (url-http-parse-headers): Use it.
279 (url-http-handle-authentication): Use subst-char-in-string.
280
281 2005-11-16 Juergen Hoetzel <emacs@hoetzel.info> (tiny change)
282
283 * url-handlers.el (url-insert-file-contents): Use the charset info
284 provided by the HTTP server, if any.
285
286 2005-10-20 CHENG Gao <chenggao@gmail.com> (tiny change)
287
288 * url-nfs.el (top level):
289 * url-handlers.el (directory-files):
290 * url-file.el (top level):
291 * url-dired.el (url-dired-minor-mode-map):
292 * url-http.el (url-http-chunked-encoding-after-change-function):
293 Remove XEmacs support.
294
295 2005-10-15 Richard M. Stallman <rms@gnu.org>
296
297 * url.el: Don't try to autoload hash table functions.
298
299 2005-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
300
301 * url-http.el (url-http-create-request): Avoid incorrect implicit
302 unibyte->multibyte conversion.
303
304 2005-09-17 Richard M. Stallman <rms@gnu.org>
305
306 * url-vars.el (url-mail-command): Don't test fboundp of `compose-mail'.
307
308 * url-mailto.el (url-mailto): Special case `mail'.
309 Don't test fboundp of `compose-mail'.
310
311 2005-09-15 Chong Yidong <cyd@stupidchicken.com>
312
313 * url-mailto.el (url-mailto): Delete mail buffer after sending
314 autogenerated mail.
315 Call `compose-mail with `new' argument if possible.
316
317 2005-09-13 Chong Yidong <cyd@stupidchicken.com>
318
319 * url-mailto.el (url-mailto): Always use a new mail buffer.
320
321 2005-09-01 Chong Yidong <cyd@stupidchicken.com>
322
323 * url-util.el (url-parse-query-string): New optional argument
324 allow-newlines allows decoding of newlines.
325
326 * url-mailto.el (url-mailto): Allow newlines in URL arguments.
327 Don't lose original "to" value when there is a "to" header.
328 Remove carriage return characters in message body.
329
330 2005-08-24 Juanma Barranquero <lekktu@gmail.com>
331
332 * url-news.el (nntp-open-tls-stream, nntp-open-ssl-stream):
333 * url-http.el (url-http-cookies-sources): Defvar at compile time.
334
335 2005-07-15 Richard M. Stallman <rms@gnu.org>
336
337 * url-http.el (url-http-parse-headers): Add :redirect arg-pair
338 when calling url-retrieve, to indicate a redirect.
339
340 * url.el (url-retrieve): The callback function can get an additional
341 keyword arg pair.
342
343 2005-07-04 Lute Kamstra <lute@gnu.org>
344
345 Update FSF's address in GPL notices.
346
347 2005-07-04 Juanma Barranquero <lekktu@gmail.com>
348
349 * url-history.el (url-history-track): Doc fix.
350 (url-history): Finish `defgroup' description with period.
351
352 * url-cookie.el (url-cookie):
353 * url-gw.el (url-gateway):
354 * url-news.el (url-news):
355 * url-vars.el (url, url-file, url-cache, url-mime, url-hairy):
356 Finish `defgroup' description with period.
357
358 2005-06-28 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
359
360 * url-http.el (url-http-create-request): Call url-recreate-url
361 in proxy case.
362
363 2005-06-27 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
364
365 * url-http.el (url-http-create-request): When computing real-fname,
366 call url-filename in both cases.
367
368 2005-06-27 Richard M. Stallman <rms@gnu.org>
369
370 * url-cookie.el (url-cookie-store): Rename arg PATH to LOCALPART.
371 (url-cookie-retrieve): Likewise.
372 (url-cookie-generate-header-lines): Likewise.
373 (url-cookie-handle-set-cookie): Likewise.
374 (url-cookie-create): Expect :localpart instead of :path.
375 (url-cookie-localpart): Renamed from url-cookie-path.
376 (url-cookie-set-localpart): Renamed from url-cookie-set-path.
377 (url-cookie-file): Doc fix.
378 (url-cookie-p): Add doc string.
379
380 2005-06-23 Richard M. Stallman <rms@gnu.org>
381
382 * url-cookie.el (url-cookie-generate-header-lines): Fix autoload cookie.
383
384 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
385
386 * url-gw.el (url-open-stream):
387 * url-vars.el (url-gateway-unplugged): Fix spellings.
388
389 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
390
391 * url-history.el (url-completion-function): Follow error
392 conventions.
393
394 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
395
396 * url-file.el (url-file, url-file-asynch-callback): with-current-buffer.
397
398 2005-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
399
400 * url-dav.el: Remove most autoload cookies.
401 Don't hook into the url-file-handler since it currently breaks all
402 non-HTTP URLs.
403
404 * url-handlers.el (vc-registered): Explicitly disable VC for URL files.
405
406 * url.el (url-retrieve-synchronously): Don't exit precipitously when
407 fetching a file via ange-ftp.
408
409 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
410
411 * url-cookie.el (url-cookie-multiple-line): Fix spelling in docstring.
412
413 2005-05-19 Juanma Barranquero <lekktu@gmail.com>
414
415 * url-cookie.el (url-cookie-multiple-line):
416 Specify group and type in defcustom.
417
418 2005-05-06 Juanma Barranquero <lekktu@gmail.com>
419
420 * url-auth.el (url-register-auth-scheme):
421 * url-cookie.el (url-cookie-expired-p):
422 * url-dav.el (url-dav-process-date-property)
423 (url-dav-process-boolean-property, url-dav-process-DAV:status):
424 * url-http.el (url-http-chunked-encoding-after-change-function)
425 (url-http-wait-for-headers-change-function):
426 * url-ns.el (isInNet):
427 * url-parse.el (url-generic-parse-url):
428 * url-util.el (url-get-normalized-date): Replace `string-to-int'
429 by `string-to-number'.
430
431 2005-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
432
433 * url.el (url-retrieve-synchronously): Work around the fact that
434 url-http sometimes doesn't call the callback.
435
436 2005-04-04 Lute Kamstra <lute@gnu.org>
437
438 * url-handlers.el (url-handler-mode): Specify :group.
439
440 2005-02-26 James Cloos <cloos@jhcloos.com> (tiny change)
441
442 * url-history.el (url-have-visited-url): Don't barf if
443 url-history-hash-table is nil.
444
445 2005-02-14 Michael Welsh Duggan <md5i@cs.cmu.edu>
446
447 * url-http.el (url-http-parse-headers): Test url-automatic-caching.
448
449 2005-01-22 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
450
451 * url-http.el (url-http-parse-headers) <302>: Reset url-http-data
452 to nil, like for the 303 response.
453
454 2005-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
455
456 * url.el (url-retrieve-synchronously): Use accept-process-output rather
457 than sit-for.
458
459 2005-01-03 Klaus Straubinger <ksnetz@arcor.de> (tiny change)
460
461 * url-http.el (url-http-handle-authentication):
462 Don't kill the current buffer.
463
464 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
465
466 * url-handlers.el: Don't `require' everything eagerly.
467
468 2004-11-30 Paul Pogonyshev <pogonyshev@gmx.net>
469
470 * url-http.el (url-http-handle-cookies): Bind `url-current-object'
471 to `url-http-cookies-sources' so that cookies are attributed to
472 proper domain.
473 (url-http): Make local variable `url-http-cookies-sources'.
474
475 2004-11-28 Andreas Schwab <schwab@suse.de>
476
477 * url-http.el (url-http-create-request): Don't add newline after
478 the request data.
479
480 2004-11-20 Masatake YAMATO <jet@gyve.org>
481
482 * url.el (url-mm-callback): Delay the invocation
483 of `mm-destroy-parts'. Invoke `mm-destroy-parts'
484 when the buffer is killed.
485
486 2004-11-12 Masatake YAMATO <jet@gyve.org>
487
488 * url-mailto.el (url-mailto): Fix a typo in the comment.
489
490 2004-11-02 Masatake YAMATO <jet@gyve.org>
491
492 * url-imap.el (url-imap-open-host): Don't use
493 `string-to-int'. The port returned by `url-port'
494 is expected to be an integer.
495
496 * url-irc.el (url-irc): Ditto.
497
498 * url-news.el (url-news-open-host): Ditto.
499
500 * url-nfs.el (url-nfs-build-filename): Ditto.
501
502 2004-10-20 John Paul Wallington <jpw@gnu.org>
503
504 * url-gw.el (url-gateway-nslookup-host):
505 Use `set-process-query-on-exit-flag'.
506
507 2004-10-10 Lars Hansen <larsh@math.ku.dk>
508
509 * url-auth.el:
510 * url-cache.el:
511 * url-cid.el:
512 * url-dired.el:
513 * url-expand.el:
514 * url-ftp.el:
515 * url-gw.el:
516 * url-imap.el:
517 * url-irc.el:
518 * url-misc.el:
519 * url-news.el:
520 * url-ns.el:
521 * url-privacy.el:
522 * url-proxy.el: Update header and footer.
523
524 * url-vars.el: Update header.
525
526 2004-10-16 Richard M. Stallman <rms@gnu.org>
527
528 * url.el (url-do-setup): Don't set url-passwd-entry-func.
529
530 * url-vars.el (url-passwd-entry-func): Var deleted.
531 (mm-mime-mule-charset-alist): Remove compatibility code for old Gnus.
532 (url-weekday-alist): Rename from weekday-alist.
533 (url-monthabbrev-alist): Rename from monthabbrev-alist.
534 (url-vars-unload-hook): Initialize hook var to hold the function.
535
536 * url-util.el (url-get-normalized-date): Use url-weekday-alist and
537 url-monthabbrev-alist.
538
539 * url-misc.el: Load cl at compile time.
540
541 * url-mailto.el: Don't load cl.
542 (url-mailto): Fix call to `push'.
543
544 * url-gw.el (url-open-telnet): Use read-passwd.
545
546 * url-auth.el (url-basic-auth, url-digest-auth): Use read-passwd.
547
548 2004-10-12 Simon Josefsson <jas@extundo.com>
549
550 * url-vars.el (url-gateway-method): Add new method `tls'.
551
552 * url-news.el (url-snews): Use nntp-open-tls-stream if
553 url-gateway-method is tls.
554
555 * url-ldap.el (url-ldap-certificate-formatter):
556 Use tls-certificate-information if ssl.el is not available.
557
558 * url-https.el (url-https-create-secure-wrapper): Use tls if ssl
559 is not available.
560
561 * url-gw.el (url-open-stream): Support tls url-gateway-method.
562 (url-open-stream): Likewise.
563
564 2004-10-10 Lars Hansen <larsh@math.ku.dk>
565
566 * url-auth.el:
567 * url-cache.el:
568 * url-cookie.el:
569 * url-dired.el:
570 * url-file.el:
571 * url-ftp.el:
572 * url-handlers.el:
573 * url-history.el:
574 * url-irc.el:
575 * url-mailto.el:
576 * url-methods.el:
577 * url-misc.el:
578 * url-news.el:
579 * url-nfs.el:
580 * url-parse.el:
581 * url-privacy.el:
582 * url-vars.el:
583 * url.el:
584 * url-util.el: Fix copyright notice.
585
586 2004-10-06 Stefan Monnier <monnier@iro.umontreal.ca>
587
588 * url-handlers.el (url-insert-file-contents): Use the URL to decide the
589 encoding, not the buffer-file-name (which might not even exist).
590
591 2004-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
592
593 * url-handlers.el (url-insert-file-contents): Decode contents.
594
595 2004-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
596
597 * url-util.el (url-debug): Use with-current-buffer.
598
599 * url-nfs.el (url-nfs-file-attributes): Add id-format parameter.
600 (url-nfs-create-wrapper): Use new backquote syntax.
601
602 * url-https.el (url-https-file-attributes): Add id-format param.
603
604 * url-http.el (url-http-head-file-attributes)
605 (url-http-file-attributes): Add id-format parameter.
606
607 * url-handlers.el: Use new find-file-hook.
608 (url-file-attributes): Add id-format parameter.
609
610 * url-file.el (url-file-create-wrapper): Use new backquote syntax.
611 (url-file-file-attributes): Add id-format parameter.
612
613 * url-dav.el: Use with-current-buffer.
614 (url-dav-process-response): Fix regexps and spurious quote.
615 (url-dav-file-attributes): Add id-format param.
616
617 2004-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
618
619 * url.el (url-retrieve): Use with-current-buffer.
620
621 * url-http.el (url-http-parse-headers, url-http-file-exists-p):
622 Remove unused var `version'.
623
624 * url-handlers.el (url-handler-mode): New minor mode.
625 (url-setup-file-name-handlers): Remove.
626
627 2004-04-12 John Paul Wallington <jpw@gnu.org>
628
629 * url-cookie.el (url-cookie-handle-set-cookie): Replace calls
630 to obsolete `assoc-ignore-case' with calls to `assoc-string'.
631
632 2004-04-11 Dave Love <fx@gnu.org>
633
634 * url-mailto.el (url-mailto):
635 * url-history.el (url-history-setup-save-timer):
636 * url-cookie.el (url-cookie-setup-save-timer): Avoid warnings.
637
638 * url-file.el (url-file-build-filename): Don't use
639 directory-sep-char.
640
641 * url-auth.el (url-register-auth-scheme): Fix `format' call.
642
643 * url-about.el (url-scheme-registry): Defvar.
644 (url-about): Use text/plain.
645
646 * url-vars.el (cl): Don't require.
647 (url): Add :version.
648 (url-bug-address): Use bug-gnu-emacs.
649
650 * url-util.el (url-hexify-string): Don't give multibyte error
651 for char <16.
652 (mail-header-extract): Autoload.
653
654 * url-parse.el: Doc fixes.
655
656 * url-ldap.el (ldap): Require.
657 (url-ldap): Fix `format' call.
658 (url-ldap-certificate-formatter): Avoid warning.
659
660 * url-https.el (url-https-create-secure-wrapper): Use modern backquotes.
661
662 * url-dav.el (url-dav-rename-file): Fix args of `signal'.
663 (url-intersection): New.
664 (url-dav-supported-p): Use it.
665 (url-dav-save-resource): Declare url-http-response-status special.
666
667 * url-cache.el (url-util): Require.
668
669 2004-04-10 Miles Bader <miles@gnu.org>
670
671 RCS keyword removal (only non-comment changes are enumerated here):
672
673 * url-vars.el (url-version): Use the constant string "Emacs"
674 instead of calculating something from the RCS `State' keyword
675 [the latter is almost entirely useless anyway].
676
677 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
678
679 * url-methods.el:
680 * url-parse.el: Don't require url-auto.
681
682 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
683
684 * url: Imported the URL package from its own CVS repository into Emacs.
685
686 ===========================================================================
687 ===========================================================================
688 Copy of the ChangeLog file from URL's own CVS repository:
689 ===========================================================================
690 ===========================================================================
691
692 2003-07-16 Dave Love <fx@gnu.org>
693
694 * lisp/url.el (url-retrieve-synchronously): Revert last change.
695 Should be revisited.
696
697 2003-06-26 Sam Steingold <sds@gnu.org>
698
699 * lisp/url-handlers.el (url-handlers-create-wrapper): Do not call
700 method on invalid urls.
701
702 2003-05-29 Dave Love <fx@gnu.org>
703
704 * lisp/url.el (url-retrieve-synchronously): Use sleep-for, not
705 sit-for. From monnier@gnu.org.
706
707 2002-11-04 Walter C. Pelissero <walter@pelissero.org>
708
709 * lisp/url-methods.el (url-scheme-register-proxy): Make sure to convert
710 port numbers to integers when creating the URL objects for proxies.
711
712 2002-10-29 William M. Perry <wmperry@gnu.org>
713
714 * lisp/url-http.el (url-http-parse-headers): When doing a
715 redirect, some broken software (sourceforge) sends a redirect to
716 '/', which is blatantly illegal (see section 14.30 of the HTTP/1.1
717 specification). I wish we could deal with such lame software
718 appropriately (spank the authors), but this is the web, so we have
719 to kow-tow to the servers.
720
721 2002-10-27 William M. Perry <wmperry@gnu.org>
722
723 * lisp/url-http.el (url-http-create-request): If we are talking to
724 the default port for a the selected protocol, do NOT send the port
725 in the HOST header. This fixes the login page at sourceforge.
726
727 2002-09-17 William M. Perry <wmperry@gnu.org>
728
729 * lisp/url-http.el (url-http-handle-cookies): New function to deal
730 with cookie headers.
731 (url-http-parse-headers): Call `url-http-handle-cookies' here so
732 that cookie additions and deletions get handled immediately.
733 This is so that sites that set cookies while doing redirects
734 (my.yahoo.com, outlook web access, etc) work. This should also
735 fix sites that delete cookies on invalid access or other error
736 pages the user might not actually see.
737 (url-http-parse-headers): Silently convert non-HEAD and non-GET
738 methods to GET in redirects. Too many web sites do this now, and
739 it is just likely to confuse users.
740
741 2002-05-17 Dave Love <fx@gnu.org>
742
743 * texi/url.txi: Start making it vaguely useful.
744
745 * texi/Makefile.in (install): Cope with Debian install-info.
746 From Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann).
747
748 2002-04-22 Dave Love <fx@gnu.org>
749
750 * lisp/url-misc.el (man): Autoload to avoid warning.
751 (url-man): Don't require man here.
752 (url-data): Generalize in line with the RFC.
753
754 * lisp/url-gw.el (url-open-stream): Remove obsolete `tcp' case.
755
756 * lisp/url-vars.el: Doc fixes.
757 (url-mime-charset-string): New function.
758 (url-mime-charset-string): Use it to set the variable.
759 (url-set-mime-charset-string): New function.
760 (set-language-environment-hook): Use it.
761 (url-vars-unload-hook): New function.
762
763 * lisp/url-cookie.el (url-header-comparison): Delete.
764 (url-cookie-handle-set-cookie): Use assoc-ignore-case to avoid assoc*.
765 (url-cookie-save-interval): Make value agree with doc.
766
767 * lisp/url.el: Doc fixes.
768 (url-mm-callback): Don't call mm-destroy-parts immediately for
769 external viewing -- set up a process sentinel.
770
771 2002-02-02 William M. Perry <wmperry@gnu.org>
772
773 * lisp/Makefile.in (SOURCES): Remove mule-sysdp.el from the build rules.
774
775 2001-12-12 William M. Perry <wmperry@gnu.org>
776
777 * lisp/url-vars.el (url-nonrelative-link): Patch from Stefan
778 Monnier to use ` instead of ^ to match the relative link.
779
780 2001-12-10 William M. Perry <wmperry@gnu.org>
781
782 * lisp/url-dav.el (url-dav-file-attributes): Fix bad call to
783 plist-get (reversed args).
784
785 * lisp/url-file.el (url-file-build-filename): Make sure that we
786 have a parsed URL in this function.
787
788 2002-01-22 Dave Love <fx@gnu.org>
789
790 * lisp/url-cache.el (url-cache-file-writable-p): Doc fix.
791
792 * lisp/url-imap.el (url-imap): Maybe disable multibyte.
793 Bind coding-system-for-read. Require mm-util.
794
795 * lisp/url.el (url-do-setup): Use (featurep 'xemacs).
796
797 * lisp/mule-sysdp.el: Removed (obsolete).
798
799 2001-12-09 William M. Perry <wmperry@gnu.org>
800
801 * lisp/url-dav.el (url-dav-delete-something): Utility macro to
802 remove an arbitrary resource.
803 (url-dav-delete-directory): Use it.
804 (url-dav-delete-file): Ditto.
805 (url-dav-make-directory): New function.
806 (url-dav-rename-file): New function.
807 (url-dav-register-handler): New function to easily register a
808 WebDAV-specific file-name-handler operation.
809 (url-dav-file-name-all-completions, url-dav-file-name-completion):
810 New functions that allow file-name completion for WebDAV resources.
811
812 2001-12-08 William M. Perry <wmperry@gnu.org>
813
814 * lisp/url-dav.el (url-dav-directory-files): New function to
815 mimic `directory-files' for WebDAV.
816 (url-dav-delete-directory): New function to mimic
817 `delete-directory' for WebDAV.
818
819 2001-12-06 William M. Perry <wmperry@gnu.org>
820
821 * lisp/url-dav.el (url-dav-process-DAV:locktoken): Parse the
822 DAV:locktoken hrefs into a usable format.
823 (url-dav-process-response): Use an unwind-protect to make sure
824 that we clean up the buffer, even if there is a parsing error.
825 (url-dav-request): New function to act as the main entry point for
826 making DAV requests. Takes care of building the XML document with
827 appropriate namespaces, depth, etc, and parses the results.
828 (url-dav-get-properties): Use new url-dav-request function.
829 This is now just a thin wrapper around that to use PROPFIND and set any
830 extra properties we are looking for.
831 (url-dav-unlock-resource): New function to release a lock given a
832 URL and a lock-token.
833 (url-dav-process-DAV:getlastmodified)
834 (url-dav-process-DAV:creationdate)
835 (url-dav-process-DAV:iscollection)
836 (url-dav-process-DAV:ishidden): Fix typos! Its url-dav-*, not
837 url-dave-*!
838 (url-dav-active-locks): New function to get a list of all the
839 active locks for a resource.
840 (url-dav-save-resource): New function to actually save a resource
841 using the PUT method. I can now successfully save files to an
842 HTTP server with some manual steps from a lisp-interaction buffer.
843
844 * lisp/url-http.el (url-http-wait-for-headers-change-function):
845 Special case the 204/205 response codes. Some servers do not
846 send back a 0 content-length for these, and we would hang.
847 (url-http-parse-headers): Mark 204/205 response codes as
848 'successful' so that the callbacks get activated.
849 (url-http-options): Fix unbound variable usage.
850
851 * lisp/url-dav.el: Added full copyright information.
852 (url-dav-process-response): Make sure that we create a DAV:status
853 property when parsing a singleton response.
854 (url-dav-file-attributes): If the properties returned did not have
855 a succesful HTTP response code, then ignore them and use the
856 HEAD-based attributes.
857
858 * lisp/vc-dav.el: Added full copyright information.
859
860 * lisp/url-dav.el (url-dav-process-supportedlock-property):
861 Deal with text nodes in DAV:supportedlock nodes.
862 (url-dav-file-attributes-mode-string): This now gets the entire
863 property list instead of just the DAV:supportedlock node.
864 (url-dav-file-attributes): Make sure to pass the whole list in.
865 (url-dav-file-attributes-mode-string): Now properly sets do 'd' mode.
866 (url-dav-file-attributes-mode-string): Now uses the Apache mod_dav
867 'executable' bit to set the 'x' mode. See `mod_dav's custom
868 properties' at http://www.webdav.org/mod_dav/ for more details.
869 (url-dav-find-parser): New function to find the proper parser for
870 a node-type. Looks for
871 url-dav-process-XXX (url-dav-process-DAV:prop), otherwise falls
872 back to using url-dav-node-text. Caches the results on the nodes
873 symbol name.
874 (url-dav-dispatch-node): Utility routine to call a nodes handler easily.
875 (url-dav-process-*): Rename most of the handlers and made them
876 use url-dav-dispatch-node where appropriate.
877 (url-dav-process-DAV:prop): Instead of using the dav-data-type
878 property to dispatch the node, now uses dav-dispatch-node so that
879 it is easy to add parsers for special nodes.
880 (url-dav-process-DAV:depth, url-dav-process-DAV:resourcetype)
881 (url-dav-process-DAV:locktype, url-dav-process-DAV:lockscope)
882 (url-dav-process-DAV:getcontentlength)
883 (url-dave-process-DAV:getlastmodified)
884 (url-dave-process-DAV:creationdate)
885 (url-dave-process-DAV:iscollection)
886 (url-dave-process-DAV:ishidden): Aliases for the generic
887 url-dav-process-foo-property routines.
888 (url-dav-process-DAV:activelock)
889 (url-dav-process-DAV:lockdiscovery): Can now correctly parse
890 DAV:lockdiscovery nodes, so that we can find out who has a
891 resource locked and properly parse the reponse to a LOCK request.
892 (url-dav-process-DAV:status): Now parses ou the numeric status
893 from the HTTP response line.
894 (url-dav-process-response): New function to handle all the
895 parsing of an XML response from WebDAV. This handles all the
896 logic of checking the response content-type to make sure it is
897 XML, parses the tree, and interprets the tree.
898 (url-dav-process-response): Make sure that all responses look
899 like a DAV:multistatus response, even if we get a singleton
900 response back. This will just make the upper layer logic simpler.
901 (url-dav-get-properties): New optional argument NAMESPACES that
902 specifies what namespaces to use in the XML request.
903 (url-dav-get-properties): Got rid of the D: namespace in
904 requests. It doesn't save that much space. Just use DAV:
905 (url-dav-lock-identifier): New variable that should hold a URI
906 pointing to contact information for the user. This will be used
907 as the contents of the DAV:owner/DAV:href tag to identify the
908 owner of a LOCK when requesting it. This will be shown to other
909 users when the DAV:lockdiscovery property is requested, so make
910 sure you are comfortable with it leaking to the outside world.
911 (url-dav-lock-resource): New function to LOCK a dav resource.
912
913 2001-12-05 William M. Perry <wmperry@gnu.org>
914
915 * lisp/url-dav.el (url-dav-get-properties): New argument
916 ATTRIBUTES that allows you to ask for specific properties instead
917 of getting all properties via DAV:allprop.
918
919 * lisp/url-http.el (url-http-real-basic-auth-storage):
920 New variable for normal HTTP basic authentication.
921 (url-http-proxy-basic-auth-storage): New variable for HTTP proxy
922 basic authentication.
923 (url-http-handle-authentication): Follow new semantics for
924 url-basic-auth-storage.
925
926 * lisp/url-auth.el (url-basic-auth-storage): Change meaning of
927 this variable. It is now a symbol pointing to where we really
928 want to store the authorization information. This fixes proxy
929 auth and normal basic auth because of some local bindings that were
930 making it impossible to store the credentials in the global binding.
931 (url-basic-auth): Make sure we dereference url-basic-auth-storage
932 everywhere.
933
934 * lisp/url-util.el (url-debug): Add new types 'dav and
935 'retrieval to the customization list.
936
937 * lisp/url.el (url-retrieve-synchronously): Put in some debugging
938 statements.
939
940 * lisp/url-http.el (url-http-head-file-attributes): Rename old
941 url-http-file-attributes so that we can have a smarter one that
942 tries WebDAV first, then HEAD.
943 (url-http-file-attributes): New smart version that tries WebDAV first.
944 (url-http-options): New function that returns information gleaned
945 from an OPTIONS request for a URL. Returns a property list
946 returning the methods supported for the resource, what DAV and
947 DASL levels are supported, p3p information, and whether
948 byte-ranges are supported or not.
949 (url-http-wait-for-headers-change-function): If we got a 0-byte
950 content-length, activate the callback immediately.
951 (url-http-wait-for-headers-change-function): For content-length
952 responses with actual body-data in the chunk we are handling, call
953 url-http-content-length-after-change-function with the remaining
954 data. Otherwise we can deadlock if the headers and the entire
955 body exist arrive in one chunk.
956
957 * lisp/url-dav.el: New file to contain the WebDAV
958 (http://www.webdav.org/) implementation.
959 (url-dav-supported-p): Cheap way to figure out whether we will be
960 able to do DAV at all. We rely on the XML parser expanding
961 namespaces for us, and currently you need a patched version of
962 xml.el to do this. Patch sent to author for consideration.
963 (url-dav-file-attributes): Much more complete version of
964 `file-attributes' using the WebDAV PROPFIND method. Now correctly
965 finds out whether something is a directory (a WebDAV collection),
966 the last modification time, and permissions (based on the
967 DAV:supportedlock information).
968 (url-dav-get-properties): Generic interface to get WebDAV
969 properties for a URL. Can specify an optional `depth' parameter
970 to tell the web server how many directory (collection) levels to
971 recurse when retrieving the property lists. Returns an assoc
972 list keyed off of the resource, the cdr of which is a property list.
973 (url-dav-datatype-attribute): We support the XML-Data note
974 (http://www.w3.org/TR/1998/NOTE-XML-data) to figure out what the
975 datatypes of attributes are. Currently only date, dateTime, int,
976 number, float, boolean, and uri are supported.
977
978 2001-12-04 William M. Perry <wmperry@gnu.org>
979
980 * lisp/url-handlers.el (file-name-absolute-p): New hooked
981 version. If the filename matches our regexp, then it is always
982 absolute, so just return `t'.
983 (expand-file-name): New hooked version. If the fragment is an
984 absolute file or URL, then expand it relative to '/'.
985 (url-handler-regexp): New regexp for specific schemes that we
986 want the file-name-handlers to work off of.
987 (url-setup-file-name-handlers): Use it when installing the handlers.
988
989 * lisp/url-http.el (url-http-find-free-connection): Better logging
990 about whether we are reusing an existing connection or not.
991
992 * lisp/url-methods.el (url-scheme-register-proxy): Fix bad call
993 to string-match instead of match-string (and with reversed
994 arguments even).
995
996 * lisp/url-http.el (url-http-debug): Change to now use the
997 generic url-debug function to do the actual logging. Still a
998 separate function so that we can do our magic on the network
999 connection if the user quits while we are downloading.
1000
1001 * lisp/url-handlers.el (url-file-handler): Now logs the result of
1002 the hooked or real call.
1003
1004 * lisp/url-util.el (url-debug): New function for generic debug logging.
1005
1006 2001-11-28 William M. Perry <wmperry@gnu.org>
1007
1008 * lisp/url-imap.el (url-imap-open-host): Use backquote.
1009 (url-imap): Now switches to 'login as the imap authenticator if
1010 the URL provides a username and password.
1011
1012 * lisp/url-handlers.el (url-setup-file-name-handlers): Use cl &
1013 push to replace some strange logic in here.
1014 (url-run-real-handler): New function to run the real hooks in
1015 case we get a false positive or an operation that we do not
1016 support. The old way disabled _ALL_ file-name-handlers when
1017 we hit something we didn't understand - this disables JUST us.
1018 (url-file-handler): Remove the logic about removing the leading
1019 '/' off of the first argument... it may not be safe to always
1020 assume that the first argument is the one we are acting on -
1021 `default' is the second argument for expand-file-name for example.
1022 (url-setup-file-name-handlers): Use url-nonrelative-link
1023 directly. This means that you must type in the URL directly
1024 without prefixing it with a '/'.
1025
1026 (gnus-cache-articles-in-group "nnml+mail:comp.emacs-devel")
1027
1028 Ends up calling (expand-file-name "nnml+mail:comp.emacs-devel" ...)
1029 which activates us (because 'nnml+mail' _is_ a valid scheme name
1030 for a URI). We get thoroughly confused and end up returning
1031 `nil' when we shouldn't.
1032
1033 2001-11-26 William M. Perry <wmperry@gnu.org>
1034
1035 * lisp/url-handlers.el (file-writable-p): Add NULL handler for
1036 this so that visiting a URL directly will work.
1037 (file-symlink-p): Ditto.
1038 (url-insert-file-contents): If `visit' is non-nil then make sure
1039 we set buffer-file-name. After these changes you can visit
1040 http://www.gnu.org/ directly from the minibuffer.
1041 (url-insert-file-contents): When inserting the file contents,
1042 use a save-excursion so that we behave just like the original.
1043
1044 2001-11-25 William M. Perry <wmperry@gnu.org>
1045
1046 * lisp/url-util.el (url-hexify-string): Fix bad use of mapconcat.
1047
1048 2001-11-24 William M. Perry <wmperry@gnu.org>
1049
1050 * lisp/url-about.el (url-about): New loader scheme to handle
1051 about:foo URLs. Automatically tries to find a `url-about-foo'
1052 function to display the actual data.
1053 (url-about-protocols): Implement about:protocols
1054
1055 * lisp/url-http.el (url-http): Make sure that we signal an error
1056 when we cannot open a network connection for whatever reason.
1057 Before, it would just silently clean up after itself and the user
1058 got absolutely no indication that an error had occured. If the
1059 error should truly be ignored, the caller should do that for us.
1060 (url-http-chunked-encoding-after-change-function): Doh! Need to
1061 user marker-position in some log messages now that
1062 url-http-chunked-start is a marker.
1063
1064 2001-11-22 William M. Perry <wmperry@gnu.org>
1065
1066 * lisp/url-https.el: Fixed definition of url-https - was using the
1067 wrong signature. Too much cut & paste.
1068 (url-https-create-secure-wrapper): Fix so that url-https works
1069 at all. Was not taking a null `method' into account when calling
1070 the wrapped function so url-https tried to call url-http-nil. *sigh*
1071
1072 * lisp/url-http.el
1073 (url-http-chunked-encoding-after-change-function): Add some
1074 feedback when not debugging about what content-type and chunk # we
1075 are reading.
1076 (url-http-chunked-encoding-after-change-function): Use a marker
1077 for url-http-chunked-start so that we can safely delete the
1078 chunk-tokens instead of just marking them as invisible.
1079 (url-http-chunked-encoding-after-change-function): Actually delete
1080 the chunk-tokens. Now that we are not run from 'real'
1081 after-change functions, this is safe, and the right thing to do.
1082 Otherwise the HTML parser still saw them and inferred all sorts of
1083 bad things about the document (ie: nothing had a title!)
1084
1085 2001-11-21 William M. Perry <wmperry@gnu.org>
1086
1087 * lisp/url-http.el (url-http-debug): Document this variable.
1088 People other than I might want to use it.
1089 (url-http-debug): Put some code in here to check quit-flag
1090 directly. When the chunked encoding went into a tight spin, your
1091 Emacs would be wedged forever. This short-circuits all the
1092 after-change functions and signals an error.
1093 (url-http-debug): If url-http-debug is non-nil and non-t, then log
1094 the debug messages using `message' as well as sending them to the
1095 buffer.
1096 (url-http-chunked-encoding-after-change-function): Got rid of the
1097 no-initial-crlf. Had an epiphany and I can just infer this from
1098 url-http-chunked-counter being 0.
1099 (url-http-chunked-encoding-after-change-function): Move the debug
1100 statement about reading chunk #foo into the loop so that each
1101 chunk will have a log message associated with it.
1102 (url-http-chunked-encoding-after-change-function): Make sure to
1103 set read-next-chunk to nil when the regular expression match fails
1104 to fire. Otherwise we could loop forever.
1105 (url-http-chunked-encoding-after-change-function): Tweak the
1106 regular expression to be a little less greedy when looking for a chunk.
1107 (url-http-wait-for-headers-change-function): Remove the last
1108 argument when calling
1109 url-http-chunked-encoding-after-change-function. It is no longer
1110 needed. I should use my brain sometime.
1111
1112 * lisp/url-vars.el (and): Fix feature test for xemacs and
1113 coding-system-list behaviour.
1114
1115 * lisp/url-http.el
1116 (url-http-chunked-encoding-after-change-function): Add optional
1117 no-initial-crlf flag that modifies the regular expression.
1118 This is only set from url-http-wait-for-headers-change-function so that
1119 the initial CRLF in the HTTP headers is not swallowed.
1120 (url-http-chunked-encoding-after-change-function): Fix a few
1121 off-by-one errors by using (match-end 0) instead of 1.
1122 (url-http-chunked-encoding-after-change-function): Add a few
1123 url-http-debug calls to help track down problems in the chunked
1124 encoding.
1125 (url-http-chunked-encoding-after-change-function): The chunk
1126 reading in here is now in a while loop so that if Emacs feeds us a
1127 chunk of data that happens to contain more than one 'chunk'
1128 delimiter, we behave correctly.
1129 (url-http-wait-for-headers-change-function): Make sure that we
1130 pass no-initial-crlf to
1131 url-http-chunked-encoding-after-change-function when passing
1132 initial data to the decoder.
1133 (url-http-generic-filter): url-http-debug statement so we can tell
1134 when/where our after-change-functions are being called.
1135
1136 2001-10-11 Dave Love <fx@gnu.org>
1137
1138 * lisp/url-handlers.el: Doc fixes.
1139 (string-match): Use (featurep 'xemacs).
1140
1141 * lisp/url-methods.el (url-scheme-get-property): Avoid `mapc'.
1142
1143 * lisp/url-proxy.el (url-find-proxy-for-url): Avoid `pop'.
1144
1145 * lisp/url-vars.el (url-running-xemacs): Delete.
1146 (url-gateway-unplugged): New variable.
1147
1148 * lisp/url-gw.el (url-open-stream): Use url-gateway-unplugged.
1149 Comment out OS/2 stuff.
1150
1151 2001-10-05 Dave Love <fx@gnu.org>
1152
1153 * lisp/url-mailto.el (url-mailto): Don't send auto-generated mail
1154 without confirmation.
1155
1156 2001-10-02 Dave Love <fx@gnu.org>
1157
1158 * lisp/url-http.el (url-http-create-request): Check cache for
1159 proxy-obj, if defined, rather than url.
1160 (url-http): Use dolist, not mapc (runtime cl dependency).
1161
1162 * lisp/url-methods.el: Maybe require cl at runtime.
1163 (url-scheme-register-proxy): Fix fetching from environment.
1164 Don't concat a number.
1165
1166 2001-10-01 Dave Love <fx@gnu.org>
1167
1168 * lisp/url-parse.el: Use modern backquote syntax.
1169
1170 * lisp/url-vars.el (url-uncompressor-alist): Add bzip2.
1171 (url-mail-command): Prefer compose-mail.
1172 (tcp-binary-process-input-services): Comment out.
1173 (url-working-buffer): New constant.
1174
1175 * lisp/url-util.el (url-extract-mime-headers): New function.
1176
1177 * lisp/url-mailto.el (url-mailto): Set source-url. Don't add
1178 User-Agent.
1179
1180 2001-09-20 Dave Love <fx@gnu.org>
1181
1182 * lisp/url-http.el (url-http-create-request): Don't concat a number.
1183
1184 2001-06-05 Dave Love <fx@gnu.org>
1185
1186 * lisp/url.el (url-do-setup): Doc fix. Don't try to frob
1187 tcp-binary-process-input-services. Remove function wrapper for lambda.
1188 (url-retrieve): Barf with sensible message if url-type is null.
1189
1190 * lisp/url-http.el (url-http): Don't try to set process
1191 coding-system here -- done in url-gw.
1192
1193 * lisp/url-gw.el (url-gw-inhibit-code-conversion): Remove.
1194 (url-open-stream): Bind coding-system-for{read,write} when setting
1195 up the connexion. Don't call url-gw-inhibit-code-conversion.
1196
1197 2001-05-24 William M. Perry <wmperry@gnu.org>
1198
1199 * lisp/url.el (url-retrieve-synchronously): Avoid accept-process-output
1200 in url-retrieve-synchronously.
1201
1202 2001-05-23 William M. Perry <wmperry@gnu.org>
1203
1204 * lisp/url.el (url-retrieve-synchronously): Don't put a timeout on
1205 accept-process-output. This is evidently causing hangs in Emacs
1206 21 when viewing complex pages with images or stylesheets.
1207 www.yahoo.com is now viewable.
1208
1209 * lisp/url-gw.el (url-open-stream): Avoid using mule-sysdp
1210 (mule-inhibit-code-conversion) and just have a local function that
1211 does this minimal cruft.
1212 (url-gw-inhibit-code-conversion): New function to turn off code
1213 conversion in a process.
1214
1215 2001-05-22 William M. Perry <wmperry@gnu.org>
1216
1217 * lisp/url.el (url-retrieve-synchronously): Use lexical-let so
1218 that we can allow multiple asynch retrievals to happen at once.
1219 (url-retrieve-synchronously): Use a much smaller timeout when
1220 doing the accept-process-output. This gets rid of the long delays
1221 if you are on a fast net connection and retrieve small documents
1222 that finish asynchronously before the first accept-process-output
1223 can be run. All hail broadband and 100Mb in the house!
1224 (url-retrieve-synchronously): Add documentation for this function.
1225 (url-retrieve): Ditto.
1226 (url-mm-url): Ditto.
1227
1228 * lisp/url-vars.el: Replaced `HTTP/1.0' with just `HTTP' in some
1229 documentation strings. Ok, so I'm anal.
1230
1231 * lisp/url-methods.el (url-scheme-methods): Add default methods
1232 for file-directory-p and file-truename.
1233
1234 2001-05-22 Dave Love <fx@gnu.org>
1235
1236 * lisp/url-auth.el (url-warn): Autoload.
1237
1238 * lisp/url-proxy.el (url-warn): Autoload.
1239
1240 * lisp/url-nfs.el: Fix `file-truname' typo.
1241
1242 * lisp/url-news.el: Require cl when compiling.
1243 (url-warn, gnus-group-read-ephemeral-group): Autoload.
1244 (url-nntp-default-port, url-news-default-port, url-nntp): Delete.
1245 (url-news-fetch-newsgroup): Declare gnus-group-buffer special.
1246
1247 * lisp/url-util.el (mule-decode-string): Don't autoload.
1248 (url-hexify-string): Just barf on multibyte characters.
1249 (url-generate-unique-filename): New function.
1250
1251 * lisp/url-file.el (url-file): Use url-generate-unique-filename,
1252 not mm-generate-unique-filename.
1253
1254 * lisp/url-http.el: Declare things special in various places.
1255 (url-http-activate-callback): Don't set
1256 url-http-real-after-change-function.
1257
1258 2001-05-22 William M. Perry <wmperry@gnu.org>
1259
1260 * lisp/url-http.el (url-http-attempt-keepalives): New variable to
1261 control whether we try to do keep-alives for our connections.
1262 (url-http-version): New variable to control whether we advertise
1263 ourselves as an HTTP/1.1 client or not. This can be useful for
1264 avoiding chunked encoding, and other 1.1 features we may not have
1265 fully implemented yet.
1266 (url-http-create-request): Honor the new variables.
1267
1268 2001-05-21 Dave Love <fx@gnu.org>
1269
1270 * lisp/url-vars.el (mm-mime-mule-charset-alist): Don't readjust it
1271 in XEmacs.
1272 (url-mime-charset-string): Don't reverse the list before sorting.
1273
1274 2001-05-17 William M. Perry <wmperry@gnu.org>
1275
1276 * lisp/url-http.el (url-http-generic-filter): Avoid using
1277 after-change-functions natively. There are just too many ways
1278 that this screws up in Emacs 21. Use a filter function on the
1279 process instead, and call the hook on
1280 url-http-after-change-function manually. [Actually, it will work
1281 in Emacs 21, but one problem that has been fixed in Emacs 21
1282 exists in Emacs 20. -- fx]
1283
1284 * lisp/url-vars.el (url-mime-charset-string): sort-coding-systems
1285 does not exist on older versions of Emacs, or any version of
1286 XEmacs. Do not call it unless it is bound.
1287
1288 2001-05-17 Dave Love <fx@gnu.org>
1289
1290 * lisp/url-http.el (url-http-create-request): Fix non-GET requests.
1291
1292 2001-05-16 Dave Love <fx@gnu.org>
1293
1294 * lisp/url-vars.el: Doc fixes. Require mm-util.
1295 (url-mime-charset-string): New variable.
1296
1297 * lisp/url-http.el: Doc fixes.
1298 (url-http-create-request): Rearrange how we assemble the request.
1299 Avoid generating bogus requests with an empty real-fname.
1300 (url-http-handle-authentication): Declare status and success special.
1301 (url-http): Call mm-disable-multibyte. Set process buffer's
1302 coding systems to binary.
1303
1304 * lisp/url-misc.el (url-data): Call mm-disable-multibyte.
1305
1306 * lisp/url-file.el: Don't require mule-sysdp. Fix `file-truname' typo.
1307 (url-file-find-possibly-compressed-file): Doc fix.
1308 (url-file): Bind coding-system-for-read. Call mm-disable-multibyte.
1309
1310 * lisp/url-cache.el: Don't require mule-sysdp.
1311 (url-store-in-cache): Avoid mule-write-region-no-coding-system.
1312
1313 * lisp/url.el: Don't require mule-sysdp.
1314 (url-retrieve): Only set text properties if url is a string.
1315
1316 2001-05-14 Dave Love <fx@gnu.org>
1317
1318 * lisp/url-http.el (url-http-create-request):
1319 Declare proxy-object, proxy-info special.
1320 (url-http-handle-authentication): Declare success special.
1321
1322 2001-05-12 Dave Love <fx@gnu.org>
1323
1324 * lisp/url-http.el: Revert last change.
1325
1326 2001-05-10 Dave Love <fx@gnu.org>
1327
1328 * lisp/url-http.el (url-http-generic-after-change-function):
1329 Make it permanent-local.
1330
1331 2001-05-05 Dave Love <fx@gnu.org>
1332
1333 * lisp/url-http.el: Autoload some functions.
1334 (cl): Require when compiling.
1335 (url-http-extra-headers): Defvar when compiling.
1336 (url-http): Treat after-change-functions as a local hook.
1337
1338 * lisp/url-history.el (url-parse): Require.
1339 (url-do-setup): Autoload.
1340
1341 * lisp/url-gw.el: Require url-vars. Autoload some functions.
1342
1343 * lisp/url-file.el: Require mailcap. Require cl when compiling.
1344 Use (featurep 'xemacs).
1345 (url-file-build-filename): Bind pos-index.
1346 (url-file): Call url-find-file-dired, not url-dired-find-file.
1347
1348 * lisp/url-dired.el: Add copyright notice. Autoload some functions.
1349 (url-dired-minor-mode-map): Use (featurep 'xemacs).
1350 (url-dired-find-file-mouse): Use mouse-set-point, not event-point.
1351 (url-find-file-dired): Rename from one version of url-dired-find-file.
1352
1353 * lisp/url-cid.el: Don't require widget. Require mm-decode
1354 unconditionally.
1355
1356 * lisp/url-util.el: Autoload mule-decode-string,
1357 timezone-parse-date, timezone-make-date-arpa-standard.
1358 (url-unreserved-chars): Fix list per RFC 2396.
1359 (url-hexify-string): Maybe string-make-unibyte.
1360
1361 * lisp/url-news.el: Require nntp.
1362
1363 * lisp/url-imap.el: Require cl when compiling. Require nnimap
1364 unconditionally.
1365
1366 2001-05-04 Dave Love <fx@gnu.org>
1367
1368 * lisp/url-handlers.el (url-file-local-copy): Use make-temp-file,
1369 not non-existent mailcap-generate-unique-filename.
1370
1371 * lisp/url-privacy.el: Require url-vars. Require cl when compiling.
1372
1373 * lisp/url-parse.el: Require url-vars.
1374 Autoload url-scheme-get-property.
1375
1376 * lisp/url-nfs.el: Require cl when compiling. Test for XEmacs
1377 with featurep.
1378
1379 * lisp/url-mailto.el: Require cl when compiling.
1380
1381 * lisp/url-cookie.el (url-cookie-handle-set-cookie):
1382 Call url-parse-args, not url-util-parse-args.
1383
1384 * lisp/url-cache.el (url-cache-expired): Remove bogus `return'.
1385
1386 2001-04-09 Dave Love <fx@gnu.org>
1387
1388 * lisp/mule-sysdp.el (mule-detect-coding-version)
1389 (mule-code-convert-region, mule-inhibit-code-conversion)
1390 (mule-write-region-no-coding-system, mule-encode-string)
1391 (mule-decode-string, mule-truncate-string)
1392 (mule-find-charset-region, mule-coding-system-name)
1393 (mule-find-coding-system, mule-make-iso-character): Grok Mule 5.0.
1394 [There must be a better way.]
1395 (mule-coding-system-p, string-width): Use defalias.
1396
1397 2001-01-03 Sam Steingold <sds@gnu.org>
1398
1399 * lisp/url-http.el (url-http-wait-for-headers-change-function):
1400 set `url-http-end-of-headers' to 0 for HTTP 0.9
1401
1402 2001-01-02 Sam Steingold <sds@gnu.org>
1403
1404 * lisp/url-auth.el (provide): `url-auth', not `urlauth'
1405
1406 2000-12-22 Dave Love <fx@gnu.org>
1407
1408 * lisp/url-history.el (url): Don't require (to avoid recursion).
1409 (cl): Require when compiling.
1410
1411 * lisp/url-http.el (url-auth): Require.
1412 (url-http-handle-authentication): Fix typo.
1413
1414 * lisp/url-cookie.el (url-cookie-setup-save-timer): Fix typo.
1415
1416 2000-12-20 Dave Love <fx@gnu.org>
1417
1418 * lisp/url.el: Require mm-decode, mm-view when compiling.
1419 <not (fboundp 'puthash)>: Define puthash and
1420 autoload other has functions rather than using cl-...hash.
1421 (url-warn): Define.
1422
1423 * lisp/url-ns.el, lisp/url-methods.el, lisp/url-http.el:
1424 Avoid cl-...hash functions.
1425
1426 * lisp/url-history.el: Avoid cl-...hash functions.
1427 (url): Require.
1428
1429 * lisp/url-gw.el, lisp/url-cookie.el: Require cl only when compiling.
1430
1431 2000-10-03 William M. Perry <wmperry@aventail.com>
1432
1433 * lisp/url-util.el (url-get-url-at-point): Guard against 'url'
1434 getting set to nil due to bad string matching. Subsequent matches
1435 would then choke because we passed string-match a nil.
1436
1437 * lisp/url-http.el (url-http-parse-headers): Need to make the
1438 connection as 'free' when we get a 304 response (found in cache),
1439 or when a keep-alive conneection timed out, it would re-parse the
1440 headers and dispatch to the callback again. Eek.
1441
1442 2000-10-02 William M. Perry <wmperry@aventail.com>
1443
1444 * lisp/url-http.el (url-http-chunked-encoding-after-change-function):
1445 implement chunked transfer-coding.
1446 (url-http-create-request): We can now advertise ourselves as a 1.1
1447 compliant browser!
1448
1449 2000-07-28 Sam Steingold <sds@gnu.org>
1450
1451 * lisp/url-methods.el (url-scheme-default-loader): `callback' and
1452 `cbargs' are optional args (for calling from w3).
1453 (url-scheme-register-proxy): Typos fixes: `url-match' replaced
1454 with `string-match' and `protocol' with `scheme'.
1455
1456 2000-07-18 Sam Steingold <sds@gnu.org>
1457
1458 * lisp/url-handlers.el (require 'url): For url-retrieve-synchronously.
1459 * lisp/url-history.el (url-history-save-interval): Avoid circularity.
1460
1461 2000-07-10 William M. Perry <wmperry@aventail.com>
1462
1463 * lisp/mule-sysdp.el (mule-make-iso-character): If we are not in
1464 mule, and the character requested is > 255, then return "~"
1465 instead of letting whoever call us signal an error when they try
1466 to insert the character.
1467 (mule-make-iso-character): Also wrap the whole thing in a
1468 condition case and return "~" on error, in case make-char bombs on us.
1469
1470 * lisp/url-cid.el (url-cid): Fix stupid mistake in the loader
1471 for cid parts.
1472
1473 * lisp/url-util.el (url-display-percentage): New routine that uses
1474 the progress bar under XEmacs if available. Looks very sexy under
1475 XEmacs/GTK hacked to use the GNOME statusbar.
1476
1477 * lisp/url-http.el
1478 (url-http-content-length-after-change-function): Use new function
1479 url-display-percentage instead of url-lazy-message.
1480
1481 2000-01-27 William M. Perry <wmperry@aventail.com>
1482
1483 * lisp/url-file.el (url-file-build-filename): Work around for
1484 differences in ange-ftp / efs handling of port numbers other than 21.
1485
1486 1999-12-24 William M. Perry <wmperry@aventail.com>
1487
1488 * lisp/url-irc.el: Added pointer to draft specification for the
1489 IRC URL so people don't think I'm crazy.
1490
1491 * configure.in: Checks to make sure that Gnus was found, since we
1492 HAVE to have it now. Removed conditional compilation of url-cid.el
1493
1494 1999-12-16 Eric Marsden <emarsden@mail.dotcom.fr>
1495
1496 * lisp/url-util.el (url-get-url-at-point): Allow URLs wrapped in
1497 () to have periods at the end of the chunk.
1498
1499 1999-12-14 William M. Perry <wmperry@aventail.com>
1500
1501 * lisp/url-misc.el (url-man): Implement `man' URL types.
1502 (url-info): Autoload.
1503 (url-man): Ditto.
1504 (url-rlogin): Ditto.
1505 (url-telnet): Ditto.
1506 (url-tn3270): Ditto.
1507 (url-generic-emulator-loader): Ditto.
1508
1509 * lisp/url-https.el (url-https-create-secure-wrapper): New macro
1510 to wrap arbitrary `http' methods with the appropriate magic to
1511 turn SSL on.
1512 (file-exists-p): Use it.
1513 (file-readable-p): Use it.
1514 (file-attributes): Use it.
1515
1516 * lisp/url-news.el (url-news-fetch-newsgroup): When building the
1517 server spec for Gnus, make sure we set
1518 nntp-open-connection-function directly, so that other news-related
1519 functions above us can set it.
1520 (url-snews): Implement `snews' URLs using `nntp-open-ssl-stream'.
1521 (url-nntp): Autoload.
1522 (url-snews): Ditto.
1523 (url-news): Ditto.
1524
1525 1999-12-12 William M. Perry <wmperry@aventail.com>
1526
1527 * lisp/url-http.el (url-http-parse-response): New function to
1528 parse just the HTTP response code out of the buffer, without
1529 taking any other actions.
1530 (url-http-wait-for-headers-change-function): Use it here when we
1531 know we have an HTTP/1.x response.
1532 (url-http-wait-for-headers-change-function): Special case a
1533 response code of '304' or there could be some delays waiting for
1534 keep-alives to time out on cached documents with no known
1535 content-length on the server.
1536
1537 1999-12-11 William M. Perry <wmperry@aventail.com>
1538
1539 * aclocal.m4 (AC_CHECK_CUSTOMLOADS): Don't use $(EMACS) in here -
1540 the Makefile does that for us. We just need to provide what files
1541 to load/functions to run.
1542
1543 * lisp/url-imap.el (url-imap-open-host): Need to bind
1544 nnimap-server-buffer or `nnimap-open-server' chokes trying to use
1545 the current buffer as the IMAP server buffer, which fails miserably.
1546
1547 1999-12-11 Simon Josefsson <jas@pdc.kth.se>
1548
1549 * lisp/url-imap.el: Initial (rough) implementation for IMAP urls.
1550
1551 1999-12-11 William M. Perry <wmperry@aventail.com>
1552
1553 * lisp/url-file.el (url-file-asynch-callback): Make the checks for
1554 ange-ftp vs. efs calling semantics consistent, so that if someone
1555 has NEITHER of them loaded, everything should still work.
1556
1557 * lisp/url-handlers.el (url-copy-file): Autoload.
1558 (url-file-local-copy): Ditto.
1559 (url-insert-file-contents): Ditto.
1560 (url-setup-file-name-handlers): Ditto.
1561
1562 1999-12-10 William M. Perry <wmperry@aventail.com>
1563
1564 * lisp/url-http.el (mail-parse): Since we use functions from here,
1565 we should require it, eh?
1566
1567 1999-12-10 01:57:01 Shenghuo ZHU <zsh@cs.rochester.edu>
1568
1569 * lisp/url-cookie.el (url-cookie-multiple-line): One line cookie
1570 if nil.
1571 (url-cookie-generate-header-lines): Use it.
1572
1573 1999-12-06 William M. Perry <wmperry@aventail.com>
1574
1575 * lisp/mule-sysdp.el (mule-code-convert-region): Deal with Mule
1576 4.1 gracefully
1577
1578 * lisp/url-news.el: Reimplemented news and nntp URL support.
1579 No longer bothers to check for outdated Gnus versions, since this
1580 will not work without them anyway.
1581
1582 1999-12-05 Dave Love <fx@gnu.org>
1583
1584 * lisp/url-methods.el, lisp/url-proxy.el, lisp/url-util.el,
1585 lisp/url.el:
1586 Require url-parse.
1587
1588 1999-12-05 William M. Perry <wmperry@aventail.com>
1589
1590 * lisp/url-http.el (url-http-find-free-connection): Spit out a
1591 message when we have to contact a host so the user always gets
1592 at least some feedback.
1593
1594 * lisp/url-expand.el (url-expander-remove-relative-links): Moved and
1595 renamed function.
1596 (url-default-expander): Use it.
1597
1598 * lisp/url-file.el (url-file-asynch-callback): Deal with just efs-auto
1599 as well as efs.
1600 (url-file): Add default content-type of application/octet-stream if
1601 none known.
1602 (url-file): Correct bad call to url-host-is-local-p
1603
1604 * lisp/url-handlers.el (url-insert-file-contents): Emacs doesn't
1605 like buffer-substring with nil arguments.
1606 (url-copy-file): Use mm-destroy-parts instead of just killing
1607 the buffer. Use defined interfaces when available!
1608 (url-insert-file-contents): Ditto.
1609
1610 * lisp/url-http.el (url-http-create-request): Lots of changes to
1611 get proxying working.
1612
1613 * lisp/url-methods.el (url-scheme-register-proxy): New function to
1614 find and register a proxy for a specific scheme.
1615 (url-scheme-get-property): Use it when we load a URL scheme for
1616 the first time.
1617
1618 * lisp/url-util.el (url-get-url-at-point): Re-integrated
1619
1620 1999-12-04 William M. Perry <wmperry@aventail.com>
1621
1622 * lisp/url-file.el (url-file): Signal an error if
1623 url-file-build-filename could not find the filename.
1624
1625 1999-12-01 William M. Perry <wmperry@aventail.com>
1626
1627 * lisp/url.el (url-retrieve): Use url-history-update-url instead
1628 of manipulating the hash table directly.
1629
1630 * lisp/url-history.el (url-completion-function): New function to
1631 use for reading a URL with completion.
1632 (url-history-update-url): New function to hide the hashtable
1633 implementation from people inserting things into the history.
1634
1635 1999-11-30 William M. Perry <wmperry@aventail.com>
1636
1637 * lisp/url-proxy.el (url-proxy): Minor tweaks to get proxy support
1638 working.
1639
1640 * lisp/url-parse.el (url-generic-parse-url): Fix bad call to
1641 url-parse-args, which had changed the type of arguments it expects.
1642
1643 * lisp/url-handlers.el (url-insert-file-contents): Ditto.
1644 (url-copy-file): Ditto.
1645
1646 * lisp/url.el (url-mm-callback): Use mm-destroy-parts instead of
1647 just killing the buffer. Use defined interfaces when available!
1648
1649 * aclocal.m4 (AC_EMACS_LISP): Correctly redirect things out to
1650 AC_FD_CC so they show up in config.log
1651 (AC_EMACS_CHECK_LIB): Duh, fixed stupid mistake that would make
1652 this always return 't' instead of 'yes' on successfully finding
1653 the library.
1654
1655 * lisp/url-http.el (url-http-parse-headers): Add some
1656 DAV-specific error codes.
1657
1658 * lisp/url.el (url-retrieve): Allow pre-parsed URLs to be passed in.
1659 (url-retrieve-synchronously): Duh, make this function actually
1660 work again. Numerous problems with it, including variable name
1661 collisions - I love dynamically scoped lisps!
1662
1663 * lisp/url-nfs.el (url-nfs-create-wrapper): New function to create
1664 wrappers onto the appropriate file-based URLs for file-name-handlers.
1665
1666 * lisp/url-ftp.el: Moved the FTP stuff into it's own file - it
1667 might get messy with file-name-handlers and things.
1668
1669 * lisp/url-http.el (url-http-clean-headers): Fix problem when
1670 using 'HEAD' requests. Thou shalt not change the length of the
1671 region during an after-change-function.
1672
1673 * lisp/url-methods.el (url-scheme-methods): New variable that
1674 holds a list of the methods/variables we look for in a URL scheme.
1675 (url-scheme-get-property): Use it.
1676
1677 1999-11-29 William M. Perry <wmperry@aventail.com>
1678
1679 * lisp/url-http.el (url-http-file-attributes): Reimplement.
1680 (url-http-file-exists-p): Ditto.
1681
1682 * lisp/url-nfs.el: Reimplemented the `nfs' URL scheme.
1683
1684 * lisp/url-file.el (url-file-create-wrapper): New macro to create
1685 file-name-handler stubs for all the FTP/FILE stuff.
1686
1687 * lisp/url-handlers.el: New file to handle file-name-handler-alist
1688 cruft. Generic interface on top of functions that each URL
1689 loader provides, if capable.
1690
1691 1999-11-27 William M. Perry <wmperry@aventail.com>
1692
1693 * lisp/url-https.el: Implemented HTTPS support.
1694
1695 1999-11-26 William M. Perry <wmperry@aventail.com>
1696
1697 * url-privacy.el (url-setup-privacy-info): Don't rely on
1698 device-type being defined. Not going to bother redistributing
1699 devices.el for just one function.
1700
1701 * url-methods.el (url-scheme-get-property): Emacs does not have
1702 the 3rd-argument to plist-get to specify the default. *sigh*
1703
1704 * url-dired.el (add-minor-mode): Add definition for Emacs.
1705
1706 * url-http.el (url-http-generic-after-change-function):
1707 New function, since Emacs does not allow you to change the
1708 after-change-functions variable from within a function run by
1709 said hook. This just hands it off to the REAL function.
1710 Side-effect is that this now works on Emacs at all. :)
1711
1712 * Initial checkin of rewritten URL library.
1713
1714 Local variables:
1715 coding: utf-8
1716 add-log-time-zone-rule: t
1717 End:
1718
1719 ;; arch-tag: ac117078-3091-4533-be93-098162ac2926