diff options
| author | Karoly Lorentey | 2006-07-14 05:56:32 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2006-07-14 05:56:32 +0000 |
| commit | 99715bbc447eb633e45ffa23b87284771ce3ac74 (patch) | |
| tree | 3a8a53dfe3dbdd9f8e36965e9f043eae522d3c0e /lisp/url | |
| parent | 556b89447234f15d1784a23dadbfe429464463a8 (diff) | |
| parent | 763bb2d43615bc3ae816422f965d76d5e1ae4bdd (diff) | |
| download | emacs-99715bbc447eb633e45ffa23b87284771ce3ac74.tar.gz emacs-99715bbc447eb633e45ffa23b87284771ce3ac74.zip | |
Merged from emacs@sv.gnu.org.
Patches applied:
* emacs@sv.gnu.org/emacs--devo--0--patch-331
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-332
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-333
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-334
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-335
Add note about "link" button-class to etc/TODO
* emacs@sv.gnu.org/emacs--devo--0--patch-336
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-337
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-338
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-339
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-340
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-341
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-342
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-343
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-344
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-345
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-346
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-347
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-348
Update for ERC 5.1.3.
* emacs@sv.gnu.org/emacs--devo--0--patch-349
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-350
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/gnus--rel--5.10--patch-111
Update from CVS: texi/gnus.texi (Summary Buffer Lines): Fix typo.
* emacs@sv.gnu.org/gnus--rel--5.10--patch-112
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-113
Merge from emacs--devo--0
* emacs@sv.gnu.org/gnus--rel--5.10--patch-114
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-572
Diffstat (limited to 'lisp/url')
| -rw-r--r-- | lisp/url/ChangeLog | 17 | ||||
| -rw-r--r-- | lisp/url/url-cookie.el | 21 | ||||
| -rw-r--r-- | lisp/url/url-irc.el | 4 |
3 files changed, 30 insertions, 12 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index 8eb2cd8471b..901fac01208 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,8 +1,23 @@ | |||
| 1 | 2006-07-12 Michael Olson <mwolson@gnu.org> | ||
| 2 | |||
| 3 | * url-irc.el (url-irc-erc): Call erc-handle-irc-url. | ||
| 4 | |||
| 5 | 2006-07-11 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 6 | |||
| 7 | * url-cookie.el: Remove spurious * in docstrings. | ||
| 8 | (url-cookie-write-file): Don't use versioned backups. | ||
| 9 | (url-cookie-host-can-set-p): Remove unused var `tmp'. | ||
| 10 | |||
| 11 | 2006-07-04 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> | ||
| 12 | |||
| 13 | * url-cookie.el (url-cookie-save-interval): Move to url-cookie group. | ||
| 14 | (url-cookie-write-file): Reset url-cookies-changed-since-last-save. | ||
| 15 | |||
| 1 | 2006-05-12 Reiner Steib <Reiner.Steib@gmx.de> | 16 | 2006-05-12 Reiner Steib <Reiner.Steib@gmx.de> |
| 2 | 17 | ||
| 3 | * url-http.el (url-http-file-exists-p): Test if status is integer. | 18 | * url-http.el (url-http-file-exists-p): Test if status is integer. |
| 4 | 19 | ||
| 5 | 2006-05-05 Andreas Seltenreich <seltenreich@gmx.de> (tiny change) | 20 | 2006-05-05 Andreas Seltenreich <seltenreich@gmx.de> |
| 6 | 21 | ||
| 7 | * url-http.el (url-http-parse-headers): Don't reuse connection if | 22 | * url-http.el (url-http-parse-headers): Don't reuse connection if |
| 8 | "Connection: close" header was seen. | 23 | "Connection: close" header was seen. |
diff --git a/lisp/url/url-cookie.el b/lisp/url/url-cookie.el index 53ba75f4cbb..e74d4989117 100644 --- a/lisp/url/url-cookie.el +++ b/lisp/url/url-cookie.el | |||
| @@ -88,18 +88,18 @@ A cookie vector object is a vector of 7 slots: | |||
| 88 | (defvar url-cookie-storage nil "Where cookies are stored.") | 88 | (defvar url-cookie-storage nil "Where cookies are stored.") |
| 89 | (defvar url-cookie-secure-storage nil "Where secure cookies are stored.") | 89 | (defvar url-cookie-secure-storage nil "Where secure cookies are stored.") |
| 90 | (defcustom url-cookie-file nil | 90 | (defcustom url-cookie-file nil |
| 91 | "*File where cookies are stored on disk." | 91 | "File where cookies are stored on disk." |
| 92 | :type '(choice (const :tag "Default" :value nil) file) | 92 | :type '(choice (const :tag "Default" :value nil) file) |
| 93 | :group 'url-file | 93 | :group 'url-file |
| 94 | :group 'url-cookie) | 94 | :group 'url-cookie) |
| 95 | 95 | ||
| 96 | (defcustom url-cookie-confirmation nil | 96 | (defcustom url-cookie-confirmation nil |
| 97 | "*If non-nil, confirmation by the user is required to accept HTTP cookies." | 97 | "If non-nil, confirmation by the user is required to accept HTTP cookies." |
| 98 | :type 'boolean | 98 | :type 'boolean |
| 99 | :group 'url-cookie) | 99 | :group 'url-cookie) |
| 100 | 100 | ||
| 101 | (defcustom url-cookie-multiple-line nil | 101 | (defcustom url-cookie-multiple-line nil |
| 102 | "*If nil, HTTP requests put all cookies for the server on one line. | 102 | "If nil, HTTP requests put all cookies for the server on one line. |
| 103 | Some web servers, such as http://www.hotmail.com/, only accept cookies | 103 | Some web servers, such as http://www.hotmail.com/, only accept cookies |
| 104 | when they are on one line. This is broken behavior, but just try | 104 | when they are on one line. This is broken behavior, but just try |
| 105 | telling Microsoft that." | 105 | telling Microsoft that." |
| @@ -168,7 +168,13 @@ telling Microsoft that." | |||
| 168 | (insert ")\n(setq url-cookie-secure-storage\n '") | 168 | (insert ")\n(setq url-cookie-secure-storage\n '") |
| 169 | (pp url-cookie-secure-storage (current-buffer)) | 169 | (pp url-cookie-secure-storage (current-buffer)) |
| 170 | (insert ")\n") | 170 | (insert ")\n") |
| 171 | (insert ";; Local Variables:\n" | ||
| 172 | ";; version-control: never\n" | ||
| 173 | ";; no-byte-compile: t\n" | ||
| 174 | ";; End:\n") | ||
| 175 | (set (make-local-variable 'version-control) t) | ||
| 171 | (write-file fname) | 176 | (write-file fname) |
| 177 | (setq url-cookies-changed-since-last-save nil) | ||
| 172 | (kill-buffer (current-buffer)))))) | 178 | (kill-buffer (current-buffer)))))) |
| 173 | 179 | ||
| 174 | (defun url-cookie-store (name value &optional expires domain localpart secure) | 180 | (defun url-cookie-store (name value &optional expires domain localpart secure) |
| @@ -313,18 +319,17 @@ telling Microsoft that." | |||
| 313 | '.'s in the domain name in order to set a cookie.") | 319 | '.'s in the domain name in order to set a cookie.") |
| 314 | 320 | ||
| 315 | (defcustom url-cookie-trusted-urls nil | 321 | (defcustom url-cookie-trusted-urls nil |
| 316 | "*A list of regular expressions matching URLs to always accept cookies from." | 322 | "A list of regular expressions matching URLs to always accept cookies from." |
| 317 | :type '(repeat regexp) | 323 | :type '(repeat regexp) |
| 318 | :group 'url-cookie) | 324 | :group 'url-cookie) |
| 319 | 325 | ||
| 320 | (defcustom url-cookie-untrusted-urls nil | 326 | (defcustom url-cookie-untrusted-urls nil |
| 321 | "*A list of regular expressions matching URLs to never accept cookies from." | 327 | "A list of regular expressions matching URLs to never accept cookies from." |
| 322 | :type '(repeat regexp) | 328 | :type '(repeat regexp) |
| 323 | :group 'url-cookie) | 329 | :group 'url-cookie) |
| 324 | 330 | ||
| 325 | (defun url-cookie-host-can-set-p (host domain) | 331 | (defun url-cookie-host-can-set-p (host domain) |
| 326 | (let ((numdots 0) | 332 | (let ((numdots 0) |
| 327 | (tmp domain) | ||
| 328 | (last nil) | 333 | (last nil) |
| 329 | (case-fold-search t) | 334 | (case-fold-search t) |
| 330 | (mindots 3)) | 335 | (mindots 3)) |
| @@ -444,7 +449,7 @@ telling Microsoft that." | |||
| 444 | (defvar url-cookie-timer nil) | 449 | (defvar url-cookie-timer nil) |
| 445 | 450 | ||
| 446 | (defcustom url-cookie-save-interval 3600 | 451 | (defcustom url-cookie-save-interval 3600 |
| 447 | "*The number of seconds between automatic saves of cookies. | 452 | "The number of seconds between automatic saves of cookies. |
| 448 | Default is 1 hour. Note that if you change this variable outside of | 453 | Default is 1 hour. Note that if you change this variable outside of |
| 449 | the `customize' interface after `url-do-setup' has been run, you need | 454 | the `customize' interface after `url-do-setup' has been run, you need |
| 450 | to run the `url-cookie-setup-save-timer' function manually." | 455 | to run the `url-cookie-setup-save-timer' function manually." |
| @@ -453,7 +458,7 @@ to run the `url-cookie-setup-save-timer' function manually." | |||
| 453 | (if (bound-and-true-p url-setup-done) | 458 | (if (bound-and-true-p url-setup-done) |
| 454 | (url-cookie-setup-save-timer))) | 459 | (url-cookie-setup-save-timer))) |
| 455 | :type 'integer | 460 | :type 'integer |
| 456 | :group 'url) | 461 | :group 'url-cookie) |
| 457 | 462 | ||
| 458 | (defun url-cookie-setup-save-timer () | 463 | (defun url-cookie-setup-save-timer () |
| 459 | "Reset the cookie saver timer." | 464 | "Reset the cookie saver timer." |
diff --git a/lisp/url/url-irc.el b/lisp/url/url-irc.el index 6a7a62573e9..19eec6f2ef2 100644 --- a/lisp/url/url-irc.el +++ b/lisp/url/url-irc.el | |||
| @@ -68,9 +68,7 @@ PASSWORD - What password to use" | |||
| 68 | (switch-to-buffer (concat chan "@" host))))) | 68 | (switch-to-buffer (concat chan "@" host))))) |
| 69 | 69 | ||
| 70 | (defun url-irc-erc (host port channel user password) | 70 | (defun url-irc-erc (host port channel user password) |
| 71 | (erc-select :server host :port port :nick user :password password) | 71 | (erc-handle-irc-url host port channel user password)) |
| 72 | (when channel | ||
| 73 | (erc-join-channel channel))) | ||
| 74 | 72 | ||
| 75 | ;;;###autoload | 73 | ;;;###autoload |
| 76 | (defun url-irc (url) | 74 | (defun url-irc (url) |