* url-parse.el (url): Use defstruct rather than macros. Update all callers.
[bpt/emacs.git] / lisp / url / ChangeLog
index a6afb0b..7c03877 100644 (file)
@@ -1,3 +1,219 @@
+2007-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * url-parse.el (url): Use defstruct rather than macros.
+       (url-generic-parse-url):
+       * url-util.el (url-normalize-url, url-truncate-url-for-viewing):
+       * url-methods.el (url-scheme-register-proxy):
+       * url-mailto.el (url-mailto):
+       * url-file.el (url-file-build-filename):
+       * url-expand.el (url-identity-expander, url-default-expander):
+       Update all callers.
+
+2007-08-08  Glenn Morris  <rgm@gnu.org>
+
+       * url-auth.el, url-cache.el, url-dav.el, url-file.el, vc-dav.el:
+       Replace `iff' in doc-strings and comments.
+
+2007-07-25  Glenn Morris  <rgm@gnu.org>
+
+       * Relicense all FSF files to GPLv3 or later.
+
+2007-06-12  Tom Tromey  <tromey@redhat.com>
+
+       * url.el (url-configuration-directory): Use user-emacs-directory.
+
+2007-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * url-cookie.el (url-cookie-name, url-cookie-value)
+       (url-cookie-expires, url-cookie-localpart, url-cookie-domain)
+       (url-cookie-secure, url-cookie-set-name, url-cookie-set-value)
+       (url-cookie-set-expires, url-cookie-set-localpart)
+       (url-cookie-set-domain, url-cookie-set-secure)
+       (url-cookie-retrieve-arg, url-cookie-create, url-cookie-p): Remove.
+       (url-cookie): New struct.
+       (url-cookie-store): Use setf instead of url-cookie-set-*.
+
+2007-05-29  Chong Yidong  <cyd@stupidchicken.com>
+
+       * url-mailto.el (url-mailto): Insert body after
+       mail-header-separator if present, so that it is before signature.
+       Suggested by Leo <sdl.web@gmail.com>.
+
+2007-04-15  Chong Yidong  <cyd@stupidchicken.com>
+
+       * url-parse.el (url-generic-parse-url): Revert 2006-10-09 changes.
+
+2007-04-13  Chong Yidong  <cyd@stupidchicken.com>
+
+       * url-http.el (url-http-parse-headers): Stop after a set number of
+       redirections.  Suggested by Diane Murray.
+
+       * url-vars.el (url-max-redirections): New var.
+
+2007-04-01  Diane Murray  <disumu@x3y2z1.net>  (tiny change)
+
+       * url-http.el (url-http-handle-cookies): Reverse list returned by
+       `mail-fetch-field', so that cookies are set in the correct order.
+
+       * url-cookie.el (url-cookie-retrieve, url-cookie-host-can-set-p):
+       Deal with wildcard dots in domain values.
+
+2007-03-31  Andreas Seltenreich  <uwi7@rz.uni-karlsruhe.de>
+
+       * url-http.el (url-http-mark-connection-as-busy)
+       (url-http-mark-connection-as-free): Clear query-on-exit flag on
+       idle connections.
+
+2007-02-04  Chong Yidong  <cyd@stupidchicken.com>
+
+       * url-http.el (url-http-connection-opened): New variable.
+       (url-http): Initialize it.
+       (url-http-async-sentinel): Don't try changing sentinels.
+       Run url-http-end-of-document-sentinel if necessary.
+
+2007-01-29  Juanma Barranquero  <lekktu@gmail.com>
+
+       * url-auth.el (url-get-authentication): Fix typo in docstring.
+
+2007-01-14  Magnus Henoch  <mange@freemail.hu>
+
+       * url-proxy.el (url-proxy-object): Remove.
+       (url-proxy): Don't use `url-proxy-object'.  Act according to type of
+       proxy (currently only HTTP supported).
+
+       * url.el (url-retrieve-internal): Don't use `url-proxy-object'.
+
+       * url-http.el (url-http-proxy): New variable.
+       (url-http-create-request): Use it.  Don't use `url-proxy-object'.
+       (url-http): Treat `url' argument as resource to download, and
+       dynamic variable `url-using-proxy' as proxy to use.  Set
+       `url-current-object' to actual URL, and `url-http-proxy' to proxy
+       used.
+       (url-http-handle-cookies): Assume that `url-current-object' does
+       not point to the proxy used.
+       (url-http-async-sentinel): Adapt error message.
+
+2006-12-10  Juanma Barranquero  <lekktu@gmail.com>
+
+       * url-gw.el (url-gateway-nslookup-program): Doc fix.
+
+2006-12-08  Magnus Henoch  <mange@freemail.hu>
+
+       * url-proxy.el (url-proxy-object): New variable.
+       (url-proxy): Bind it instead of `proxy-object'.
+
+       * url-http.el (url-http-create-request): Remove url argument, use
+       the buffer-local variable `url-http-target-url' instead.  Both
+       callers updated.  Simplify proxy handling.
+       (url-http): Don't make proxy-object buffer local.
+
+       * url.el (url-retrieve-internal): Bind url-proxy-object to nil.
+
+2006-11-26  Magnus Henoch  <mange@freemail.hu>
+
+       * url-http.el (url-http-wait-for-headers-change-function): Use
+       `when' instead of `if' when possible.
+       (url-http): Define url-http-response-version.
+       (url-http-parse-response): Set it.
+       (url-http-parse-headers): Use it to determine keep-alive behavior.
+
+2006-11-23  Diane Murray  <disumu@x3y2z1.net>  (tiny change)
+
+       * url-http.el (url-http-content-length-after-change-function): Use
+       `url-lazy-message'.
+
+       * url-util.el (url-display-percentage): Only show a message if
+       `url-show-status' is non-nil.
+
+2006-11-15  Magnus Henoch  <mange@freemail.hu>
+
+       * url-http.el (url-http): Make proxy-object buffer-local, to
+       handle proxied asynchronous connections correctly.
+
+       * url-parse.el (url-generic-parse-url): Use with-temp-buffer.
+
+2006-11-15  Shun-ichi GOTO  <gotoh@taiyo.co.jp>  (tiny change)
+
+       * url-http.el (url-http-wait-for-headers-change-function):
+       Defer detection of HTTP 0.9 until we have at least one line.
+
+2006-11-10  Shun-ichi GOTO  <gotoh@taiyo.co.jp>  (tiny change)
+
+       * url-http.el (url-http-mark-connection-as-free)
+       (url-http-find-free-connection): Don't treat process with status
+       `connect' as free.
+       (url-http-async-sentinel): Request correct url.
+
+2006-11-08  Magnus Henoch  <mange@freemail.hu>
+
+       * url-http.el (url-http-handle-authentication): If there are
+       several authentication headers, use the strongest available
+       method.
+
+       * url.el (url-retrieve-synchronously): Allow quitting when
+       inhibit-quit is t.
+
+2006-11-03  Shun-ichi GOTO  <gotoh@taiyo.co.jp>  (tiny change)
+
+       * url-http.el (url-http-handle-authentication): If there are
+       several authentication headers, use the first with a supported
+       method.
+
+2006-11-01  Magnus Henoch  <mange@freemail.hu>
+
+       * url-http.el (url-http-create-request): Use buffer-local
+       equivalents of dynamically bound variables.
+
+2006-10-29  Magnus Henoch  <mange@freemail.hu>
+
+       * url-gw.el (url-open-stream): Really use asynchronous
+       connections (accidentally disabled during debugging).
+
+2006-10-28  Magnus Henoch  <mange@freemail.hu>
+
+       * url-http.el (url-http-parse-headers): Fix misplaced paren.
+
+2006-10-27  Magnus Henoch  <mange@freemail.hu>
+
+       * url-http.el (url-http-mark-connection-as-free): Verify that
+       connection is open before saving it.
+       (url-http-handle-authentication): Use url-retrieve-internal
+       instead of url-retrieve.
+       (url-http-parse-headers): Adapt to new callback interface.
+       (url-http): Handle non-blocking connections.
+       (url-http-async-sentinel): Create.
+
+       * url.el (url-retrieve): Update docstring for new callback interface.
+       Remove all code.
+       (url-retrieve-internal): Move code from url-retrieve here.
+
+       * url-gw.el (url-open-stream): Use a non-blocking socket for
+       `native' gateway method, if available.
+
+2006-10-16  Magnus Henoch  <mange@freemail.hu>
+
+       * url-http.el (url-https-create-secure-wrapper):
+       Always use tls gateway method.
+
+2006-10-12  Magnus Henoch  <mange@freemail.hu>
+
+       * url-http.el (url-http-find-free-connection):
+       Handle url-open-stream returning nil.
+
+2006-10-11  Magnus Henoch  <mange@freemail.hu>
+
+       * url-https.el: Remove (clashes with url-http on 8+3 systems).
+
+       * url-http.el: Move contents of url-https.el here.  Add autoloads.
+
+2006-10-09  Magnus Henoch  <mange@freemail.hu>
+
+       * url-parse.el (url-generic-parse-url): Handle URLs with empty
+       path component and non-empty query component.  Untangle path,
+       query and fragment parsing code.  Add references to RFC 3986 in
+       comments.
+       (url-recreate-url-attributes): Start query string with "?", not ";".
+
 2006-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * url-dav.el (url-dav-file-attributes): Simplify.
        getenv returns an empty string for http_proxy.  This prevents an
        error when calling `format' later on.
 
-2006-08-31  Diane Murray  <disumu@x3y2z1.net>
+2006-08-31  Diane Murray  <disumu@x3y2z1.net>  (tiny change)
 
        * url-parse.el (url-recreate-url-attributes): New function, code
        simply moved from `url-recreate-url'.
        * url-http.el (url-http-create-request):
        Use `url-recreate-url-attributes' when setting real-fname.
 
-2006-08-29  Diane Murray  <disumu@x3y2z1.net>
+2006-08-29  Diane Murray  <disumu@x3y2z1.net>  (tiny change)
 
        * url-cookie.el (url-cookie-write-file): Really don't use versioned
        backups.
 2004-11-20  Masatake YAMATO  <jet@gyve.org>
 
        * url.el (url-mm-callback): Delay the invocation
-       of `mm-destroy-parts'. Invoke `mm-destroy-parts'
+       of `mm-destroy-parts'.  Invoke `mm-destroy-parts'
        when the buffer is killed.
 
 2004-11-12  Masatake YAMATO  <jet@gyve.org>
 2004-11-02  Masatake YAMATO  <jet@gyve.org>
 
        * url-imap.el (url-imap-open-host): Don't use
-       `string-to-int'. The port returned by `url-port'
+       `string-to-int'.  The port returned by `url-port'
        is expected to be an integer.
 
        * url-irc.el (url-irc): Ditto.
 
 2004-10-10  Lars Hansen  <larsh@math.ku.dk>
 
-       * url-auth.el: Update header and footer.
-
-       * url-cache.el: Update header and footer.
-
-       * url-cid.el: Update header and footer.
-
-       * url-dired.el: Update header and footer.
-
-       * url-expand.el: Update header and footer.
-
-       * url-ftp.el: Update header and footer.
-
-       * url-gw.el: Update header and footer.
-
-       * url-imap.el: Update header and footer.
-
-       * url-irc.el: Update header and footer.
-
-       * url-misc.el: Update header and footer.
-
-       * url-news.el: Update header and footer.
-
-       * url-ns.el: Update header and footer.
-
-       * url-privacy.el: Update header and footer.
-
+       * url-auth.el:
+       * url-cache.el:
+       * url-cid.el:
+       * url-dired.el:
+       * url-expand.el:
+       * url-ftp.el:
+       * url-gw.el:
+       * url-imap.el:
+       * url-irc.el:
+       * url-misc.el:
+       * url-news.el:
+       * url-ns.el:
+       * url-privacy.el:
        * url-proxy.el: Update header and footer.
 
        * url-vars.el: Update header.
 
 2004-10-10  Lars Hansen  <larsh@math.ku.dk>
 
-       * url-auth.el: Fix copyright notice.
-
-       * url-cache.el: Fix copyright notice.
-
-       * url-cookie.el: Fix copyright notice.
-
-       * url-dired.el: Fix copyright notice.
-
-       * url-file.el: Fix copyright notice.
-
-       * url-ftp.el: Fix copyright notice.
-
-       * url-handlers.el: Fix copyright notice.
-
-       * url-history.el: Fix copyright notice.
-
-       * url-irc.el: Fix copyright notice.
-
-       * url-mailto.el: Fix copyright notice.
-
-       * url-methods.el: Fix copyright notice.
-
-       * url-misc.el: Fix copyright notice.
-
-       * url-news.el: Fix copyright notice.
-
-       * url-nfs.el: Fix copyright notice.
-
-       * url-parse.el: Fix copyright notice.
-
-       * url-privacy.el: Fix copyright notice.
-
-       * url-vars.el: Fix copyright notice.
-
-       * url.el: Fix copyright notice.
-
+       * url-auth.el:
+       * url-cache.el:
+       * url-cookie.el:
+       * url-dired.el:
+       * url-file.el:
+       * url-ftp.el:
+       * url-handlers.el:
+       * url-history.el:
+       * url-irc.el:
+       * url-mailto.el:
+       * url-methods.el:
+       * url-misc.el:
+       * url-news.el:
+       * url-nfs.el:
+       * url-parse.el:
+       * url-privacy.el:
+       * url-vars.el:
+       * url.el:
        * url-util.el: Fix copyright notice.
 
 2004-10-06  Stefan Monnier  <monnier@iro.umontreal.ca>
        * lisp/url.el (url-retrieve-synchronously): Use sleep-for, not
        sit-for.  From monnier@gnu.org.
 
-2002-11-04  Walter C. Pelissero <walter@pelissero.org>
+2002-11-04  Walter C. Pelissero  <walter@pelissero.org>
 
        * lisp/url-methods.el (url-scheme-register-proxy): Make sure to convert
        port numbers to integers when creating the URL objects for proxies.
        * lisp/url-nfs.el: Fix `file-truname' typo.
 
        * lisp/url-news.el: Require cl when compiling.
-       (url-warn, gnus-group-read-ephemeral-group):  Autoload.
+       (url-warn, gnus-group-read-ephemeral-group): Autoload.
        (url-nntp-default-port, url-news-default-port, url-nntp): Delete.
        (url-news-fetch-newsgroup): Declare gnus-group-buffer special.
 
        * lisp/url-history.el: Avoid cl-...hash functions.
        (url): Require.
 
-       * lisp/url-gw.el, lisp/url-cookie.el:  Require cl only when compiling.
+       * lisp/url-gw.el, lisp/url-cookie.el: Require cl only when compiling.
 
 2000-10-03  William M. Perry  <wmperry@aventail.com>
 
        * configure.in: Checks to make sure that Gnus was found, since we
        HAVE to have it now.  Removed conditional compilation of url-cid.el
 
-1999-12-16  Eric Marsden <emarsden@mail.dotcom.fr>
+1999-12-16  Eric Marsden  <emarsden@mail.dotcom.fr>
 
        * lisp/url-util.el (url-get-url-at-point): Allow URLs wrapped in
        () to have periods at the end of the chunk.
        nnimap-server-buffer or `nnimap-open-server' chokes trying to use
        the current buffer as the IMAP server buffer, which fails miserably.
 
-1999-12-11  Simon Josefsson <jas@pdc.kth.se>
+1999-12-11  Simon Josefsson  <jas@pdc.kth.se>
 
        * lisp/url-imap.el: Initial (rough) implementation for IMAP urls.
 
        * lisp/url-http.el (mail-parse): Since we use functions from here,
        we should require it, eh?
 
-1999-12-10 01:57:01  Shenghuo ZHU  <zsh@cs.rochester.edu>
+1999-12-10  Shenghuo ZHU  <zsh@cs.rochester.edu>
 
        * lisp/url-cookie.el (url-cookie-multiple-line): One line cookie
        if nil.
 
        * Initial checkin of rewritten URL library.
 
-Local variables:
-coding: utf-8
-End:
+;; Local variables:
+;; coding: utf-8
+;; add-log-time-zone-rule: t
+;; End:
+
+    Copyright (C) 1999, 2001, 2002, 2004, 2005,
+       2006, 2007  Free Software Foundation, Inc.
+
+  This file is part of GNU Emacs.
+
+  GNU Emacs is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 3, or (at your option)
+  any later version.
+
+  GNU Emacs is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with GNU Emacs; see the file COPYING.  If not, write to the
+  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+  Boston, MA 02110-1301, USA.
 
 ;; arch-tag: ac117078-3091-4533-be93-098162ac2926