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