comparison lisp/url/ChangeLog @ 56308:1d6828002ca9

*** empty log message ***
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 01 Jul 2004 12:29:28 +0000
parents
children e4e13934a595
comparison
equal deleted inserted replaced
56307:2c4f93ea1faf 56308:1d6828002ca9
1 2004-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * url-util.el (url-debug): Use with-current-buffer.
4
5 * url-nfs.el (url-nfs-file-attributes): Add id-format parameter.
6 (url-nfs-create-wrapper): Use new backquote syntax.
7
8 * url-https.el (url-https-file-attributes): Add id-format param.
9
10 * url-http.el (url-http-head-file-attributes)
11 (url-http-file-attributes): Add id-format parameter.
12
13 * url-handlers.el: Use new find-file-hook.
14 (url-file-attributes): Add id-format parameter.
15
16 * url-file.el (url-file-create-wrapper): Use new backquote syntax.
17 (url-file-file-attributes): Add id-format parameter.
18
19 * url-dav.el: Use with-current-buffer.
20 (url-dav-process-response): Fix regexps and spurious quote.
21 (url-dav-file-attributes): Add id-format param.
22
23 2004-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
24
25 * url.el (url-retrieve): Use with-current-buffer.
26
27 * url-http.el (url-http-parse-headers, url-http-file-exists-p):
28 Remove unused var `version'.
29
30 * url-handlers.el (url-handler-mode): New minor mode.
31 (url-setup-file-name-handlers): Remove.
32
33 2004-04-12 John Paul Wallington <jpw@gnu.org>
34
35 * url-cookie.el (url-cookie-handle-set-cookie): Replace calls
36 to obsolete `assoc-ignore-case' with calls to `assoc-string'.
37
38 2004-04-11 Dave Love <fx@gnu.org>
39
40 * url-mailto.el (url-mailto):
41 * url-history.el (url-history-setup-save-timer):
42 * url-cookie.el (url-cookie-setup-save-timer): Avoid warnings.
43
44 * url-file.el (url-file-build-filename): Don't use
45 directory-sep-char.
46
47 * url-auth.el (url-register-auth-scheme): Fix `format' call.
48
49 * url-about.el (url-scheme-registry): Defvar.
50 (url-about): Use text/plain.
51
52 * url-vars.el (cl): Don't require.
53 (url): Add :version.
54 (url-bug-address): Use bug-gnu-emacs.
55
56 * url-util.el (url-hexify-string): Don't give multibyte error
57 for char <16.
58 (mail-header-extract): Autoload.
59
60 * url-parse.el: Doc fixes.
61
62 * url-ldap.el (ldap): Require.
63 (url-ldap): Fix `format' call.
64 (url-ldap-certificate-formatter): Avoid warning.
65
66 * url-https.el (url-https-create-secure-wrapper): Use modern
67 backquotes.
68
69 * url-dav.el (url-dav-rename-file): Fix args of `signal'.
70 (url-intersection): New.
71 (url-dav-supported-p): Use it.
72 (url-dav-save-resource): Declare url-http-response-status special.
73
74 * url-cache.el (url-util): Require.
75
76 2004-04-10 Miles Bader <miles@gnu.org>
77
78 RCS keyword removal (only non-comment changes are enumerated here):
79
80 * url-vars.el (url-version): Use the constant string "Emacs"
81 instead of calculating something from the RCS `State' keyword
82 [the latter is almost entirely useless anyway].
83
84 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
85
86 * url-methods.el:
87 * url-parse.el: Don't require url-auto.
88
89 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
90
91 * url: Imported the URL package from its own CVS repository into Emacs.
92
93 ===========================================================================
94 ===========================================================================
95 Copy of the ChangeLog file from URL's own CVS repository:
96 ===========================================================================
97 ===========================================================================
98
99 2003-07-16 Dave Love <fx@gnu.org>
100
101 * lisp/url.el (url-retrieve-synchronously): Revert last change.
102 Should be revisited.
103
104 2003-06-26 Sam Steingold <sds@gnu.org>
105
106 * lisp/url-handlers.el (url-handlers-create-wrapper): Do not call
107 method on invalid urls.
108
109 2003-05-29 Dave Love <fx@gnu.org>
110
111 * lisp/url.el (url-retrieve-synchronously): Use sleep-for, not
112 sit-for. From monnier@gnu.org.
113
114 2002-11-04 Walter C. Pelissero <walter@pelissero.org>
115
116 * lisp/url-methods.el (url-scheme-register-proxy): Make sure to
117 convert port numbers to integers when creating the URL objects for
118 proxies.
119
120 2002-10-29 William M. Perry <wmperry@gnu.org>
121
122 * lisp/url-http.el (url-http-parse-headers): When doing a
123 redirect, some broken software (sourceforge) sends a redirect to
124 '/', which is blatantly illegal (see section 14.30 of the HTTP/1.1
125 specification). I wish we could deal with such lame software
126 appropriately (spank the authors), but this is the web, so we have
127 to kow-tow to the servers.
128
129 2002-10-27 William M. Perry <wmperry@gnu.org>
130
131 * lisp/url-http.el (url-http-create-request): If we are talking to
132 the default port for a the selected protocol, do NOT send the port
133 in the HOST header. This fixes the login page at sourceforge.
134
135 2002-09-17 William M. Perry <wmperry@gnu.org>
136
137 * lisp/url-http.el (url-http-handle-cookies): New function to deal
138 with cookie headers.
139 (url-http-parse-headers): Call `url-http-handle-cookies' here so
140 that cookie additions and deletions get handled immediately. This
141 is so that sites that set cookies while doing redirects
142 (my.yahoo.com, outlook web access, etc) work. This should also
143 fix sites that delete cookies on invalid access or other error
144 pages the user might not actually see.
145 (url-http-parse-headers): Silently convert non-HEAD and non-GET
146 methods to GET in redirects. Too many web sites do this now, and
147 it is just likely to confuse users.
148
149 2002-05-17 Dave Love <fx@gnu.org>
150
151 * texi/url.txi: Start making it vaguely useful.
152
153 * texi/Makefile.in (install): Cope with Debian install-info.
154 From Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann).
155
156 2002-04-22 Dave Love <fx@gnu.org>
157
158 * lisp/url-misc.el (man): Autoload to avoid warning.
159 (url-man): Don't require man here.
160 (url-data): Generalize in line with the RFC.
161
162 * lisp/url-gw.el (url-open-stream): Remove obsolete `tcp' case.
163
164 * lisp/url-vars.el: Doc fixes.
165 (url-mime-charset-string): New function.
166 (url-mime-charset-string): Use it to set the variable.
167 (url-set-mime-charset-string): New function.
168 (set-language-environment-hook): Use it.
169 (url-vars-unload-hook): New function.
170
171 * lisp/url-cookie.el (url-header-comparison): Deleted.
172 (url-cookie-handle-set-cookie): Use assoc-ignore-case to avoid
173 assoc*.
174 (url-cookie-save-interval): Make value agree with doc.
175
176 * lisp/url.el: Doc fixes.
177 (url-mm-callback): Don't call mm-destroy-parts immediately for
178 external viewing -- set up a process sentinel.
179
180 2002-02-02 William M. Perry <wmperry@gnu.org>
181
182 * lisp/Makefile.in (SOURCES): Remove mule-sysdp.el from the build
183 rules.
184
185 2001-12-12 William M. Perry <wmperry@gnu.org>
186
187 * lisp/url-vars.el (url-nonrelative-link): Patch from Stefan
188 Monnier to use ` instead of ^ to match the relative link.
189
190 2001-12-10 William M. Perry <wmperry@gnu.org>
191
192 * lisp/url-dav.el (url-dav-file-attributes): Fix bad call to
193 plist-get (reversed args).
194
195 * lisp/url-file.el (url-file-build-filename): Make sure that we
196 have a parsed URL in this function.
197
198 2002-01-22 Dave Love <fx@gnu.org>
199
200 * lisp/url-cache.el (url-cache-file-writable-p): Doc fix.
201
202 * lisp/url-imap.el (url-imap): Maybe disable multibyte. Bind
203 coding-system-for-read. Require mm-util.
204
205 * lisp/url.el (url-do-setup): Use (featurep 'xemacs).
206
207 * lisp/mule-sysdp.el: Removed (obsolete).
208
209 2001-12-09 William M. Perry <wmperry@gnu.org>
210
211 * lisp/url-dav.el (url-dav-delete-something): Utility macro to
212 remove an arbitrary resource.
213 (url-dav-delete-directory): Use it.
214 (url-dav-delete-file): Ditto.
215 (url-dav-make-directory): New function.
216 (url-dav-rename-file): New function.
217 (url-dav-register-handler): New function to easily register a
218 WebDAV-specific file-name-handler operation.
219 (url-dav-file-name-all-completions, url-dav-file-name-completion):
220 New functions that allow file-name completion for WebDAV
221 resources.
222
223 2001-12-08 William M. Perry <wmperry@gnu.org>
224
225 * lisp/url-dav.el (url-dav-directory-files): New function to
226 mimic `directory-files' for WebDAV.
227 (url-dav-delete-directory): New function to mimic
228 `delete-directory' for WebDAV.
229
230 2001-12-06 William M. Perry <wmperry@gnu.org>
231
232 * lisp/url-dav.el (url-dav-process-DAV:locktoken): Parse the
233 DAV:locktoken hrefs into a usable format.
234 (url-dav-process-response): Use an unwind-protect to make sure
235 that we clean up the buffer, even if there is a parsing error.
236 (url-dav-request): New function to act as the main entry point for
237 making DAV requests. Takes care of building the XML document with
238 appropriate namespaces, depth, etc, and parses the results.
239 (url-dav-get-properties): Use new url-dav-request function. This
240 is now just a thin wrapper around that to use PROPFIND and set any
241 extra properties we are looking for.
242 (url-dav-unlock-resource): New function to release a lock given a
243 URL and a lock-token.
244 (url-dav-process-DAV:getlastmodified)
245 (url-dav-process-DAV:creationdate)
246 (url-dav-process-DAV:iscollection)
247 (url-dav-process-DAV:ishidden): Fix typos! Its url-dav-*, not
248 url-dave-*!
249 (url-dav-active-locks): New function to get a list of all the
250 active locks for a resource.
251 (url-dav-save-resource): New function to actually save a resource
252 using the PUT method. I can now successfully save files to an
253 HTTP server with some manual steps from a lisp-interaction
254 buffer.
255
256 * lisp/url-http.el (url-http-wait-for-headers-change-function):
257 Special case the 204/205 response codes. Some servers do not
258 send back a 0 content-length for these, and we would hang.
259 (url-http-parse-headers): Mark 204/205 response codes as
260 'successful' so that the callbacks get activated.
261 (url-http-options): Fix unbound variable usage.
262
263 * lisp/url-dav.el: Added full copyright information.
264 (url-dav-process-response): Make sure that we create a DAV:status
265 property when parsing a singleton response.
266 (url-dav-file-attributes): If the properties returned did not have
267 a succesful HTTP response code, then ignore them and use the
268 HEAD-based attributes.
269
270 * lisp/vc-dav.el: Added full copyright information.
271
272 * lisp/url-dav.el (url-dav-process-supportedlock-property): Deal
273 with text nodes in DAV:supportedlock nodes.
274 (url-dav-file-attributes-mode-string): This now gets the entire
275 property list instead of just the DAV:supportedlock node.
276 (url-dav-file-attributes): Make sure to pass the whole list in.
277 (url-dav-file-attributes-mode-string): Now properly sets do 'd'
278 mode.
279 (url-dav-file-attributes-mode-string): Now uses the Apache mod_dav
280 'executable' bit to set the 'x' mode. See `mod_dav's custom
281 properties' at http://www.webdav.org/mod_dav/ for more details.
282 (url-dav-find-parser): New function to find the proper parser for
283 a node-type. Looks for
284 url-dav-process-XXX (url-dav-process-DAV:prop), otherwise falls
285 back to using url-dav-node-text. Caches the results on the nodes
286 symbol name.
287 (url-dav-dispatch-node): Utility routine to call a nodes handler
288 easily.
289 (url-dav-process-*): Renamed most of the handlers and made them
290 use url-dav-dispatch-node where appropriate.
291 (url-dav-process-DAV:prop): Instead of using the dav-data-type
292 property to dispatch the node, now uses dav-dispatch-node so that
293 it is easy to add parsers for special nodes.
294 (url-dav-process-DAV:depth, url-dav-process-DAV:resourcetype)
295 (url-dav-process-DAV:locktype, url-dav-process-DAV:lockscope)
296 (url-dav-process-DAV:getcontentlength)
297 (url-dave-process-DAV:getlastmodified)
298 (url-dave-process-DAV:creationdate)
299 (url-dave-process-DAV:iscollection)
300 (url-dave-process-DAV:ishidden): Aliases for the generic
301 url-dav-process-foo-property routines.
302 (url-dav-process-DAV:activelock)
303 (url-dav-process-DAV:lockdiscovery): Can now correctly parse
304 DAV:lockdiscovery nodes, so that we can find out who has a
305 resource locked and properly parse the reponse to a LOCK request.
306 (url-dav-process-DAV:status): Now parses ou the numeric status
307 from the HTTP response line.
308 (url-dav-process-response): New function to handle all the
309 parsing of an XML response from WebDAV. This handles all the
310 logic of checking the response content-type to make sure it is
311 XML, parses the tree, and interprets the tree.
312 (url-dav-process-response): Make sure that all responses look
313 like a DAV:multistatus response, even if we get a singleton
314 response back. This will just make the upper layer logic
315 simpler.
316 (url-dav-get-properties): New optional argument NAMESPACES that
317 specifies what namespaces to use in the XML request.
318 (url-dav-get-properties): Got rid of the D: namespace in
319 requests. It doesn't save that much space. Just use DAV:
320 (url-dav-lock-identifier): New variable that should hold a URI
321 pointing to contact information for the user. This will be used
322 as the contents of the DAV:owner/DAV:href tag to identify the
323 owner of a LOCK when requesting it. This will be shown to other
324 users when the DAV:lockdiscovery property is requested, so make
325 sure you are comfortable with it leaking to the outside world.
326 (url-dav-lock-resource): New function to LOCK a dav resource.
327
328 2001-12-05 William M. Perry <wmperry@gnu.org>
329
330 * lisp/url-dav.el (url-dav-get-properties): New argument
331 ATTRIBUTES that allows you to ask for specific properties instead
332 of getting all properties via DAV:allprop.
333
334 * lisp/url-http.el (url-http-real-basic-auth-storage): New
335 variable for normal HTTP basic authentication.
336 (url-http-proxy-basic-auth-storage): New variable for HTTP proxy
337 basic authentication.
338 (url-http-handle-authentication): Follow new semantics for
339 url-basic-auth-storage.
340
341 * lisp/url-auth.el (url-basic-auth-storage): Changed meaning of
342 this variable. It is now a symbol pointing to where we really
343 want to store the authorization information. This fixes proxy
344 auth and normal basic auth because of some local bindings that
345 were making it impossible to store the credentials in the global
346 binding.
347 (url-basic-auth): Make sure we dereference url-basic-auth-storage
348 everywhere.
349
350 * lisp/url-util.el (url-debug): Added new types 'dav and
351 'retrieval to the customization list.
352
353 * lisp/url.el (url-retrieve-synchronously): Put in some debugging
354 statements.
355
356 * lisp/url-http.el (url-http-head-file-attributes): Renamed old
357 url-http-file-attributes so that we can have a smarter one that
358 tries WebDAV first, then HEAD.
359 (url-http-file-attributes): New smart version that tries WebDAV
360 first.
361 (url-http-options): New function that returns information gleaned
362 from an OPTIONS request for a URL. Returns a property list
363 returning the methods supported for the resource, what DAV and
364 DASL levels are supported, p3p information, and whether
365 byte-ranges are supported or not.
366 (url-http-wait-for-headers-change-function): If we got a 0-byte
367 content-length, activate the callback immediately.
368 (url-http-wait-for-headers-change-function): For content-length
369 responses with actual body-data in the chunk we are handling, call
370 url-http-content-length-after-change-function with the remaining
371 data. Otherwise we can deadlock if the headers and the entire
372 body exist arrive in one chunk.
373
374 * lisp/url-dav.el: New file to contain the WebDAV
375 (http://www.webdav.org/) implementation.
376 (url-dav-supported-p): Cheap way to figure out whether we will be
377 able to do DAV at all. We rely on the XML parser expanding
378 namespaces for us, and currently you need a patched version of
379 xml.el to do this. Patch sent to author for consideration.
380 (url-dav-file-attributes): Much more complete version of
381 `file-attributes' using the WebDAV PROPFIND method. Now correctly
382 finds out whether something is a directory (a WebDAV collection),
383 the last modification time, and permissions (based on the
384 DAV:supportedlock information).
385 (url-dav-get-properties): Generic interface to get WebDAV
386 properties for a URL. Can specify an optional `depth' parameter
387 to tell the web server how many directory (collection) levels to
388 recurse when retrieving the property lists. Returns an assoc
389 list keyed off of the resource, the cdr of which is a property
390 list.
391 (url-dav-datatype-attribute): We support the XML-Data note
392 (http://www.w3.org/TR/1998/NOTE-XML-data) to figure out what the
393 datatypes of attributes are. Currently only date, dateTime, int,
394 number, float, boolean, and uri are supported.
395
396 2001-12-04 William M. Perry <wmperry@gnu.org>
397
398 * lisp/url-handlers.el (file-name-absolute-p): New hooked
399 version. If the filename matches our regexp, then it is always
400 absolute, so just return `t'.
401 (expand-file-name): New hooked version. If the fragment is an
402 absolute file or URL, then expand it relative to '/'.
403 (url-handler-regexp): New regexp for specific schemes that we
404 want the file-name-handlers to work off of.
405 (url-setup-file-name-handlers): Use it when installing the
406 handlers.
407
408 * lisp/url-http.el (url-http-find-free-connection): Better logging
409 about whether we are reusing an existing connection or not.
410
411 * lisp/url-methods.el (url-scheme-register-proxy): Fixed bad call
412 to string-match instead of match-string (and with reversed
413 arguments even).
414
415 * lisp/url-http.el (url-http-debug): Changed to now use the
416 generic url-debug function to do the actual logging. Still a
417 separate function so that we can do our magic on the network
418 connection if the user quits while we are downloading.
419
420 * lisp/url-handlers.el (url-file-handler): Now logs the result of
421 the hooked or real call.
422
423 * lisp/url-util.el (url-debug): New function for generic debug
424 logging.
425
426 2001-11-28 William M. Perry <wmperry@gnu.org>
427
428 * lisp/url-imap.el (url-imap-open-host): Use backquote.
429 (url-imap): Now switches to 'login as the imap authenticator if
430 the URL provides a username and password.
431
432 * lisp/url-handlers.el (url-setup-file-name-handlers): Use cl &
433 push to replace some strange logic in here.
434 (url-run-real-handler): New function to run the real hooks in
435 case we get a false positive or an operation that we do not
436 support. The old way disabled _ALL_ file-name-handlers when
437 we hit something we didn't understand - this disables JUST us.
438 (url-file-handler): Removed the logic about removing the leading
439 '/' off of the first argument... it may not be safe to always
440 assume that the first argument is the one we are acting on -
441 `default' is the second argument for expand-file-name for
442 example.
443 (url-setup-file-name-handlers): Use url-nonrelative-link
444 directly. This means that you must type in the URL directly
445 without prefixing it with a '/'.
446
447 (gnus-cache-articles-in-group "nnml+mail:comp.emacs-devel")
448
449 Ends up calling (expand-file-name "nnml+mail:comp.emacs-devel" ...)
450 which activates us (because 'nnml+mail' _is_ a valid scheme name
451 for a URI). We get thoroughly confused and end up returning
452 `nil' when we shouldn't.
453
454 2001-11-26 William M. Perry <wmperry@gnu.org>
455
456 * lisp/url-handlers.el (file-writable-p): Add NULL handler for
457 this so that visiting a URL directly will work.
458 (file-symlink-p): Ditto.
459 (url-insert-file-contents): If `visit' is non-nil then make sure
460 we set buffer-file-name. After these changes you can visit
461 http://www.gnu.org/ directly from the minibuffer.
462 (url-insert-file-contents): When inserting the file contents,
463 use a save-excursion so that we behave just like the original.
464
465 2001-11-25 William M. Perry <wmperry@gnu.org>
466
467 * lisp/url-util.el (url-hexify-string): Fixed bad use of
468 mapconcat.
469
470 2001-11-24 William M. Perry <wmperry@gnu.org>
471
472 * lisp/url-about.el (url-about): New loader scheme to handle
473 about:foo URLs. Automatically tries to find a `url-about-foo'
474 function to display the actual data.
475 (url-about-protocols): Implement about:protocols
476
477 * lisp/url-http.el (url-http): Make sure that we signal an error
478 when we cannot open a network connection for whatever reason.
479 Before, it would just silently clean up after itself and the user
480 got absolutely no indication that an error had occured. If the
481 error should truly be ignored, the caller should do that for us.
482 (url-http-chunked-encoding-after-change-function): Doh! Need to
483 user marker-position in some log messages now that
484 url-http-chunked-start is a marker.
485
486 2001-11-22 William M. Perry <wmperry@gnu.org>
487
488 * lisp/url-https.el: Fixed definition of url-https - was using the
489 wrong signature. Too much cut & paste.
490 (url-https-create-secure-wrapper): Fixed so that url-https works
491 at all. Was not taking a null `method' into account when calling
492 the wrapped function so url-https tried to call url-http-nil.
493 *sigh*
494
495 * lisp/url-http.el
496 (url-http-chunked-encoding-after-change-function): Added some
497 feedback when not debugging about what content-type and chunk # we
498 are reading.
499 (url-http-chunked-encoding-after-change-function): Use a marker
500 for url-http-chunked-start so that we can safely delete the
501 chunk-tokens instead of just marking them as invisible.
502 (url-http-chunked-encoding-after-change-function): Actually delete
503 the chunk-tokens. Now that we are not run from 'real'
504 after-change functions, this is safe, and the right thing to do.
505 Otherwise the HTML parser still saw them and inferred all sorts of
506 bad things about the document (ie: nothing had a title!)
507
508 2001-11-21 William M. Perry <wmperry@gnu.org>
509
510 * lisp/url-http.el (url-http-debug): Document this variable.
511 People other than I might want to use it.
512 (url-http-debug): Put some code in here to check quit-flag
513 directly. When the chunked encoding went into a tight spin, your
514 Emacs would be wedged forever. This short-circuits all the
515 after-change functions and signals an error.
516 (url-http-debug): If url-http-debug is non-nil and non-t, then log
517 the debug messages using `message' as well as sending them to the
518 buffer.
519 (url-http-chunked-encoding-after-change-function): Got rid of the
520 no-initial-crlf. Had an epiphany and I can just infer this from
521 url-http-chunked-counter being 0.
522 (url-http-chunked-encoding-after-change-function): Moved the debug
523 statement about reading chunk #foo into the loop so that each
524 chunk will have a log message associated with it.
525 (url-http-chunked-encoding-after-change-function): Make sure to
526 set read-next-chunk to nil when the regular expression match fails
527 to fire. Otherwise we could loop forever.
528 (url-http-chunked-encoding-after-change-function): Tweaked the
529 regular expression to be a little less greedy when looking for a
530 chunk.
531 (url-http-wait-for-headers-change-function): Remove the last
532 argument when calling
533 url-http-chunked-encoding-after-change-function. It is no longer
534 needed. I should use my brain sometime.
535
536 * lisp/url-vars.el (and): Fixed feature test for xemacs and
537 coding-system-list behaviour.
538
539 * lisp/url-http.el
540 (url-http-chunked-encoding-after-change-function): Added optional
541 no-initial-crlf flag that modifies the regular expression. This
542 is only set from url-http-wait-for-headers-change-function so that
543 the initial CRLF in the HTTP headers is not swallowed.
544 (url-http-chunked-encoding-after-change-function): Fixed a few
545 off-by-one errors by using (match-end 0) instead of 1.
546 (url-http-chunked-encoding-after-change-function): Added a few
547 url-http-debug calls to help track down problems in the chunked
548 encoding.
549 (url-http-chunked-encoding-after-change-function): The chunk
550 reading in here is now in a while loop so that if Emacs feeds us a
551 chunk of data that happens to contain more than one 'chunk'
552 delimiter, we behave correctly.
553 (url-http-wait-for-headers-change-function): Make sure that we
554 pass no-initial-crlf to
555 url-http-chunked-encoding-after-change-function when passing
556 initial data to the decoder.
557 (url-http-generic-filter): url-http-debug statement so we can tell
558 when/where our after-change-functions are being called.
559
560 2001-10-11 Dave Love <fx@gnu.org>
561
562 * lisp/url-handlers.el: Doc fixes.
563 (string-match): Use (featurep 'xemacs).
564
565 * lisp/url-methods.el (url-scheme-get-property): Avoid `mapc'.
566
567 * lisp/url-proxy.el (url-find-proxy-for-url): Avoid `pop'.
568
569 * lisp/url-vars.el (url-running-xemacs): Delete.
570 (url-gateway-unplugged): New variable.
571
572 * lisp/url-gw.el (url-open-stream): Use url-gateway-unplugged.
573 Comment out OS/2 stuff.
574
575 2001-10-05 Dave Love <fx@gnu.org>
576
577 * lisp/url-mailto.el (url-mailto): Don't send auto-generated mail
578 without confirmation.
579
580 2001-10-02 Dave Love <fx@gnu.org>
581
582 * lisp/url-http.el (url-http-create-request): Check cache for
583 proxy-obj, if defined, rather than url.
584 (url-http): Use dolist, not mapc (runtime cl dependency).
585
586 * lisp/url-methods.el: Maybe require cl at runtime.
587 (url-scheme-register-proxy): Fix fetching from environment. Don't
588 concat a number.
589
590 2001-10-01 Dave Love <fx@gnu.org>
591
592 * lisp/url-parse.el: Use modern backquote syntax.
593
594 * lisp/url-vars.el (url-uncompressor-alist): Add bzip2.
595 (url-mail-command): Prefer compose-mail.
596 (tcp-binary-process-input-services): Comment out.
597 (url-working-buffer): New constant.
598
599 * lisp/url-util.el (url-extract-mime-headers): New function.
600
601 * lisp/url-mailto.el (url-mailto): Set source-url. Don't add
602 User-Agent.
603
604 2001-09-20 Dave Love <fx@gnu.org>
605
606 * lisp/url-http.el (url-http-create-request): Don't concat a
607 number.
608
609 2001-06-05 Dave Love <fx@gnu.org>
610
611 * lisp/url.el (url-do-setup): Doc fix. Don't try to frob
612 tcp-binary-process-input-services. Remove function wrapper for
613 lambda.
614 (url-retrieve): Barf with sensible message if url-type is null.
615
616 * lisp/url-http.el (url-http): Don't try to set process
617 coding-system here -- done in url-gw.
618
619 * lisp/url-gw.el (url-gw-inhibit-code-conversion): Remove.
620 (url-open-stream): Bind coding-system-for{read,write} when setting
621 up the connexion. Don't call url-gw-inhibit-code-conversion.
622
623 2001-05-23 William M. Perry <wmperry@gnu.org>
624
625 * lisp/url.el (url-retrieve-synchronously): Don't put a timeout on
626 accept-process-output. This is evidently causing hangs in Emacs
627 21 when viewing complex pages with images or stylesheets.
628 www.yahoo.com is now viewable.
629
630 * lisp/url-gw.el (url-open-stream): Avoid using mule-sysdp
631 (mule-inhibit-code-conversion) and just have a local function that
632 does this minimal cruft.
633 (url-gw-inhibit-code-conversion): New function to turn off code
634 conversion in a process.
635
636 2001-05-22 William M. Perry <wmperry@gnu.org>
637
638 * lisp/url.el (url-retrieve-synchronously): Use lexical-let so
639 that we can allow multiple asynch retrievals to happen at once.
640 (url-retrieve-synchronously): Use a much smaller timeout when
641 doing the accept-process-output. This gets rid of the long delays
642 if you are on a fast net connection and retrieve small documents
643 that finish asynchronously before the first accept-process-output
644 can be run. All hail broadband and 100Mb in the house!
645 (url-retrieve-synchronously): Added documentation for this function.
646 (url-retrieve): Ditto.
647 (url-mm-url): Ditto.
648
649 * lisp/url-vars.el: Replaced `HTTP/1.0' with just `HTTP' in some
650 documentation strings. Ok, so I'm anal.
651
652 * lisp/url-methods.el (url-scheme-methods): Add default methods
653 for file-directory-p and file-truename.
654
655 2001-05-22 Dave Love <fx@gnu.org>
656
657 * lisp/url-auth.el (url-warn): Autoload.
658
659 * lisp/url-proxy.el (url-warn): Autoload.
660
661 * lisp/url-nfs.el: Fix `file-truname' typo.
662
663 * lisp/url-news.el: Require cl when compiling.
664 (url-warn, gnus-group-read-ephemeral-group): Autoload.
665 (url-nntp-default-port, url-news-default-port, url-nntp): Deleted.
666 (url-news-fetch-newsgroup): Declare gnus-group-buffer special.
667
668 * lisp/url-util.el (mule-decode-string): Don't autoload.
669 (url-hexify-string): Just barf on multibyte characters.
670 (url-generate-unique-filename): New function.
671
672 * lisp/url-file.el (url-file): Use url-generate-unique-filename,
673 not mm-generate-unique-filename.
674
675 * lisp/url-http.el: Declare things special in various places.
676 (url-http-activate-callback): Don't set
677 url-http-real-after-change-function.
678
679 2001-05-22 William M. Perry <wmperry@gnu.org>
680
681 * lisp/url-http.el (url-http-attempt-keepalives): New variable to
682 control whether we try to do keep-alives for our connections.
683 (url-http-version): New variable to control whether we advertise
684 ourselves as an HTTP/1.1 client or not. This can be useful for
685 avoiding chunked encoding, and other 1.1 features we may not have
686 fully implemented yet.
687 (url-http-create-request): Honor the new variables.
688
689 2001-05-21 Dave Love <fx@gnu.org>
690
691 * lisp/url-vars.el (mm-mime-mule-charset-alist): Don't readjust it
692 in XEmacs.
693 (url-mime-charset-string): Don't reverse the list before sorting.
694
695 2001-05-17 William M. Perry <wmperry@gnu.org>
696
697 * lisp/url-http.el (url-http-generic-filter): Avoid using
698 after-change-functions natively. There are just too many ways
699 that this screws up in Emacs 21. Use a filter function on the
700 process instead, and call the hook on
701 url-http-after-change-function manually. [Actually, it will work
702 in Emacs 21, but one problem that has been fixed in Emacs 21
703 exists in Emacs 20. -- fx]
704
705 * lisp/url-vars.el (url-mime-charset-string): sort-coding-systems
706 does not exist on older versions of Emacs, or any version of
707 XEmacs. Do not call it unless it is bound.
708
709 2001-05-17 Dave Love <fx@gnu.org>
710
711 * lisp/url-http.el (url-http-create-request): Fix non-GET requests.
712
713 2001-05-16 Dave Love <fx@gnu.org>
714
715 * lisp/url-vars.el: Doc fixes. Require mm-util.
716 (url-mime-charset-string): New variable.
717
718 * lisp/url-http.el: Doc fixes.
719 (url-http-create-request): Rearrange how we assemble the request.
720 Avoid generating bogus requests with an empty real-fname.
721 (url-http-handle-authentication): Declare status and success
722 special.
723 (url-http): Call mm-disable-multibyte. Set process buffer's
724 coding systems to binary.
725
726 * lisp/url-misc.el (url-data): Call mm-disable-multibyte.
727
728 * lisp/url-file.el: Don't require mule-sysdp. Fix `file-truname'
729 typo.
730 (url-file-find-possibly-compressed-file): Doc fix.
731 (url-file): Bind coding-system-for-read. Call
732 mm-disable-multibyte.
733
734 * lisp/url-cache.el: Don't require mule-sysdp.
735 (url-store-in-cache): Avoid mule-write-region-no-coding-system.
736
737 * lisp/url.el: Don't require mule-sysdp.
738 (url-retrieve): Only set text properties if url is a string.
739
740 2001-05-14 Dave Love <fx@gnu.org>
741
742 * lisp/url-http.el (url-http-create-request): Declare
743 proxy-object, proxy-info special.
744 (url-http-handle-authentication): Declare success special.
745
746 2001-05-12 Dave Love <fx@gnu.org>
747
748 * lisp/url-http.el: Revert last change.
749
750 2001-05-10 Dave Love <fx@gnu.org>
751
752 * lisp/url-http.el (url-http-generic-after-change-function): Make
753 it permanent-local.
754
755 2001-05-05 Dave Love <fx@gnu.org>
756
757 * lisp/url-http.el: Autoload some functions.
758 (cl): Require when compiling.
759 (url-http-extra-headers): Defvar when compiling.
760 (url-http): Treat after-change-functions as a local hook.
761
762 * lisp/url-history.el (url-parse): Require.
763 (url-do-setup): Autoload.
764
765 * lisp/url-gw.el: Require url-vars. Autoload some functions.
766
767 * lisp/url-file.el: Require mailcap. Require cl when compiling.
768 Use (featurep 'xemacs).
769 (url-file-build-filename): Bind pos-index.
770 (url-file): Call url-find-file-dired, not url-dired-find-file.
771
772 * lisp/url-dired.el: Add copyright notice. Autoload some
773 functions.
774 (url-dired-minor-mode-map): Use (featurep 'xemacs).
775 (url-dired-find-file-mouse): Use mouse-set-point, not event-point.
776 (url-find-file-dired): Renamed from one version of
777 url-dired-find-file.
778
779 * lisp/url-cid.el: Don't require widget. Require mm-decode
780 unconditionally.
781
782 * lisp/url-util.el: Autoload mule-decode-string,
783 timezone-parse-date, timezone-make-date-arpa-standard.
784 (url-unreserved-chars): Fix list per RFC 2396.
785 (url-hexify-string): Maybe string-make-unibyte.
786
787 * lisp/url-news.el: Require nntp.
788
789 * lisp/url-imap.el: Require cl when compiling. Require nnimap
790 unconditionally.
791
792 2001-05-04 Dave Love <fx@gnu.org>
793
794 * lisp/url-handlers.el (url-file-local-copy): Use make-temp-file,
795 not non-existent mailcap-generate-unique-filename.
796
797 * lisp/url-privacy.el: Require url-vars. Require cl when
798 compiling.
799
800 * lisp/url-parse.el: Require url-vars. Autoload
801 url-scheme-get-property.
802
803 * lisp/url-nfs.el: Require cl when compiling. Test for XEmacs
804 with featurep.
805
806 * lisp/url-mailto.el: Require cl when compiling.
807
808 * lisp/url-cookie.el (url-cookie-handle-set-cookie): Call
809 url-parse-args, not url-util-parse-args.
810
811 * lisp/url-cache.el (url-cache-expired): Remove bogus `return'.
812
813 2001-04-09 Dave Love <fx@gnu.org>
814
815 * lisp/mule-sysdp.el (mule-detect-coding-version)
816 (mule-code-convert-region, mule-inhibit-code-conversion)
817 (mule-write-region-no-coding-system, mule-encode-string)
818 (mule-decode-string, mule-truncate-string)
819 (mule-find-charset-region, mule-coding-system-name)
820 (mule-find-coding-system, mule-make-iso-character): Grok Mule 5.0.
821 [There must be a better way.]
822 (mule-coding-system-p, string-width): Use defalias.
823
824 2001-01-03 Sam Steingold <sds@gnu.org>
825
826 * lisp/url-http.el (url-http-wait-for-headers-change-function):
827 set `url-http-end-of-headers' to 0 for HTTP 0.9
828
829 2001-01-02 Sam Steingold <sds@gnu.org>
830
831 * lisp/url-auth.el (provide): `url-auth', not `urlauth'
832
833 2000-12-22 Dave Love <fx@gnu.org>
834
835 * lisp/url-history.el (url): Don't require (to avoid recursion).
836 (cl): Require when compiling.
837
838 * lisp/url-http.el (url-auth): Require.
839 (url-http-handle-authentication): Fix typo.
840
841 * lisp/url-cookie.el (url-cookie-setup-save-timer): Fix typo.
842
843 2000-12-20 Dave Love <fx@gnu.org>
844
845 * lisp/url.el: Require mm-decode, mm-view when compiling.
846 <not (fboundp 'puthash)>: Define puthash and
847 autoload other has functions rather than using cl-...hash.
848 (url-warn): Define.
849
850 * lisp/url-ns.el, lisp/url-methods.el, lisp/url-http.el: Avoid
851 cl-...hash functions.
852
853 * lisp/url-history.el: Avoid cl-...hash functions.
854 (url): Require.
855
856 * lisp/url-gw.el, lisp/url-cookie.el: Require cl only when
857 compiling.
858
859 2000-10-03 William M. Perry <wmperry@aventail.com>
860
861 * lisp/url-util.el (url-get-url-at-point): guard against 'url'
862 getting set to nil due to bad string matching. Subsequent matches
863 would then choke because we passed string-match a nil.
864
865 * lisp/url-http.el (url-http-parse-headers): Need to make the
866 connection as 'free' when we get a 304 response (found in cache),
867 or when a keep-alive conneection timed out, it would re-parse the
868 headers and dispatch to the callback again. Eek.
869
870 2000-10-02 William M. Perry <wmperry@aventail.com>
871
872 * lisp/url-http.el (url-http-chunked-encoding-after-change-function):
873 implemented chunked transfer-coding.
874 (url-http-create-request): We can now advertise ourselves as a 1.1
875 compliant browser!
876
877 2000-07-28 Sam Steingold <sds@gnu.org>
878
879 * lisp/url-methods.el (url-scheme-default-loader): `callback' and
880 `cbargs' are optional args (for calling from w3).
881 (url-scheme-register-proxy): typos fixes: `url-match' replaced
882 with `string-match' and `protocol' with `scheme'.
883
884 2000-07-18 Sam Steingold <sds@gnu.org>
885
886 * lisp/url-handlers.el (require 'url): For
887 `url-retrieve-synchronously'.
888 * lisp/url-history.el (url-history-save-interval): Avoid
889 circularity.
890
891 2000-07-10 William M. Perry <wmperry@aventail.com>
892
893 * lisp/mule-sysdp.el (mule-make-iso-character): If we are not in
894 mule, and the character requested is > 255, then return "~"
895 instead of letting whoever call us signal an error when they try
896 to insert the character.
897 (mule-make-iso-character): Also wrap the whole thing in a
898 condition case and return "~" on error, in case make-char bombs on
899 us.
900
901 * lisp/url-cid.el (url-cid): Fixed stupid mistake in the loader
902 for cid parts.
903
904 * lisp/url-util.el (url-display-percentage): New routine that uses
905 the progress bar under XEmacs if available. Looks very sexy under
906 XEmacs/GTK hacked to use the GNOME statusbar.
907
908 * lisp/url-http.el
909 (url-http-content-length-after-change-function): Use new function
910 url-display-percentage instead of url-lazy-message.
911
912 2000-01-27 William M. Perry <wmperry@aventail.com>
913
914 * lisp/url-file.el (url-file-build-filename): Work around for
915 differences in ange-ftp / efs handling of port numbers other than
916 21.
917
918 1999-12-24 William M. Perry <wmperry@aventail.com>
919
920 * lisp/url-irc.el: Added pointer to draft specification for the
921 IRC URL so people don't think I'm crazy.
922
923 * configure.in: Checks to make sure that Gnus was found, since we
924 HAVE to have it now. Removed conditional compilation of
925 url-cid.el
926
927 1999-12-16 Eric Marsden <emarsden@mail.dotcom.fr>
928
929 * lisp/url-util.el (url-get-url-at-point): Allow URLs wrapped in
930 () to have periods at the end of the chunk.
931
932 1999-12-14 William M. Perry <wmperry@aventail.com>
933
934 * lisp/url-misc.el (url-man): Implemented `man' URL types.
935 (url-info): Autoload.
936 (url-man): Ditto.
937 (url-rlogin): Ditto.
938 (url-telnet): Ditto.
939 (url-tn3270): Ditto.
940 (url-generic-emulator-loader): Ditto.
941
942 * lisp/url-https.el (url-https-create-secure-wrapper): New macro
943 to wrap arbitrary `http' methods with the appropriate magic to
944 turn SSL on.
945 (file-exists-p): Use it.
946 (file-readable-p): Use it.
947 (file-attributes): Use it.
948
949 * lisp/url-news.el (url-news-fetch-newsgroup): When building the
950 server spec for Gnus, make sure we set
951 nntp-open-connection-function directly, so that other news-related
952 functions above us can set it.
953 (url-snews): Implement `snews' URLs using `nntp-open-ssl-stream'.
954 (url-nntp): Autoload.
955 (url-snews): Ditto.
956 (url-news): Ditto.
957
958 1999-12-12 William M. Perry <wmperry@aventail.com>
959
960 * lisp/url-http.el (url-http-parse-response): New function to
961 parse just the HTTP response code out of the buffer, without
962 taking any other actions.
963 (url-http-wait-for-headers-change-function): Use it here when we
964 know we have an HTTP/1.x response.
965 (url-http-wait-for-headers-change-function): Special case a
966 response code of '304' or there could be some delays waiting for
967 keep-alives to time out on cached documents with no known
968 content-length on the server.
969
970 1999-12-11 William M. Perry <wmperry@aventail.com>
971
972 * aclocal.m4 (AC_CHECK_CUSTOMLOADS): Don't use $(EMACS) in here -
973 the Makefile does that for us. We just need to provide what files
974 to load/functions to run.
975
976 * lisp/url-imap.el (url-imap-open-host): Need to bind
977 nnimap-server-buffer or `nnimap-open-server' chokes trying to use
978 the current buffer as the IMAP server buffer, which fails
979 miserably.
980
981 1999-12-11 Simon Josefsson <jas@pdc.kth.se>
982
983 * lisp/url-imap.el: Initial (rough) implementation for IMAP urls.
984
985 1999-12-11 William M. Perry <wmperry@aventail.com>
986
987 * lisp/url-file.el (url-file-asynch-callback): Make the checks for
988 ange-ftp vs. efs calling semantics consistent, so that if someone
989 has NEITHER of them loaded, everything should still work.
990
991 * lisp/url-handlers.el (url-copy-file): Autoload.
992 (url-file-local-copy): Ditto.
993 (url-insert-file-contents): Ditto.
994 (url-setup-file-name-handlers): Ditto.
995
996 1999-12-10 William M. Perry <wmperry@aventail.com>
997
998 * lisp/url-http.el (mail-parse): Since we use functions from here,
999 we should require it, eh?
1000
1001 1999-12-10 01:57:01 Shenghuo ZHU <zsh@cs.rochester.edu>
1002
1003 * lisp/url-cookie.el (url-cookie-multiple-line): One line cookie
1004 if nil.
1005 (url-cookie-generate-header-lines): Use it.
1006
1007 1999-12-06 William M. Perry <wmperry@aventail.com>
1008
1009 * lisp/mule-sysdp.el (mule-code-convert-region): Deal with Mule
1010 4.1 gracefully
1011
1012 * lisp/url-news.el: Reimplemented news and nntp URL support. No
1013 longer bothers to check for outdated Gnus versions, since this
1014 will not work without them anyway.
1015
1016 1999-12-05 Dave Love <fx@gnu.org>
1017
1018 * lisp/url-methods.el, lisp/url-proxy.el, lisp/url-util.el,
1019 lisp/url.el:
1020 Require url-parse.
1021
1022 1999-12-05 William M. Perry <wmperry@aventail.com>
1023
1024 * lisp/url-http.el (url-http-find-free-connection): Spit out a
1025 message when we have to contact a host so the user always gets
1026 at least some feedback.
1027
1028 * lisp/url-expand.el (url-expander-remove-relative-links): Moved and
1029 renamed function.
1030 (url-default-expander): Use it.
1031
1032 * lisp/url-file.el (url-file-asynch-callback): Deal with just efs-auto as
1033 well as efs.
1034 (url-file): Add default content-type of application/octet-stream if none
1035 known.
1036 (url-file): Corrected bad call to url-host-is-local-p
1037
1038 * lisp/url-handlers.el (url-insert-file-contents): Emacs doesn't
1039 like buffer-substring with nil arguments.
1040 (url-copy-file): Use mm-destroy-parts instead of just killing
1041 the buffer. Use defined interfaces when available!
1042 (url-insert-file-contents): Ditto.
1043
1044 * lisp/url-http.el (url-http-create-request): Lots of changes to
1045 get proxying working.
1046
1047 * lisp/url-methods.el (url-scheme-register-proxy): New function to
1048 find and register a proxy for a specific scheme.
1049 (url-scheme-get-property): Use it when we load a URL scheme for
1050 the first time.
1051
1052 * lisp/url-util.el (url-get-url-at-point): Re-integrated
1053
1054 1999-12-04 William M. Perry <wmperry@aventail.com>
1055
1056 * lisp/url-file.el (url-file): Signal an error if
1057 url-file-build-filename could not find the filename.
1058
1059 1999-12-01 William M. Perry <wmperry@aventail.com>
1060
1061 * lisp/url.el (url-retrieve): Use url-history-update-url instead
1062 of manipulating the hash table directly.
1063
1064 * lisp/url-history.el (url-completion-function): New function to
1065 use for reading a URL with completion.
1066 (url-history-update-url): New function to hide the hashtable
1067 implementation from people inserting things into the history.
1068
1069 1999-11-30 William M. Perry <wmperry@aventail.com>
1070
1071 * lisp/url-proxy.el (url-proxy): Minor tweaks to get proxy support
1072 working.
1073
1074 * lisp/url-parse.el (url-generic-parse-url): Fix bad call to
1075 url-parse-args, which had changed the type of arguments it
1076 expects.
1077
1078 * lisp/url-handlers.el (url-insert-file-contents): Ditto.
1079 (url-copy-file): Ditto.
1080
1081 * lisp/url.el (url-mm-callback): Use mm-destroy-parts instead of
1082 just killing the buffer. Use defined interfaces when available!
1083
1084 * aclocal.m4 (AC_EMACS_LISP): Correctly redirect things out to
1085 AC_FD_CC so they show up in config.log
1086 (AC_EMACS_CHECK_LIB): Duh, fixed stupid mistake that would make
1087 this always return 't' instead of 'yes' on successfully finding
1088 the library.
1089
1090 * lisp/url-http.el (url-http-parse-headers): Added some
1091 DAV-specific error codes.
1092
1093 * lisp/url.el (url-retrieve): Allow pre-parsed URLs to be passed
1094 in.
1095 (url-retrieve-synchronously): Duh, make this function actually
1096 work again. Numerous problems with it, including variable name
1097 collisions - I love dynamically scoped lisps!
1098
1099 * lisp/url-nfs.el (url-nfs-create-wrapper): New function to create
1100 wrappers onto the appropriate file-based URLs for
1101 file-name-handlers.
1102
1103 * lisp/url-ftp.el: Moved the FTP stuff into it's own file - it
1104 might get messy with file-name-handlers and things.
1105
1106 * lisp/url-http.el (url-http-clean-headers): Fix problem when
1107 using 'HEAD' requests. Thou shalt not change the length of the
1108 region during an after-change-function.
1109
1110 * lisp/url-methods.el (url-scheme-methods): New variable that
1111 holds a list of the methods/variables we look for in a URL
1112 scheme.
1113 (url-scheme-get-property): Use it.
1114
1115 1999-11-29 William M. Perry <wmperry@aventail.com>
1116
1117 * lisp/url-http.el (url-http-file-attributes): Reimplemented.
1118 (url-http-file-exists-p): Ditto.
1119
1120 * lisp/url-nfs.el: Reimplemented the `nfs' URL scheme.
1121
1122 * lisp/url-file.el (url-file-create-wrapper): New macro to create
1123 file-name-handler stubs for all the FTP/FILE stuff.
1124
1125 * lisp/url-handlers.el: New file to handle file-name-handler-alist
1126 cruft. Generic interface on top of functions that each URL
1127 loader provides, if capable.
1128
1129 1999-11-27 William M. Perry <wmperry@aventail.com>
1130
1131 * lisp/url-https.el: Implemented HTTPS support.
1132
1133 1999-11-26 William M. Perry <wmperry@aventail.com>
1134
1135 * url-privacy.el (url-setup-privacy-info): Don't rely on
1136 device-type being defined. Not going to bother redistributing
1137 devices.el for just one function.
1138
1139 * url-methods.el (url-scheme-get-property): Emacs does not have
1140 the 3rd-argument to plist-get to specify the default. *sigh*
1141
1142 * url-dired.el (add-minor-mode): Added definition for Emacs.
1143
1144 * url-http.el (url-http-generic-after-change-function): New
1145 function, since Emacs does not allow you to change the
1146 after-change-functions variable from within a function run by
1147 said hook. This just hands it off to the REAL function.
1148 Side-effect is that this now works on Emacs at all. :)
1149
1150 * Initial checkin of rewritten URL library.
1151
1152 Local variables:
1153 coding: utf-8
1154 End: