root/trunk/lisp/url/ChangeLog

Revision 4220, 68.9 kB (checked in by miyoshi, 9 months ago)

Sync up with Emacs22.2.

Line 
1 2008-02-28  Teodor Zlatanov  <tzz@lifelogs.com>
2
3         * url-util.el (url-get-normalized-date): Simplify
4         to use `format-time-string'.  Always generate date in UTC, but
5         call it GMT for full compatibility with the RFCs.
6
7 2008-02-25  John Wiegley  <johnw@newartisans.com>
8
9         * url-auth.el (url-digest-auth): If the 'opaque' argument is not
10         being used, don't add it to the response text.
11
12 2008-01-21  Stefan Monnier  <monnier@iro.umontreal.ca>
13
14         * url-handlers.el (unhandled-file-name-directory): Add handler.
15         (url-handler-unhandled-file-name-directory): New fun.
16
17 2008-01-07  Michael Albinus  <michael.albinus@gmx.de>
18
19         * url-handlers.el (url-file-handler): Autoload.
20
21 2007-12-11  Glenn Morris  <rgm@gnu.org>
22
23         * url-util.el (url-make-private-file): New function.
24         * url-cookie.el (url-cookie-write-file):
25         * url-history.el (url-history-save-history):
26         Use url-make-private-file and with-temp-buffer.
27
28 2007-12-02  Glenn Morris  <rgm@gnu.org>
29
30         * url-news.el (nntp-open-tls-stream, nntp-open-ssl-stream):
31         No need to define for compiler.
32         (url-snews): Use nntp-open-tls-stream unless ssl is requested.
33         Correct quoting of nntp-open-connection-function value.
34
35 2007-11-28  Diane Murray  <disumu@x3y2z1.net>
36
37         * url-dired.el: Don't require w3-fetch and w3-open-local.
38         (url-dired-find-file): Use `find-file'.  Doc fix.
39         (url-dired-find-file-mouse, url-dired-minor-mode): Doc fix.
40
41 2007-11-15  Richard Stallman  <rms@gnu.org>
42
43         * url.el (url-retrieve-synchronously): Call delete-process.
44
45 2007-10-13  Richard Stallman  <rms@gnu.org>
46
47         * url-util.el (url-basepath): Function deleted.
48         (url-file-directory, url-file-nondirectory): New functions
49         replacing url-basepath.  Callers changed.
50
51         * url-expand.el (url-default-expander): Use `url-file-directory'.
52
53         * url-auth.el (url-digest-auth, url-basic-auth):
54         Rename `path' to `file'.  Use `url-file-directory'.
55
56 2007-10-12  Diane Murray  <disumu@x3y2z1.net>
57
58         * url-auth.el (url-basic-auth): Set path to "/" when URL has an
59         empty string filename.
60
61 2007-10-09  Richard Stallman  <rms@gnu.org>
62
63         * url-parse.el (url-type, url-user, url-password, url-host)
64         (url-port, url-filename, url-target, url-attributes)
65         (url-fullness, url-set-type, url-set-user, url-set-password)
66         (url-set-host, url-set-port, url-set-filename, url-set-target)
67         (url-set-attributes, url-set-full): Change macros to defuns.
68
69 2007-09-22  Diane Murray  <disumu@x3y2z1.net>
70
71         * url-misc.el (url-generic-emulator-loader): Send the port as a
72         string to `url-do-terminal-emulator'.
73
74 2007-09-21  Diane Murray  <disumu@x3y2z1.net>
75
76         * url-news.el (url-news-fetch-newsgroup): Fix formatting of Gnus
77         method.
78
79         * url-util.el (url-get-normalized-date): Pass full timezone
80         information to timezone-make-date-arpa-standard, since zone name
81         may be unknown.
82
83 2007-09-03  Diane Murray  <disumu@x3y2z1.net>
84
85         * url-http.el (url-http-parse-headers): Bind the current buffer
86         rather than calling `url-mark-buffer-as-dead' with
87         `current-buffer', so that the correct buffer is killed if
88         `url-retrieve-synchronously' gets redirected to a new URL.
89
90 2007-08-08  Glenn Morris  <rgm@gnu.org>
91
92         * url-auth.el, url-cache.el, url-dav.el, url-file.el, vc-dav.el:
93         Replace `iff' in doc-strings and comments.
94
95 2007-07-25  Glenn Morris  <rgm@gnu.org>
96
97         * Relicense all FSF files to GPLv3 or later.
98
99 2007-05-29  Chong Yidong  <cyd@stupidchicken.com>
100
101         * url-mailto.el (url-mailto): Insert body after
102         mail-header-separator if present, so that it is before signature.
103         Bug reported by Leo <sdl.web@gmail.com>.
104
105 2007-04-15  Chong Yidong  <cyd@stupidchicken.com>
106
107         * url-parse.el (url-generic-parse-url): Revert 2006-10-09 changes.
108
109 2007-04-13  Chong Yidong  <cyd@stupidchicken.com>
110
111         * url-http.el (url-http-parse-headers): Stop after a set number of
112         redirections.  Suggested by Diane Murray.
113
114         * url-vars.el (url-max-redirections): New var.
115
116 2007-04-01  Diane Murray  <disumu@x3y2z1.net>  (tiny change)
117
118         * url-http.el (url-http-handle-cookies): Reverse list returned by
119         `mail-fetch-field', so that cookies are set in the correct order.
120
121         * url-cookie.el (url-cookie-retrieve, url-cookie-host-can-set-p):
122         Deal with wildcard dots in domain values.
123
124 2007-03-31  Andreas Seltenreich  <uwi7@rz.uni-karlsruhe.de>
125
126         * url-http.el (url-http-mark-connection-as-busy)
127         (url-http-mark-connection-as-free): Clear query-on-exit flag on
128         idle connections.
129
130 2007-02-04  Chong Yidong  <cyd@stupidchicken.com>
131
132         * url-http.el (url-http-connection-opened): New variable.
133         (url-http): Initialize it.
134         (url-http-async-sentinel): Don't try changing sentinels.
135         Run url-http-end-of-document-sentinel if necessary.
136
137 2007-01-29  Juanma Barranquero  <lekktu@gmail.com>
138
139         * url-auth.el (url-get-authentication): Fix typo in docstring.
140
141 2007-01-14  Magnus Henoch  <mange@freemail.hu>
142
143         * url-proxy.el (url-proxy-object): Remove.
144         (url-proxy): Don't use `url-proxy-object'.  Act according to type of
145         proxy (currently only HTTP supported).
146
147         * url.el (url-retrieve-internal): Don't use `url-proxy-object'.
148
149         * url-http.el (url-http-proxy): New variable.
150         (url-http-create-request): Use it.  Don't use `url-proxy-object'.
151         (url-http): Treat `url' argument as resource to download, and
152         dynamic variable `url-using-proxy' as proxy to use.  Set
153         `url-current-object' to actual URL, and `url-http-proxy' to proxy
154         used.
155         (url-http-handle-cookies): Assume that `url-current-object' does
156         not point to the proxy used.
157         (url-http-async-sentinel): Adapt error message.
158
159 2006-12-10  Juanma Barranquero  <lekktu@gmail.com>
160
161         * url-gw.el (url-gateway-nslookup-program): Doc fix.
162
163 2006-12-08  Magnus Henoch  <mange@freemail.hu>
164
165         * url-proxy.el (url-proxy-object): New variable.
166         (url-proxy): Bind it instead of `proxy-object'.
167
168         * url-http.el (url-http-create-request): Remove url argument, use
169         the buffer-local variable `url-http-target-url' instead.  Both
170         callers updated.  Simplify proxy handling.
171         (url-http): Don't make proxy-object buffer local.
172
173         * url.el (url-retrieve-internal): Bind url-proxy-object to nil.
174
175 2006-11-26  Magnus Henoch  <mange@freemail.hu>
176
177         * url-http.el (url-http-wait-for-headers-change-function): Use
178         `when' instead of `if' when possible.
179         (url-http): Define url-http-response-version.
180         (url-http-parse-response): Set it.
181         (url-http-parse-headers): Use it to determine keep-alive behavior.
182
183 2006-11-23  Diane Murray  <disumu@x3y2z1.net>  (tiny change)
184
185         * url-http.el (url-http-content-length-after-change-function): Use
186         `url-lazy-message'.
187
188         * url-util.el (url-display-percentage): Only show a message if
189         `url-show-status' is non-nil.
190
191 2006-11-15  Magnus Henoch  <mange@freemail.hu>
192
193         * url-http.el (url-http): Make proxy-object buffer-local, to
194         handle proxied asynchronous connections correctly.
195
196         * url-parse.el (url-generic-parse-url): Use with-temp-buffer.
197
198 2006-11-15  Shun-ichi GOTO  <gotoh@taiyo.co.jp>  (tiny change)
199
200         * url-http.el (url-http-wait-for-headers-change-function):
201         Defer detection of HTTP 0.9 until we have at least one line.
202
203 2006-11-10  Shun-ichi GOTO  <gotoh@taiyo.co.jp>  (tiny change)
204
205         * url-http.el (url-http-mark-connection-as-free)
206         (url-http-find-free-connection): Don't treat process with status
207         `connect' as free.
208         (url-http-async-sentinel): Request correct url.
209
210 2006-11-08  Magnus Henoch  <mange@freemail.hu>
211
212         * url-http.el (url-http-handle-authentication): If there are
213         several authentication headers, use the strongest available
214         method.
215
216         * url.el (url-retrieve-synchronously): Allow quitting when
217         inhibit-quit is t.
218
219 2006-11-03  Shun-ichi GOTO  <gotoh@taiyo.co.jp>  (tiny change)
220
221         * url-http.el (url-http-handle-authentication): If there are
222         several authentication headers, use the first with a supported
223         method.
224
225 2006-11-01  Magnus Henoch  <mange@freemail.hu>
226
227         * url-http.el (url-http-create-request): Use buffer-local
228         equivalents of dynamically bound variables.
229
230 2006-10-29  Magnus Henoch  <mange@freemail.hu>
231
232         * url-gw.el (url-open-stream): Really use asynchronous
233         connections (accidentally disabled during debugging).
234
235 2006-10-28  Magnus Henoch  <mange@freemail.hu>
236
237         * url-http.el (url-http-parse-headers): Fix misplaced paren.
238
239 2006-10-27  Magnus Henoch  <mange@freemail.hu>
240
241         * url-http.el (url-http-mark-connection-as-free): Verify that
242         connection is open before saving it.
243         (url-http-handle-authentication): Use url-retrieve-internal
244         instead of url-retrieve.
245         (url-http-parse-headers): Adapt to new callback interface.
246         (url-http): Handle non-blocking connections.
247         (url-http-async-sentinel): Create.
248
249         * url.el (url-retrieve): Update docstring for new callback interface.
250         Remove all code.
251         (url-retrieve-internal): Move code from url-retrieve here.
252
253         * url-gw.el (url-open-stream): Use a non-blocking socket for
254         `native' gateway method, if available.
255
256 2006-10-16  Magnus Henoch  <mange@freemail.hu>
257
258         * url-http.el (url-https-create-secure-wrapper):
259         Always use tls gateway method.
260
261 2006-10-12  Magnus Henoch  <mange@freemail.hu>
262
263         * url-http.el (url-http-find-free-connection):
264         Handle url-open-stream returning nil.
265
266 2006-10-11  Magnus Henoch  <mange@freemail.hu>
267
268         * url-https.el: Remove (clashes with url-http on 8+3 systems).
269
270         * url-http.el: Move contents of url-https.el here.  Add autoloads.
271
272 2006-10-09  Magnus Henoch  <mange@freemail.hu>
273
274         * url-parse.el (url-generic-parse-url): Handle URLs with empty
275         path component and non-empty query component.  Untangle path,
276         query and fragment parsing code.  Add references to RFC 3986 in
277         comments.
278         (url-recreate-url-attributes): Start query string with "?", not ";".
279
280 2006-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
281
282         * url-dav.el (url-dav-file-attributes): Simplify.
283
284         * url-http.el (url-http-head-file-attributes): Add device "info".
285
286 2006-09-18  Michael Olson  <mwolson@gnu.org>
287
288         * url-methods.el (url-scheme-register-proxy): Handle case where
289         getenv returns an empty string for http_proxy.  This prevents an
290         error when calling `format' later on.
291
292 2006-08-31  Diane Murray  <disumu@x3y2z1.net>  (tiny change)
293
294         * url-parse.el (url-recreate-url-attributes): New function, code
295         simply moved from `url-recreate-url'.
296         (url-recreate-url): Use it.
297         Put the `url-target' at the end of the URL after the attributes.
298
299         * url-http.el (url-http-create-request):
300         Use `url-recreate-url-attributes' when setting real-fname.
301
302 2006-08-29  Diane Murray  <disumu@x3y2z1.net>  (tiny change)
303
304         * url-cookie.el (url-cookie-write-file): Really don't use versioned
305         backups.
306
307 2006-08-25  Stefan Monnier  <monnier@iro.umontreal.ca>
308
309         * url-handlers.el (url-file-local-copy): Tell url-copy-file that the
310         dest file will already exist.
311
312 2006-07-31  Stefan Monnier  <monnier@iro.umontreal.ca>
313
314         * url-util.el (url-hexify-string): Only utf-8 encode if it's
315         a multibyte string.
316         (url-normalize-url): Remove unused var `grok'.
317         (url-truncate-url-for-viewing): Remove unused var `tail'.
318
319 2006-07-30  Thien-Thi Nguyen  <ttn@gnu.org>
320
321         * url-util.el (url-hexify-string): Rewrite.
322         Suggested by David Smith <davidsmith@acm.org>.
323
324 2006-07-12  Michael Olson  <mwolson@gnu.org>
325
326         * url-irc.el (url-irc-erc): Call erc-handle-irc-url.
327
328 2006-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
329
330         * url-cookie.el: Remove spurious * in docstrings.
331         (url-cookie-write-file): Don't use versioned backups.
332         (url-cookie-host-can-set-p): Remove unused var `tmp'.
333
334 2006-07-04  Andreas Seltenreich  <uwi7@rz.uni-karlsruhe.de>
335
336         * url-cookie.el (url-cookie-save-interval): Move to url-cookie group.
337         (url-cookie-write-file): Reset url-cookies-changed-since-last-save.
338
339 2006-05-12  Reiner Steib  <Reiner.Steib@gmx.de>
340
341         * url-http.el (url-http-file-exists-p): Test if status is integer.
342
343 2006-05-05  Andreas Seltenreich  <seltenreich@gmx.de>
344
345         * url-http.el (url-http-parse-headers): Don't reuse connection if
346         "Connection: close" header was seen.
347
348 2006-04-26  Stefan Monnier  <monnier@iro.umontreal.ca>
349
350         * url-gw.el (url-open-stream): Don't hide errors.
351         (url-gateway-nslookup-host, url-open-telnet): Use with-current-buffer.
352
353         * url-handlers.el (url-insert): New function.
354         (url-insert-file-contents): Use it.
355
356 2006-03-29  Stefan Monnier  <monnier@iro.umontreal.ca>
357
358         * url-handlers.el (url-handler-directory-file-name): New handler.
359         (url-file-local-copy): Plug race condition security hole.
360
361 2006-03-27  Romain Francoise  <romain@orebokech.com>
362
363         * url-irc.el (url-irc-rcirc, url-irc-erc): New functions.
364         (url-irc-function): Add rcirc and ERC to the list of IRC clients.
365         Default to rcirc, since ZenIRC isn't part of Emacs.
366
367 2006-03-07  Stefan Monnier  <monnier@iro.umontreal.ca>
368
369         * url-http.el (url-http-find-free-connection): Fix braino in last fix.
370
371 2006-03-05  Stefan Monnier  <monnier@iro.umontreal.ca>
372
373         * url-http.el (url-http-find-free-connection): Don't kill the process
374         when killing the temp buffer.
375         (url-http-symbol-value-in-buffer): Massage to make it clear to the
376         byte-compiler that the function is defined.
377
378 2006-02-20  Stefan Monnier  <monnier@iro.umontreal.ca>
379
380         * url.el (url-redirect-buffer): New var.
381         (url-retrieve-synchronously): Use it to follow redirections.
382
383         * url-http.el: Require `url' rather than try to autoload parts of it.
384         (url-http-find-free-connection): `url-open-stream' needs a real buffer.
385         (url-http-parse-headers): Set `url-redirect-buffer' when following
386         a redirection reply.
387
388 2006-01-18  Stefan Monnier  <monnier@iro.umontreal.ca>
389
390         * url-news.el: Move defvars out of eval-when-compile.
391         (url-news-fetch-message-id, url-news-fetch-newsgroup):
392         Use with-current-buffer.
393
394 2006-01-10  Stefan Monnier  <monnier@iro.umontreal.ca>
395
396         * url.el (url-retrieve-synchronously): Adjust the workaround so as not
397         to stop in the middle of a redirection.
398
399         * url-vars.el (url-privacy-level): Add setter.
400
401 2006-01-05  Stefan Monnier  <monnier@iro.umontreal.ca>
402
403         * url-history.el (url-history-hash-table): Initialize in declaration.
404         (url-history-parse-history): Don't reset the history.
405         (url-history-save-history): Create parent dir if necessary.
406         (url-history-save-history): Don't write the initialization of
407         url-history-hash-table into the history file.
408         (url-have-visited-url): Simplify since url-history-hash-table isn't nil.
409         (url-completion-function): Simplify.
410
411         * url-cookie.el (url-cookie-parse-file): Don't complain of missing file.
412         (url-cookie-parse-file, url-cookie-write-file, url-cookie-retrieve)
413         (url-cookie-generate-header-lines, url-cookie-handle-set-cookie)
414         (url-cookie-setup-save-timer): Remove autoload cookies.
415         They're only called from files that require url-cookie anyway.
416
417         * url-history.el (url-history-setup-save-timer)
418         (url-history-parse-history, url-history-save-history):
419         Remove autoload cookies.  They're only called from url.el which requires
420         url-history anyway.
421         (url-history-parse-history): Don't complain if the file is missing.
422
423 2006-01-02  Stefan Monnier  <monnier@iro.umontreal.ca>
424
425         * url-handlers.el (url-retrieve-synchronously): Don't autoload.
426
427         * url.el (url-retrieve, url-retrieve-synchronously): Autoload.
428
429         * url-cache.el: Require `url'.
430
431 2005-12-27  Stefan Monnier  <monnier@iro.umontreal.ca>
432
433         * url-cache.el (url-store-in-cache): Use save-current-buffer.
434
435         * url.el (url-configuration-directory): Don't autoload because the
436         default value needs to be computed at run-time, not dump-time.
437
438 2005-12-21  Stefan Monnier  <monnier@iro.umontreal.ca>
439
440         * url-cookie.el (url-cookie-write-file): Create parent dir.
441
442         * url.el (url-configuration-directory): Use ~/.emacs.d if possible.
443
444 2005-12-07  Klaus Straubinger  <KSNetz@Arcor.DE>  (tiny change)
445
446         * url-cookie.el (url-cookie-save-interval): Simplify.
447         (url-cookie-setup-save-timer): Simplify.
448
449 2005-12-04  Klaus Straubinger  <KSNetz@Arcor.DE>  (tiny change)
450
451         * url-history.el (url-history-list): Var deleted.
452         (url-history-save-interval): Simplify.
453         (url-history-setup-save-timer): Simplify.
454
455 2005-12-01  Kim F. Storm  <storm@cua.dk>
456
457         * url-history.el (url-history-track): Fix last change.
458
459 2005-12-01  Klaus Straubinger  <KSNetz@Arcor.DE>  (tiny change)
460
461         * url-history.el (url-history-track):
462         Call url-history-setup-save-timer in :set function.
463         :type allows three alternatives.
464         (url-history-setup-save-timer): Test url-history-track.
465         * url.el (url-retrieve): Test url-history-track.
466
467 2005-11-18  Stefan Monnier  <monnier@iro.umontreal.ca>
468
469         * url-http.el: Use with-current-buffer.
470         (url-http-target-url): Rename from url-http-cookies-sources.
471         (url-http-parse-headers): Use it.
472         (url-http-handle-authentication): Use subst-char-in-string.
473
474 2005-11-16  Juergen Hoetzel  <emacs@hoetzel.info>  (tiny change)
475
476         * url-handlers.el (url-insert-file-contents): Use the charset info
477         provided by the HTTP server, if any.
478
479 2005-10-20  CHENG Gao  <chenggao@gmail.com>  (tiny change)
480
481         * url-nfs.el (top level):
482         * url-handlers.el (directory-files):
483         * url-file.el (top level):
484         * url-dired.el (url-dired-minor-mode-map):
485         * url-http.el (url-http-chunked-encoding-after-change-function):
486         Remove XEmacs support.
487
488 2005-10-15  Richard M. Stallman  <rms@gnu.org>
489
490         * url.el: Don't try to autoload hash table functions.
491
492 2005-10-03  Stefan Monnier  <monnier@iro.umontreal.ca>
493
494         * url-http.el (url-http-create-request): Avoid incorrect implicit
495         unibyte->multibyte conversion.
496
497 2005-09-17  Richard M. Stallman  <rms@gnu.org>
498
499         * url-vars.el (url-mail-command): Don't test fboundp of `compose-mail'.
500
501         * url-mailto.el (url-mailto): Special case `mail'.
502         Don't test fboundp of `compose-mail'.
503
504 2005-09-15  Chong Yidong  <cyd@stupidchicken.com>
505
506         * url-mailto.el (url-mailto): Delete mail buffer after sending
507         autogenerated mail.
508         Call `compose-mail with `new' argument if possible.
509
510 2005-09-13  Chong Yidong  <cyd@stupidchicken.com>
511
512         * url-mailto.el (url-mailto): Always use a new mail buffer.
513
514 2005-09-01  Chong Yidong  <cyd@stupidchicken.com>
515
516         * url-util.el (url-parse-query-string): New optional argument
517         allow-newlines allows decoding of newlines.
518
519         * url-mailto.el (url-mailto): Allow newlines in URL arguments.
520         Don't lose original "to" value when there is a "to" header.
521         Remove carriage return characters in message body.
522
523 2005-08-24  Juanma Barranquero  <lekktu@gmail.com>
524
525         * url-news.el (nntp-open-tls-stream, nntp-open-ssl-stream):
526         * url-http.el (url-http-cookies-sources): Defvar at compile time.
527
528 2005-07-15  Richard M. Stallman  <rms@gnu.org>
529
530         * url-http.el (url-http-parse-headers): Add :redirect arg-pair
531         when calling url-retrieve, to indicate a redirect.
532
533         * url.el (url-retrieve): The callback function can get an additional
534         keyword arg pair.
535
536 2005-07-04  Lute Kamstra  <lute@gnu.org>
537
538         Update FSF's address in GPL notices.
539
540 2005-07-04  Juanma Barranquero  <lekktu@gmail.com>
541
542         * url-history.el (url-history-track): Doc fix.
543         (url-history): Finish `defgroup' description with period.
544
545         * url-cookie.el (url-cookie):
546         * url-gw.el (url-gateway):
547         * url-news.el (url-news):
548         * url-vars.el (url, url-file, url-cache, url-mime, url-hairy):
549         Finish `defgroup' description with period.
550
551 2005-06-28  Klaus Straubinger  <KSNetz@Arcor.DE>  (tiny change)
552
553         * url-http.el (url-http-create-request): Call url-recreate-url
554         in proxy case.
555
556 2005-06-27  Klaus Straubinger  <KSNetz@Arcor.DE>  (tiny change)
557
558         * url-http.el (url-http-create-request): When computing real-fname,
559         call url-filename in both cases.
560
561 2005-06-27  Richard M. Stallman  <rms@gnu.org>
562
563         * url-cookie.el (url-cookie-store): Rename arg PATH to LOCALPART.
564         (url-cookie-retrieve): Likewise.
565         (url-cookie-generate-header-lines): Likewise.
566         (url-cookie-handle-set-cookie): Likewise.
567         (url-cookie-create): Expect :localpart instead of :path.
568         (url-cookie-localpart): Renamed from url-cookie-path.
569         (url-cookie-set-localpart): Renamed from url-cookie-set-path.
570         (url-cookie-file): Doc fix.
571         (url-cookie-p): Add doc string.
572
573 2005-06-23  Richard M. Stallman  <rms@gnu.org>
574
575         * url-cookie.el (url-cookie-generate-header-lines): Fix autoload cookie.
576
577 2005-06-21  Juanma Barranquero  <lekktu@gmail.com>
578
579         * url-gw.el (url-open-stream):
580         * url-vars.el (url-gateway-unplugged): Fix spellings.
581
582 2005-06-14  Juanma Barranquero  <lekktu@gmail.com>
583
584         * url-history.el (url-completion-function): Follow error
585         conventions.
586
587 2005-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
588
589         * url-file.el (url-file, url-file-asynch-callback): with-current-buffer.
590
591 2005-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>
592
593         * url-dav.el: Remove most autoload cookies.
594         Don't hook into the url-file-handler since it currently breaks all
595         non-HTTP URLs.
596
597         * url-handlers.el (vc-registered): Explicitly disable VC for URL files.
598
599         * url.el (url-retrieve-synchronously): Don't exit precipitously when
600         fetching a file via ange-ftp.
601
602 2005-06-10  Juanma Barranquero  <lekktu@gmail.com>
603
604         * url-cookie.el (url-cookie-multiple-line): Fix spelling in docstring.
605
606 2005-05-19  Juanma Barranquero  <lekktu@gmail.com>
607
608         * url-cookie.el (url-cookie-multiple-line):
609         Specify group and type in defcustom.
610
611 2005-05-06  Juanma Barranquero  <lekktu@gmail.com>
612
613         * url-auth.el (url-register-auth-scheme):
614         * url-cookie.el (url-cookie-expired-p):
615         * url-dav.el (url-dav-process-date-property)
616         (url-dav-process-boolean-property, url-dav-process-DAV:status):
617         * url-http.el (url-http-chunked-encoding-after-change-function)
618         (url-http-wait-for-headers-change-function):
619         * url-ns.el (isInNet):
620         * url-parse.el (url-generic-parse-url):
621         * url-util.el (url-get-normalized-date): Replace `string-to-int'
622         by `string-to-number'.
623
624 2005-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
625
626         * url.el (url-retrieve-synchronously): Work around the fact that
627         url-http sometimes doesn't call the callback.
628
629 2005-04-04  Lute Kamstra  <lute@gnu.org>
630
631         * url-handlers.el (url-handler-mode): Specify :group.
632
633 2005-02-26  James Cloos  <cloos@jhcloos.com>  (tiny change)
634
635         * url-history.el (url-have-visited-url): Don't barf if
636         url-history-hash-table is nil.
637
638 2005-02-14  Michael Welsh Duggan  <md5i@cs.cmu.edu>
639
640         * url-http.el (url-http-parse-headers): Test url-automatic-caching.
641
642 2005-01-22  Klaus Straubinger  <KSNetz@Arcor.DE>  (tiny change)
643
644         * url-http.el (url-http-parse-headers) <302>: Reset url-http-data
645         to nil, like for the 303 response.
646
647 2005-01-13  Stefan Monnier  <monnier@iro.umontreal.ca>
648
649         * url.el (url-retrieve-synchronously): Use accept-process-output rather
650         than sit-for.
651
652 2005-01-03  Klaus Straubinger  <ksnetz@arcor.de>  (tiny change)
653
654         * url-http.el (url-http-handle-authentication):
655         Don't kill the current buffer.
656
657 2004-12-11  Stefan Monnier  <monnier@iro.umontreal.ca>
658
659         * url-handlers.el: Don't `require' everything eagerly.
660
661 2004-11-30  Paul Pogonyshev  <pogonyshev@gmx.net>
662
663         * url-http.el (url-http-handle-cookies): Bind `url-current-object'
664         to `url-http-cookies-sources' so that cookies are attributed to
665         proper domain.
666         (url-http): Make local variable `url-http-cookies-sources'.
667
668 2004-11-28  Andreas Schwab  <schwab@suse.de>
669
670         * url-http.el (url-http-create-request): Don't add newline after
671         the request data.
672
673 2004-11-20  Masatake YAMATO  <jet@gyve.org>
674
675         * url.el (url-mm-callback): Delay the invocation
676         of `mm-destroy-parts'.  Invoke `mm-destroy-parts'
677         when the buffer is killed.
678
679 2004-11-12  Masatake YAMATO  <jet@gyve.org>
680
681         * url-mailto.el (url-mailto): Fix a typo in the comment.
682
683 2004-11-02  Masatake YAMATO  <jet@gyve.org>
684
685         * url-imap.el (url-imap-open-host): Don't use
686         `string-to-int'.  The port returned by `url-port'
687         is expected to be an integer.
688
689         * url-irc.el (url-irc): Ditto.
690
691         * url-news.el (url-news-open-host): Ditto.
692
693         * url-nfs.el (url-nfs-build-filename): Ditto.
694
695 2004-10-20  John Paul Wallington  <jpw@gnu.org>
696
697         * url-gw.el (url-gateway-nslookup-host):
698         Use `set-process-query-on-exit-flag'.
699
700 2004-10-10  Lars Hansen  <larsh@math.ku.dk>
701
702         * url-auth.el:
703         * url-cache.el:
704         * url-cid.el:
705         * url-dired.el:
706         * url-expand.el:
707         * url-ftp.el:
708         * url-gw.el:
709         * url-imap.el:
710         * url-irc.el:
711         * url-misc.el:
712         * url-news.el:
713         * url-ns.el:
714         * url-privacy.el:
715         * url-proxy.el: Update header and footer.
716
717         * url-vars.el: Update header.
718
719 2004-10-16  Richard M. Stallman  <rms@gnu.org>
720
721         * url.el (url-do-setup): Don't set url-passwd-entry-func.
722
723         * url-vars.el (url-passwd-entry-func): Var deleted.
724         (mm-mime-mule-charset-alist): Remove compatibility code for old Gnus.
725         (url-weekday-alist): Rename from weekday-alist.
726         (url-monthabbrev-alist): Rename from monthabbrev-alist.
727         (url-vars-unload-hook): Initialize hook var to hold the function.
728
729         * url-util.el (url-get-normalized-date): Use url-weekday-alist and
730         url-monthabbrev-alist.
731
732         * url-misc.el: Load cl at compile time.
733
734         * url-mailto.el: Don't load cl.
735         (url-mailto): Fix call to `push'.
736
737         * url-gw.el (url-open-telnet): Use read-passwd.
738
739         * url-auth.el (url-basic-auth, url-digest-auth): Use read-passwd.
740
741 2004-10-12  Simon Josefsson  <jas@extundo.com>
742
743         * url-vars.el (url-gateway-method): Add new method `tls'.
744
745         * url-news.el (url-snews): Use nntp-open-tls-stream if
746         url-gateway-method is tls.
747
748         * url-ldap.el (url-ldap-certificate-formatter):
749         Use tls-certificate-information if ssl.el is not available.
750
751         * url-https.el (url-https-create-secure-wrapper): Use tls if ssl
752         is not available.
753
754         * url-gw.el (url-open-stream): Support tls url-gateway-method.
755         (url-open-stream): Likewise.
756
757 2004-10-10  Lars Hansen  <larsh@math.ku.dk>
758
759         * url-auth.el:
760         * url-cache.el:
761         * url-cookie.el:
762         * url-dired.el:
763         * url-file.el:
764         * url-ftp.el:
765         * url-handlers.el:
766         * url-history.el:
767         * url-irc.el:
768         * url-mailto.el:
769         * url-methods.el:
770         * url-misc.el:
771         * url-news.el:
772         * url-nfs.el:
773         * url-parse.el:
774         * url-privacy.el:
775         * url-vars.el:
776         * url.el:
777         * url-util.el: Fix copyright notice.
778
779 2004-10-06  Stefan Monnier  <monnier@iro.umontreal.ca>
780
781         * url-handlers.el (url-insert-file-contents): Use the URL to decide the
782         encoding, not the buffer-file-name (which might not even exist).
783
784 2004-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
785
786         * url-handlers.el (url-insert-file-contents): Decode contents.
787
788 2004-04-16  Stefan Monnier  <monnier@iro.umontreal.ca>
789
790         * url-util.el (url-debug): Use with-current-buffer.
791
792         * url-nfs.el (url-nfs-file-attributes): Add id-format parameter.
793         (url-nfs-create-wrapper): Use new backquote syntax.
794
795         * url-https.el (url-https-file-attributes): Add id-format param.
796
797         * url-http.el (url-http-head-file-attributes)
798         (url-http-file-attributes): Add id-format parameter.
799
800         * url-handlers.el: Use new find-file-hook.
801         (url-file-attributes): Add id-format parameter.
802
803         * url-file.el (url-file-create-wrapper): Use new backquote syntax.
804         (url-file-file-attributes): Add id-format parameter.
805
806         * url-dav.el: Use with-current-buffer.
807         (url-dav-process-response): Fix regexps and spurious quote.
808         (url-dav-file-attributes): Add id-format param.
809
810 2004-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
811
812         * url.el (url-retrieve): Use with-current-buffer.
813
814         * url-http.el (url-http-parse-headers, url-http-file-exists-p):
815         Remove unused var `version'.
816
817         * url-handlers.el (url-handler-mode): New minor mode.
818         (url-setup-file-name-handlers): Remove.
819
820 2004-04-12  John Paul Wallington  <jpw@gnu.org>
821
822         * url-cookie.el (url-cookie-handle-set-cookie): Replace calls
823         to obsolete `assoc-ignore-case' with calls to `assoc-string'.
824
825 2004-04-11  Dave Love  <fx@gnu.org>
826
827         * url-mailto.el (url-mailto):
828         * url-history.el (url-history-setup-save-timer):
829         * url-cookie.el (url-cookie-setup-save-timer): Avoid warnings.
830
831         * url-file.el (url-file-build-filename): Don't use
832         directory-sep-char.
833
834         * url-auth.el (url-register-auth-scheme): Fix `format' call.
835
836         * url-about.el (url-scheme-registry): Defvar.
837         (url-about): Use text/plain.
838
839         * url-vars.el (cl): Don't require.
840         (url): Add :version.
841         (url-bug-address): Use bug-gnu-emacs.
842
843         * url-util.el (url-hexify-string): Don't give multibyte error
844         for char <16.
845         (mail-header-extract): Autoload.
846
847         * url-parse.el: Doc fixes.
848
849         * url-ldap.el (ldap): Require.
850         (url-ldap): Fix `format' call.
851         (url-ldap-certificate-formatter): Avoid warning.
852
853         * url-https.el (url-https-create-secure-wrapper): Use modern backquotes.
854
855         * url-dav.el (url-dav-rename-file): Fix args of `signal'.
856         (url-intersection): New.
857         (url-dav-supported-p): Use it.
858         (url-dav-save-resource): Declare url-http-response-status special.
859
860         * url-cache.el (url-util): Require.
861
862 2004-04-10  Miles Bader  <miles@gnu.org>
863
864         RCS keyword removal (only non-comment changes are enumerated here):
865
866         * url-vars.el (url-version): Use the constant string "Emacs"
867         instead of calculating something from the RCS `State' keyword
868         [the latter is almost entirely useless anyway].
869
870 2004-04-03  Stefan Monnier  <monnier@iro.umontreal.ca>
871
872         * url-methods.el:
873         * url-parse.el: Don't require url-auto.
874
875 2004-04-03  Stefan Monnier  <monnier@iro.umontreal.ca>
876
877         * url: Imported the URL package from its own CVS repository into Emacs.
878
879 ===========================================================================
880 ===========================================================================
881         Copy of the ChangeLog file from URL's own CVS repository:
882 ===========================================================================
883 ===========================================================================
884
885 2003-07-16  Dave Love  <fx@gnu.org>
886
887         * lisp/url.el (url-retrieve-synchronously): Revert last change.
888         Should be revisited.
889
890 2003-06-26  Sam Steingold  <sds@gnu.org>
891
892         * lisp/url-handlers.el (url-handlers-create-wrapper): Do not call
893         method on invalid urls.
894
895 2003-05-29  Dave Love  <fx@gnu.org>
896
897         * lisp/url.el (url-retrieve-synchronously): Use sleep-for, not
898         sit-for.  From monnier@gnu.org.
899
900 2002-11-04  Walter C. Pelissero  <walter@pelissero.org>
901
902         * lisp/url-methods.el (url-scheme-register-proxy): Make sure to convert
903         port numbers to integers when creating the URL objects for proxies.
904
905 2002-10-29  William M. Perry  <wmperry@gnu.org>
906
907         * lisp/url-http.el (url-http-parse-headers): When doing a
908         redirect, some broken software (sourceforge) sends a redirect to
909         '/', which is blatantly illegal (see section 14.30 of the HTTP/1.1
910         specification).  I wish we could deal with such lame software
911         appropriately (spank the authors), but this is the web, so we have
912         to kow-tow to the servers.
913
914 2002-10-27  William M. Perry  <wmperry@gnu.org>
915
916         * lisp/url-http.el (url-http-create-request): If we are talking to
917         the default port for a the selected protocol, do NOT send the port
918         in the HOST header.  This fixes the login page at sourceforge.
919
920 2002-09-17  William M. Perry  <wmperry@gnu.org>
921
922         * lisp/url-http.el (url-http-handle-cookies): New function to deal
923         with cookie headers.
924         (url-http-parse-headers): Call `url-http-handle-cookies' here so
925         that cookie additions and deletions get handled immediately.
926         This is so that sites that set cookies while doing redirects
927         (my.yahoo.com, outlook web access, etc) work.  This should also
928         fix sites that delete cookies on invalid access or other error
929         pages the user might not actually see.
930         (url-http-parse-headers): Silently convert non-HEAD and non-GET
931         methods to GET in redirects.  Too many web sites do this now, and
932         it is just likely to confuse users.
933
934 2002-05-17  Dave Love  <fx@gnu.org>
935
936         * texi/url.txi: Start making it vaguely useful.
937
938         * texi/Makefile.in (install): Cope with Debian install-info.
939         From Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Grossjohann).
940
941 2002-04-22  Dave Love  <fx@gnu.org>
942
943         * lisp/url-misc.el (man): Autoload to avoid warning.
944         (url-man): Don't require man here.
945         (url-data): Generalize in line with the RFC.
946
947         * lisp/url-gw.el (url-open-stream): Remove obsolete `tcp' case.
948
949         * lisp/url-vars.el: Doc fixes.
950         (url-mime-charset-string): New function.
951         (url-mime-charset-string): Use it to set the variable.
952         (url-set-mime-charset-string): New function.
953         (set-language-environment-hook): Use it.
954         (url-vars-unload-hook): New function.
955
956         * lisp/url-cookie.el (url-header-comparison): Delete.
957         (url-cookie-handle-set-cookie): Use assoc-ignore-case to avoid assoc*.
958         (url-cookie-save-interval): Make value agree with doc.
959
960         * lisp/url.el: Doc fixes.
961         (url-mm-callback): Don't call mm-destroy-parts immediately for
962         external viewing -- set up a process sentinel.
963
964 2002-02-02  William M. Perry  <wmperry@gnu.org>
965
966         * lisp/Makefile.in (SOURCES): Remove mule-sysdp.el from the build rules.
967
968 2001-12-12  William M. Perry  <wmperry@gnu.org>
969
970         * lisp/url-vars.el (url-nonrelative-link): Patch from Stefan
971         Monnier to use ` instead of ^ to match the relative link.
972
973 2001-12-10  William M. Perry  <wmperry@gnu.org>
974
975         * lisp/url-dav.el (url-dav-file-attributes): Fix bad call to
976         plist-get (reversed args).
977
978         * lisp/url-file.el (url-file-build-filename): Make sure that we
979         have a parsed URL in this function.
980
981 2002-01-22  Dave Love  <fx@gnu.org>
982
983         * lisp/url-cache.el (url-cache-file-writable-p): Doc fix.
984
985         * lisp/url-imap.el (url-imap): Maybe disable multibyte.
986         Bind coding-system-for-read.  Require mm-util.
987
988         * lisp/url.el (url-do-setup): Use (featurep 'xemacs).
989
990         * lisp/mule-sysdp.el: Removed (obsolete).
991
992 2001-12-09  William M. Perry  <wmperry@gnu.org>
993
994         * lisp/url-dav.el (url-dav-delete-something): Utility macro to
995         remove an arbitrary resource.
996         (url-dav-delete-directory): Use it.
997         (url-dav-delete-file): Ditto.
998         (url-dav-make-directory): New function.
999         (url-dav-rename-file): New function.
1000         (url-dav-register-handler): New function to easily register a
1001         WebDAV-specific file-name-handler operation.
1002         (url-dav-file-name-all-completions, url-dav-file-name-completion):
1003         New functions that allow file-name completion for WebDAV resources.
1004
1005 2001-12-08  William M. Perry  <wmperry@gnu.org>
1006
1007         * lisp/url-dav.el (url-dav-directory-files): New function to
1008         mimic `directory-files' for WebDAV.
1009         (url-dav-delete-directory): New function to mimic
1010         `delete-directory' for WebDAV.
1011
1012 2001-12-06  William M. Perry  <wmperry@gnu.org>
1013
1014         * lisp/url-dav.el (url-dav-process-DAV:locktoken): Parse the
1015         DAV:locktoken hrefs into a usable format.
1016         (url-dav-process-response): Use an unwind-protect to make sure
1017         that we clean up the buffer, even if there is a parsing error.
1018         (url-dav-request): New function to act as the main entry point for
1019         making DAV requests.  Takes care of building the XML document with
1020         appropriate namespaces, depth, etc, and parses the results.
1021         (url-dav-get-properties): Use new url-dav-request function.
1022         This is now just a thin wrapper around that to use PROPFIND and set any
1023         extra properties we are looking for.
1024         (url-dav-unlock-resource): New function to release a lock given a
1025         URL and a lock-token.
1026         (url-dav-process-DAV:getlastmodified)
1027         (url-dav-process-DAV:creationdate)
1028         (url-dav-process-DAV:iscollection)
1029         (url-dav-process-DAV:ishidden): Fix typos!  Its url-dav-*, not
1030         url-dave-*!
1031         (url-dav-active-locks): New function to get a list of all the
1032         active locks for a resource.
1033         (url-dav-save-resource): New function to actually save a resource
1034         using the PUT method.  I can now successfully save files to an
1035         HTTP server with some manual steps from a lisp-interaction buffer.
1036
1037         * lisp/url-http.el (url-http-wait-for-headers-change-function):
1038         Special case the 204/205 response codes.  Some servers do not
1039         send back a 0 content-length for these, and we would hang.
1040         (url-http-parse-headers): Mark 204/205 response codes as
1041         'successful' so that the callbacks get activated.
1042         (url-http-options): Fix unbound variable usage.
1043
1044         * lisp/url-dav.el: Added full copyright information.
1045         (url-dav-process-response): Make sure that we create a DAV:status
1046         property when parsing a singleton response.
1047         (url-dav-file-attributes): If the properties returned did not have
1048         a succesful HTTP response code, then ignore them and use the
1049         HEAD-based attributes.
1050
1051         * lisp/vc-dav.el: Added full copyright information.
1052
1053         * lisp/url-dav.el (url-dav-process-supportedlock-property):
1054         Deal with text nodes in DAV:supportedlock nodes.
1055         (url-dav-file-attributes-mode-string): This now gets the entire
1056         property list instead of just the DAV:supportedlock node.
1057         (url-dav-file-attributes): Make sure to pass the whole list in.
1058         (url-dav-file-attributes-mode-string): Now properly sets do 'd' mode.
1059         (url-dav-file-attributes-mode-string): Now uses the Apache mod_dav
1060         'executable' bit to set the 'x' mode.  See `mod_dav's custom
1061         properties' at http://www.webdav.org/mod_dav/ for more details.
1062         (url-dav-find-parser): New function to find the proper parser for
1063         a node-type.  Looks for
1064         url-dav-process-XXX (url-dav-process-DAV:prop), otherwise falls
1065         back to using url-dav-node-text.  Caches the results on the nodes
1066         symbol name.
1067         (url-dav-dispatch-node): Utility routine to call a nodes handler easily.
1068         (url-dav-process-*): Rename most of the handlers and made them
1069         use url-dav-dispatch-node where appropriate.
1070         (url-dav-process-DAV:prop): Instead of using the dav-data-type
1071         property to dispatch the node, now uses dav-dispatch-node so that
1072         it is easy to add parsers for special nodes.
1073         (url-dav-process-DAV:depth, url-dav-process-DAV:resourcetype)
1074         (url-dav-process-DAV:locktype, url-dav-process-DAV:lockscope)
1075         (url-dav-process-DAV:getcontentlength)
1076         (url-dave-process-DAV:getlastmodified)
1077         (url-dave-process-DAV:creationdate)
1078         (url-dave-process-DAV:iscollection)
1079         (url-dave-process-DAV:ishidden): Aliases for the generic
1080         url-dav-process-foo-property routines.
1081         (url-dav-process-DAV:activelock)
1082         (url-dav-process-DAV:lockdiscovery): Can now correctly parse
1083         DAV:lockdiscovery nodes, so that we can find out who has a
1084         resource locked and properly parse the reponse to a LOCK request.
1085         (url-dav-process-DAV:status): Now parses ou the numeric status
1086         from the HTTP response line.
1087         (url-dav-process-response): New function to handle all the
1088         parsing of an XML response from WebDAV.  This handles all the
1089         logic of checking the response content-type to make sure it is
1090         XML, parses the tree, and interprets the tree.
1091         (url-dav-process-response): Make sure that all responses look
1092         like a DAV:multistatus response, even if we get a singleton
1093         response back.  This will just make the upper layer logic simpler.
1094         (url-dav-get-properties): New optional argument NAMESPACES that
1095         specifies what namespaces to use in the XML request.
1096         (url-dav-get-properties): Got rid of the D: namespace in
1097         requests.  It doesn't save that much space.  Just use DAV:
1098         (url-dav-lock-identifier): New variable that should hold a URI
1099         pointing to contact information for the user.  This will be used
1100         as the contents of the DAV:owner/DAV:href tag to identify the
1101         owner of a LOCK when requesting it.  This will be shown to other
1102     &nbs