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