aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2008-07-02 11:14:38 +0000
committerJuanma Barranquero2008-07-02 11:14:38 +0000
commitd1ce47b068062c1d6373e5add5abfbab0114ccb3 (patch)
treecd2ce3e726e040f880af239e1e6eb432fd6a75b8
parent1d344f142ac4bff89bc7f65e03af30c69afc449b (diff)
downloademacs-d1ce47b068062c1d6373e5add5abfbab0114ccb3.tar.gz
emacs-d1ce47b068062c1d6373e5add5abfbab0114ccb3.zip
Typo and docstring fixes.
* url.el (url-do-setup): * url-dired.el (url-dired-minor-mode): * url-file.el (url-file-find-possibly-compressed-file): * url-gw.el (url-gateway-broken-resolution): * url-handlers.el (url-handler-regexp): * url-imap.el (url-imap-default-port): * url-methods.el (url-scheme-get-property): Fix typos in docstrings. * url-auth.el (url-basic-auth-storage, url-digest-auth): Fix typos in docstrings. (url-digest-auth-storage, url-register-auth-scheme): Reflow docstrings. * url-cache.el (url-cache-prepare): Doc fix. (url-cache-create-filename-human-readable, url-cache-extract): Fix typos in docstrings. * url-dav.el (url-intersection, url-dav-iso8601-regexp) (url-dav-delete-something): Fix typos in docstrings. (url-dav-http-success-p, url-dav-file-name-all-completions) (url-dav-directory-files, url-dav-file-name-completion): Doc fixes. * url-http.el (url-http-idle-sentinel): Doc fix. * url-irc.el (url-irc-default-port): Fix typo in docstring. (url-irc-function): Doc fix. * url-util.el (url-get-url-filename-chars, url-unhex-string): Fix typos in docstrings. (url-file-extension): Doc fix. * url-vars.el (url-current-object, url-current-mime-headers) (url-privacy-level, url-mail-command, url-mime-language-string): Fix typos in docstrings. (url-honor-refresh-requests): Reflow docstring. (url-using-proxy): Doc fix.
-rw-r--r--lisp/url/ChangeLog38
-rw-r--r--lisp/url/url-auth.el22
-rw-r--r--lisp/url/url-cache.el8
-rw-r--r--lisp/url/url-dav.el23
-rw-r--r--lisp/url/url-dired.el2
-rw-r--r--lisp/url/url-file.el2
-rw-r--r--lisp/url/url-gw.el2
-rw-r--r--lisp/url/url-handlers.el2
-rw-r--r--lisp/url/url-http.el12
-rw-r--r--lisp/url/url-imap.el4
-rw-r--r--lisp/url/url-irc.el4
-rw-r--r--lisp/url/url-methods.el2
-rw-r--r--lisp/url/url-util.el10
-rw-r--r--lisp/url/url-vars.el23
-rw-r--r--lisp/url/url.el2
15 files changed, 96 insertions, 60 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index 5994e0909ff..d093d44631e 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,3 +1,41 @@
12008-07-02 Juanma Barranquero <lekktu@gmail.com>
2
3 * url.el (url-do-setup):
4 * url-dired.el (url-dired-minor-mode):
5 * url-file.el (url-file-find-possibly-compressed-file):
6 * url-gw.el (url-gateway-broken-resolution):
7 * url-handlers.el (url-handler-regexp):
8 * url-imap.el (url-imap-default-port):
9 * url-methods.el (url-scheme-get-property): Fix typos in docstrings.
10
11 * url-auth.el (url-basic-auth-storage, url-digest-auth):
12 Fix typos in docstrings.
13 (url-digest-auth-storage, url-register-auth-scheme): Reflow docstrings.
14
15 * url-cache.el (url-cache-prepare): Doc fix.
16 (url-cache-create-filename-human-readable, url-cache-extract):
17 Fix typos in docstrings.
18
19 * url-dav.el (url-intersection, url-dav-iso8601-regexp)
20 (url-dav-delete-something): Fix typos in docstrings.
21 (url-dav-http-success-p, url-dav-file-name-all-completions)
22 (url-dav-directory-files, url-dav-file-name-completion): Doc fixes.
23
24 * url-http.el (url-http-idle-sentinel): Doc fix.
25
26 * url-irc.el (url-irc-default-port): Fix typo in docstring.
27 (url-irc-function): Doc fix.
28
29 * url-util.el (url-get-url-filename-chars, url-unhex-string):
30 Fix typos in docstrings.
31 (url-file-extension): Doc fix.
32
33 * url-vars.el (url-current-object, url-current-mime-headers)
34 (url-privacy-level, url-mail-command, url-mime-language-string):
35 Fix typos in docstrings.
36 (url-honor-refresh-requests): Reflow docstring.
37 (url-using-proxy): Doc fix.
38
12008-06-22 Dan Nicolaescu <dann@ics.uci.edu> 392008-06-22 Dan Nicolaescu <dann@ics.uci.edu>
2 40
3 * vc-dav.el: Move to the parent directory to be together with the 41 * vc-dav.el: Move to the parent directory to be together with the
diff --git a/lisp/url/url-auth.el b/lisp/url/url-auth.el
index ebd5c54ce14..ce730ce74ea 100644
--- a/lisp/url/url-auth.el
+++ b/lisp/url/url-auth.el
@@ -51,7 +51,7 @@
51Must be a symbol pointing to another variable that will actually store 51Must be a symbol pointing to another variable that will actually store
52the information. The value of this variable is an assoc list of assoc 52the information. The value of this variable is an assoc list of assoc
53lists. The first assoc list is keyed by the server name. The cdr of 53lists. The first assoc list is keyed by the server name. The cdr of
54this is an assoc list based on the 'directory' specified by the url we 54this is an assoc list based on the 'directory' specified by the URL we
55are looking up.") 55are looking up.")
56 56
57(defun url-basic-auth (url &optional prompt overwrite realm args) 57(defun url-basic-auth (url &optional prompt overwrite realm args)
@@ -134,10 +134,10 @@ instead of the filename inheritance method."
134;;; This is very secure 134;;; This is very secure
135;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 135;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
136(defvar url-digest-auth-storage nil 136(defvar url-digest-auth-storage nil
137 "Where usernames and passwords are stored. Its value is an assoc list of 137 "Where usernames and passwords are stored.
138assoc lists. The first assoc list is keyed by the server name. The cdr of 138Its value is an assoc list of assoc lists. The first assoc list is
139this is an assoc list based on the 'directory' specified by the url we are 139keyed by the server name. The cdr of this is an assoc list based
140looking up.") 140on the 'directory' specified by the url we are looking up.")
141 141
142(defun url-digest-auth-create-key (username password realm method uri) 142(defun url-digest-auth-create-key (username password realm method uri)
143 "Create a key for digest authentication method" 143 "Create a key for digest authentication method"
@@ -151,7 +151,7 @@ looking up.")
151(defun url-digest-auth (url &optional prompt overwrite realm args) 151(defun url-digest-auth (url &optional prompt overwrite realm args)
152 "Get the username/password for the specified URL. 152 "Get the username/password for the specified URL.
153If optional argument PROMPT is non-nil, ask for the username/password 153If optional argument PROMPT is non-nil, ask for the username/password
154to use for the url and its descendants. If optional third argument 154to use for the URL and its descendants. If optional third argument
155OVERWRITE is non-nil, overwrite the old username/password pair if it 155OVERWRITE is non-nil, overwrite the old username/password pair if it
156is found in the assoc list. If REALM is specified, use that as the realm 156is found in the assoc list. If REALM is specified, use that as the realm
157instead of hostname:portnum." 157instead of hostname:portnum."
@@ -308,11 +308,11 @@ PROMPT is boolean - specifies whether to ask the user for a username/password
308(defun url-register-auth-scheme (type &optional function rating) 308(defun url-register-auth-scheme (type &optional function rating)
309 "Register an HTTP authentication method. 309 "Register an HTTP authentication method.
310 310
311TYPE is a string or symbol specifying the name of the method. This 311TYPE is a string or symbol specifying the name of the method.
312 should be the same thing you expect to get returned in an Authenticate 312 This should be the same thing you expect to get returned in
313 header in HTTP/1.0 - it will be downcased. 313 an Authenticate header in HTTP/1.0 - it will be downcased.
314FUNCTION is the function to call to get the authorization information. This 314FUNCTION is the function to call to get the authorization information.
315 defaults to `url-?-auth', where ? is TYPE 315 This defaults to `url-?-auth', where ? is TYPE.
316RATING a rating between 1 and 10 of the strength of the authentication. 316RATING a rating between 1 and 10 of the strength of the authentication.
317 This is used when asking for the best authentication for a specific 317 This is used when asking for the best authentication for a specific
318 URL. The item with the highest rating is returned." 318 URL. The item with the highest rating is returned."
diff --git a/lisp/url/url-cache.el b/lisp/url/url-cache.el
index 30ff4f83765..44aa027c3ea 100644
--- a/lisp/url/url-cache.el
+++ b/lisp/url/url-cache.el
@@ -46,8 +46,8 @@ Creates any necessary parent directories, deleting any non-directory files
46that would stop this. Returns nil if parent directories can not be 46that would stop this. Returns nil if parent directories can not be
47created. If FILE already exists as a non-directory, it changes 47created. If FILE already exists as a non-directory, it changes
48permissions of FILE or deletes FILE to make it possible to write a new 48permissions of FILE or deletes FILE to make it possible to write a new
49version of FILE. Returns nil if this can not be done. Returns nil if 49version of FILE. Returns nil if this can not be done, or if FILE already
50FILE already exists as a directory. Otherwise, returns t, indicating that 50exists as a directory. Otherwise, returns t, indicating that
51FILE can be created or overwritten." 51FILE can be created or overwritten."
52 (cond 52 (cond
53 ((url-cache-file-writable-p file) 53 ((url-cache-file-writable-p file)
@@ -82,7 +82,7 @@ FILE can be created or overwritten."
82 (nth 5 attribs)))) ; Can get last mod-time 82 (nth 5 attribs)))) ; Can get last mod-time
83 83
84(defun url-cache-create-filename-human-readable (url) 84(defun url-cache-create-filename-human-readable (url)
85 "Return a filename in the local cache for URL" 85 "Return a filename in the local cache for URL."
86 (if url 86 (if url
87 (let* ((url (if (vectorp url) (url-recreate-url url) url)) 87 (let* ((url (if (vectorp url) (url-recreate-url url) url))
88 (urlobj (url-generic-parse-url url)) 88 (urlobj (url-generic-parse-url url))
@@ -178,7 +178,7 @@ Very fast if you have an `md5' primitive function, suitably fast otherwise."
178 178
179;;;###autoload 179;;;###autoload
180(defun url-cache-extract (fnam) 180(defun url-cache-extract (fnam)
181 "Extract FNAM from the local disk cache" 181 "Extract FNAM from the local disk cache."
182 (erase-buffer) 182 (erase-buffer)
183 (insert-file-contents-literally fnam)) 183 (insert-file-contents-literally fnam))
184 184
diff --git a/lisp/url/url-dav.el b/lisp/url/url-dav.el
index 64d6f4ba72a..fc82c78b9aa 100644
--- a/lisp/url/url-dav.el
+++ b/lisp/url/url-dav.el
@@ -38,7 +38,7 @@
38 "List of supported DAV versions.") 38 "List of supported DAV versions.")
39 39
40(defun url-intersection (l1 l2) 40(defun url-intersection (l1 l2)
41 "Return a list of the elements occuring in both of the lists L1 and L2." 41 "Return a list of the elements occurring in both of the lists L1 and L2."
42 (if (null l2) 42 (if (null l2)
43 l2 43 l2
44 (let (result) 44 (let (result)
@@ -100,7 +100,7 @@
100 (list (concat "^" full-date) 100 (list (concat "^" full-date)
101 (concat "T" partial-time) 101 (concat "T" partial-time)
102 (concat "Z" time-numoffset))) 102 (concat "Z" time-numoffset)))
103 "List of regular expressions matching iso8601 dates. 103 "List of regular expressions matching ISO 8601 dates.
1041st regular expression matches the date. 1041st regular expression matches the date.
1052nd regular expression matches the time. 1052nd regular expression matches the time.
1063rd regular expression matches the (optional) timezone specification.") 1063rd regular expression matches the (optional) timezone specification.")
@@ -472,7 +472,7 @@ names (ie: DAV:resourcetype)."
472 depth nil namespaces)) 472 depth nil namespaces))
473 473
474(defmacro url-dav-http-success-p (status) 474(defmacro url-dav-http-success-p (status)
475 "Return whether PROPERTIES was the result of a successful DAV request." 475 "Return whether STATUS was the result of a successful DAV request."
476 `(= (/ (or ,status 500) 100) 2)) 476 `(= (/ (or ,status 500) 100) 2))
477 477
478 478
@@ -714,8 +714,7 @@ OBJ may be a buffer or a string."
714 (defmacro url-dav-delete-something (url lock-token &rest error-checking) 714 (defmacro url-dav-delete-something (url lock-token &rest error-checking)
715 "Delete URL completely, with no sanity checking whatsoever. DO NOT USE. 715 "Delete URL completely, with no sanity checking whatsoever. DO NOT USE.
716This is defined as a macro that will not be visible from compiled files. 716This is defined as a macro that will not be visible from compiled files.
717Use with care, and even then think three times. 717Use with care, and even then think three times."
718"
719 `(progn 718 `(progn
720 ,@error-checking 719 ,@error-checking
721 (url-dav-request ,url "DELETE" nil nil -1 720 (url-dav-request ,url "DELETE" nil nil -1
@@ -769,7 +768,7 @@ files in the collection as well."
769 nil) 768 nil)
770 769
771(defun url-dav-directory-files (url &optional full match nosort files-only) 770(defun url-dav-directory-files (url &optional full match nosort files-only)
772 "Return a list of names of files in DIRECTORY. 771 "Return a list of names of files in URL.
773There are three optional arguments: 772There are three optional arguments:
774If FULL is non-nil, return absolute file names. Otherwise return names 773If FULL is non-nil, return absolute file names. Otherwise return names
775 that are relative to the specified directory. 774 that are relative to the specified directory.
@@ -889,16 +888,16 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable.
889 t)) 888 t))
890 889
891(defun url-dav-file-name-all-completions (file url) 890(defun url-dav-file-name-all-completions (file url)
892 "Return a list of all completions of file name FILE in directory DIRECTORY. 891 "Return a list of all completions of file name FILE in URL.
893These are all file names in directory DIRECTORY which begin with FILE." 892These are all file names in URL which begin with FILE."
894 (url-dav-directory-files url nil (concat "^" file ".*"))) 893 (url-dav-directory-files url nil (concat "^" file ".*")))
895 894
896(defun url-dav-file-name-completion (file url) 895(defun url-dav-file-name-completion (file url)
897 "Complete file name FILE in directory DIRECTORY. 896 "Complete file name FILE in URL.
898Returns the longest string 897Returns the longest string common to all file names in URL
899common to all file names in DIRECTORY that start with FILE. 898that start with FILE.
900If there is only one and FILE matches it exactly, returns t. 899If there is only one and FILE matches it exactly, returns t.
901Returns nil if DIR contains no name starting with FILE." 900Returns nil if URL contains no name starting with FILE."
902 (let ((matches (url-dav-file-name-all-completions file url)) 901 (let ((matches (url-dav-file-name-all-completions file url))
903 (result nil)) 902 (result nil))
904 (cond 903 (cond
diff --git a/lisp/url/url-dired.el b/lisp/url/url-dired.el
index 4faa0f01a32..4a3f24102ae 100644
--- a/lisp/url/url-dired.el
+++ b/lisp/url/url-dired.el
@@ -32,7 +32,7 @@
32 "Keymap used when browsing directories.") 32 "Keymap used when browsing directories.")
33 33
34(defvar url-dired-minor-mode nil 34(defvar url-dired-minor-mode nil
35 "Whether we are in url-dired-minor-mode") 35 "Whether we are in url-dired-minor-mode.")
36 36
37(make-variable-buffer-local 'url-dired-minor-mode) 37(make-variable-buffer-local 'url-dired-minor-mode)
38 38
diff --git a/lisp/url/url-file.el b/lisp/url/url-file.el
index 14b4c432a08..ce6aa34d71e 100644
--- a/lisp/url/url-file.el
+++ b/lisp/url/url-file.el
@@ -39,7 +39,7 @@
39This tries the common compression extensions, because things like 39This tries the common compression extensions, because things like
40ange-ftp and efs are not quite smart enough to realize when a server 40ange-ftp and efs are not quite smart enough to realize when a server
41can do automatic decompression for them, and won't find 'foo' if 41can do automatic decompression for them, and won't find 'foo' if
42'foo.gz' exists, even though the ftp server would happily serve it up 42'foo.gz' exists, even though the FTP server would happily serve it up
43to them." 43to them."
44 (let ((scratch nil) 44 (let ((scratch nil)
45 (compressed-extensions '("" ".gz" ".z" ".Z" ".bz2")) 45 (compressed-extensions '("" ".gz" ".z" ".Z" ".bz2"))
diff --git a/lisp/url/url-gw.el b/lisp/url/url-gw.el
index e5021bec52f..40dd738a68a 100644
--- a/lisp/url/url-gw.el
+++ b/lisp/url/url-gw.el
@@ -98,7 +98,7 @@ This list will be executed as a command after logging in via telnet."
98 "*Whether to use nslookup to resolve hostnames. 98 "*Whether to use nslookup to resolve hostnames.
99This should be used when your version of Emacs cannot correctly use DNS, 99This should be used when your version of Emacs cannot correctly use DNS,
100but your machine can. This usually happens if you are running a statically 100but your machine can. This usually happens if you are running a statically
101linked Emacs under SunOS 4.x" 101linked Emacs under SunOS 4.x."
102 :type 'boolean 102 :type 'boolean
103 :group 'url-gateway) 103 :group 'url-gateway)
104 104
diff --git a/lisp/url/url-handlers.el b/lisp/url/url-handlers.el
index 133f40a3636..8477771d6e4 100644
--- a/lisp/url/url-handlers.el
+++ b/lisp/url/url-handlers.el
@@ -93,7 +93,7 @@
93 93
94(defvar url-handler-regexp 94(defvar url-handler-regexp
95 "\\`\\(https?\\|ftp\\|file\\|nfs\\)://" 95 "\\`\\(https?\\|ftp\\|file\\|nfs\\)://"
96 "*A regular expression for matching URLs handled by file-name-handler-alist. 96 "*A regular expression for matching URLs handled by `file-name-handler-alist'.
97Some valid URL protocols just do not make sense to visit interactively 97Some valid URL protocols just do not make sense to visit interactively
98\(about, data, info, irc, mailto, etc\). This regular expression 98\(about, data, info, irc, mailto, etc\). This regular expression
99avoids conflicts with local files that look like URLs \(Gnus is 99avoids conflicts with local files that look like URLs \(Gnus is
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el
index bd3d3cb075a..0a3acff31a1 100644
--- a/lisp/url/url-http.el
+++ b/lisp/url/url-http.el
@@ -153,7 +153,7 @@ request.")
153 153
154(defun url-http-create-request (&optional ref-url) 154(defun url-http-create-request (&optional ref-url)
155 "Create an HTTP request for `url-http-target-url', referred to by REF-URL." 155 "Create an HTTP request for `url-http-target-url', referred to by REF-URL."
156 (declare (special proxy-info 156 (declare (special proxy-info
157 url-http-method url-http-data 157 url-http-method url-http-data
158 url-http-extra-headers)) 158 url-http-extra-headers))
159 (let* ((extra-headers) 159 (let* ((extra-headers)
@@ -323,10 +323,10 @@ This allows us to use `mail-fetch-field', etc."
323 323
324 ;; find strongest supported auth 324 ;; find strongest supported auth
325 (dolist (this-auth auths) 325 (dolist (this-auth auths)
326 (setq this-auth (url-eat-trailing-space 326 (setq this-auth (url-eat-trailing-space
327 (url-strip-leading-spaces 327 (url-strip-leading-spaces
328 this-auth))) 328 this-auth)))
329 (let* ((this-type 329 (let* ((this-type
330 (if (string-match "[ \t]" this-auth) 330 (if (string-match "[ \t]" this-auth)
331 (downcase (substring this-auth 0 (match-beginning 0))) 331 (downcase (substring this-auth 0 (match-beginning 0)))
332 (downcase this-auth))) 332 (downcase this-auth)))
@@ -418,7 +418,7 @@ should be shown to the user."
418 ;; "Connection: keep-alive" header. 418 ;; "Connection: keep-alive" header.
419 ;; In HTTP 1.1 (and greater), keep the connection unless there is a 419 ;; In HTTP 1.1 (and greater), keep the connection unless there is a
420 ;; "Connection: close" header 420 ;; "Connection: close" header
421 (cond 421 (cond
422 ((string= url-http-response-version "1.0") 422 ((string= url-http-response-version "1.0")
423 (unless (and connection 423 (unless (and connection
424 (string= (downcase connection) "keep-alive")) 424 (string= (downcase connection) "keep-alive"))
@@ -800,7 +800,7 @@ should be shown to the user."
800 800
801;; These unfortunately cannot be macros... please ignore them! 801;; These unfortunately cannot be macros... please ignore them!
802(defun url-http-idle-sentinel (proc why) 802(defun url-http-idle-sentinel (proc why)
803 "Remove this (now defunct) process PROC from the list of open connections." 803 "Remove (now defunct) process PROC from the list of open connections."
804 (maphash (lambda (key val) 804 (maphash (lambda (key val)
805 (if (memq proc val) 805 (if (memq proc val)
806 (puthash key (delq proc val) url-http-open-connections))) 806 (puthash key (delq proc val) url-http-open-connections)))
diff --git a/lisp/url/url-imap.el b/lisp/url/url-imap.el
index 4dbe1a8e7c1..c13f4faa6b1 100644
--- a/lisp/url/url-imap.el
+++ b/lisp/url/url-imap.el
@@ -35,7 +35,7 @@
35(require 'nnimap) 35(require 'nnimap)
36(require 'mm-util) 36(require 'mm-util)
37 37
38(defconst url-imap-default-port 143 "Default IMAP port") 38(defconst url-imap-default-port 143 "Default IMAP port.")
39 39
40(defun url-imap-open-host (host port user pass) 40(defun url-imap-open-host (host port user pass)
41 ;; xxx use user and password 41 ;; xxx use user and password
@@ -70,7 +70,7 @@
70 ;; fetch message part 70 ;; fetch message part
71 ;; xxx handle partial fetches 71 ;; xxx handle partial fetches
72 (insert "Content-type: message/rfc822\n\n") 72 (insert "Content-type: message/rfc822\n\n")
73 (nnimap-request-article (cdr (assoc "UID" (url-attributes url))) 73 (nnimap-request-article (cdr (assoc "UID" (url-attributes url)))
74 mailbox host (current-buffer))) 74 mailbox host (current-buffer)))
75 (t 75 (t
76 ;; xxx list messages in mailbox (start gnus?) 76 ;; xxx list messages in mailbox (start gnus?)
diff --git a/lisp/url/url-irc.el b/lisp/url/url-irc.el
index e4934e3e626..439ac4dbcbd 100644
--- a/lisp/url/url-irc.el
+++ b/lisp/url/url-irc.el
@@ -29,11 +29,11 @@
29(require 'url-vars) 29(require 'url-vars)
30(require 'url-parse) 30(require 'url-parse)
31 31
32(defconst url-irc-default-port 6667 "Default port for IRC connections") 32(defconst url-irc-default-port 6667 "Default port for IRC connections.")
33 33
34(defcustom url-irc-function 'url-irc-rcirc 34(defcustom url-irc-function 'url-irc-rcirc
35 "*Function to actually open an IRC connection. 35 "*Function to actually open an IRC connection.
36Should be a function that takes several arguments: 36The function should take the following arguments:
37 HOST - the hostname of the IRC server to contact 37 HOST - the hostname of the IRC server to contact
38 PORT - the port number of the IRC server to contact 38 PORT - the port number of the IRC server to contact
39 CHANNEL - What channel on the server to visit right away (can be nil) 39 CHANNEL - What channel on the server to visit right away (can be nil)
diff --git a/lisp/url/url-methods.el b/lisp/url/url-methods.el
index e566d4f6949..57b9db602e1 100644
--- a/lisp/url/url-methods.el
+++ b/lisp/url/url-methods.el
@@ -110,7 +110,7 @@
110 (message "Using a proxy for %s..." scheme))))) 110 (message "Using a proxy for %s..." scheme)))))
111 111
112(defun url-scheme-get-property (scheme property) 112(defun url-scheme-get-property (scheme property)
113 "Get property of a URL SCHEME. 113 "Get PROPERTY of a URL SCHEME.
114Will automatically try to load a backend from url-SCHEME.el if 114Will automatically try to load a backend from url-SCHEME.el if
115it has not already been loaded." 115it has not already been loaded."
116 (setq scheme (downcase scheme)) 116 (setq scheme (downcase scheme))
diff --git a/lisp/url/url-util.el b/lisp/url/url-util.el
index 6fc99448a77..7c532de0330 100644
--- a/lisp/url/url-util.el
+++ b/lisp/url/url-util.el
@@ -301,7 +301,7 @@ Will not do anything if `url-show-status' is nil."
301 301
302;;;###autoload 302;;;###autoload
303(defun url-unhex-string (str &optional allow-newlines) 303(defun url-unhex-string (str &optional allow-newlines)
304 "Remove %XX embedded spaces, etc in a url. 304 "Remove %XX embedded spaces, etc in a URL.
305If optional second argument ALLOW-NEWLINES is non-nil, then allow the 305If optional second argument ALLOW-NEWLINES is non-nil, then allow the
306decoding of carriage returns and line feeds in the string, which is normally 306decoding of carriage returns and line feeds in the string, which is normally
307forbidden in URL encoding." 307forbidden in URL encoding."
@@ -342,7 +342,7 @@ character in the utf-8 string, those found in `url-unreserved-chars'
342are left as-is, all others are represented as a three-character 342are left as-is, all others are represented as a three-character
343string: \"%\" followed by two lowercase hex digits." 343string: \"%\" followed by two lowercase hex digits."
344 ;; To go faster and avoid a lot of consing, we could do: 344 ;; To go faster and avoid a lot of consing, we could do:
345 ;; 345 ;;
346 ;; (defconst url-hexify-table 346 ;; (defconst url-hexify-table
347 ;; (let ((map (make-vector 256 nil))) 347 ;; (let ((map (make-vector 256 nil)))
348 ;; (dotimes (byte 256) (aset map byte 348 ;; (dotimes (byte 256) (aset map byte
@@ -364,8 +364,8 @@ string: \"%\" followed by two lowercase hex digits."
364;;;###autoload 364;;;###autoload
365(defun url-file-extension (fname &optional x) 365(defun url-file-extension (fname &optional x)
366 "Return the filename extension of FNAME. 366 "Return the filename extension of FNAME.
367If optional variable X is t, 367If optional argument X is t, then return the basename
368then return the basename of the file with the extension stripped off." 368of the file with the extension stripped off."
369 (if (and fname 369 (if (and fname
370 (setq fname (url-file-nondirectory fname)) 370 (setq fname (url-file-nondirectory fname))
371 (string-match "\\.[^./]+$" fname)) 371 (string-match "\\.[^./]+$" fname))
@@ -429,7 +429,7 @@ This uses `url-current-object', set locally to the buffer."
429 429
430(eval-and-compile 430(eval-and-compile
431 (defvar url-get-url-filename-chars "-%.?@a-zA-Z0-9()_/:~=&" 431 (defvar url-get-url-filename-chars "-%.?@a-zA-Z0-9()_/:~=&"
432 "Valid characters in a URL") 432 "Valid characters in a URL.")
433 ) 433 )
434 434
435(defun url-get-url-at-point (&optional pt) 435(defun url-get-url-at-point (&optional pt)
diff --git a/lisp/url/url-vars.el b/lisp/url/url-vars.el
index be312b00388..02725684235 100644
--- a/lisp/url/url-vars.el
+++ b/lisp/url/url-vars.el
@@ -55,10 +55,10 @@
55 55
56 56
57(defvar url-current-object nil 57(defvar url-current-object nil
58 "A parsed representation of the current url.") 58 "A parsed representation of the current URL.")
59 59
60(defvar url-current-mime-headers nil 60(defvar url-current-mime-headers nil
61 "A parsed representation of the MIME headers for the current url.") 61 "A parsed representation of the MIME headers for the current URL.")
62 62
63(mapc 'make-variable-buffer-local 63(mapc 'make-variable-buffer-local
64 '( 64 '(
@@ -72,8 +72,7 @@
72These are done at the request of the document author or the server via 72These are done at the request of the document author or the server via
73the `Refresh' header in an HTTP response. If nil, no refresh 73the `Refresh' header in an HTTP response. If nil, no refresh
74requests will be honored. If t, all refresh requests will be honored. 74requests will be honored. If t, all refresh requests will be honored.
75If non-nil and not t, the user will be asked for each refresh 75If non-nil and not t, the user will be asked for each refresh request."
76request."
77 :type '(choice (const :tag "off" nil) 76 :type '(choice (const :tag "off" nil)
78 (const :tag "on" t) 77 (const :tag "on" t)
79 (const :tag "ask" 'ask)) 78 (const :tag "ask" 'ask))
@@ -118,17 +117,17 @@ This variable controls how much of this information is sent.
118 117
119This should a symbol or a list. 118This should a symbol or a list.
120Valid values if a symbol are: 119Valid values if a symbol are:
121none -- Send all information 120none -- send all information
122low -- Don't send the last location 121low -- don't send the last location
123high -- Don't send the email address or last location 122high -- don't send the email address or last location
124paranoid -- Don't send anything 123paranoid -- don't send anything
125 124
126If a list, this should be a list of symbols of what NOT to send. 125If a list, this should be a list of symbols of what NOT to send.
127Valid symbols are: 126Valid symbols are:
128email -- the email address 127email -- the email address
129os -- the operating system info 128os -- the operating system info
130lastloc -- the last location 129lastloc -- the last location
131agent -- Do not send the User-Agent string 130agent -- do not send the User-Agent string
132cookie -- never accept HTTP cookies 131cookie -- never accept HTTP cookies
133 132
134Samples: 133Samples:
@@ -174,7 +173,7 @@ variable."
174 :group 'url-mime) 173 :group 'url-mime)
175 174
176(defcustom url-mail-command 'compose-mail 175(defcustom url-mail-command 'compose-mail
177 "*This function will be called whenever url needs to send mail. 176 "*This function will be called whenever URL needs to send mail.
178It should enter a mail-mode-like buffer in the current window. 177It should enter a mail-mode-like buffer in the current window.
179The commands `mail-to' and `mail-subject' should still work in this 178The commands `mail-to' and `mail-subject' should still work in this
180buffer, and it should use `mail-header-separator' if possible." 179buffer, and it should use `mail-header-separator' if possible."
@@ -259,7 +258,7 @@ given priority 1 and the rest are given priority 0.5.")
259 "*String to send in the Accept-language: field in HTTP requests. 258 "*String to send in the Accept-language: field in HTTP requests.
260 259
261Specifies the preferred language when servers can serve documents in 260Specifies the preferred language when servers can serve documents in
262several languages. Use RFC 1766 abbreviations, e.g.@: `en' for 261several languages. Use RFC 1766 abbreviations, e.g.: `en' for
263English, `de' for German. A comma-separated specifies descending 262English, `de' for German. A comma-separated specifies descending
264order of preference. The ordering can be made explicit using `q' 263order of preference. The ordering can be made explicit using `q'
265factors defined by HTTP, e.g. `de,en-gb;q=0.8,en;q=0.7'. `*' means 264factors defined by HTTP, e.g. `de,en-gb;q=0.8,en;q=0.7'. `*' means
@@ -304,7 +303,7 @@ a terminal with a slow modem."
304 303
305(defvar url-using-proxy nil 304(defvar url-using-proxy nil
306 "Either nil or the fully qualified proxy URL in use, e.g. 305 "Either nil or the fully qualified proxy URL in use, e.g.
307http://www.domain.com/") 306http://www.example.com/")
308 307
309(defcustom url-news-server nil 308(defcustom url-news-server nil
310 "*The default news server from which to get newsgroups/articles. 309 "*The default news server from which to get newsgroups/articles.
diff --git a/lisp/url/url.el b/lisp/url/url.el
index b219520de4a..ac7e47d9cc0 100644
--- a/lisp/url/url.el
+++ b/lisp/url/url.el
@@ -56,7 +56,7 @@
56 :group 'url) 56 :group 'url)
57 57
58(defun url-do-setup () 58(defun url-do-setup ()
59 "Setup the url package. 59 "Setup the URL package.
60This is to avoid conflict with user settings if URL is dumped with 60This is to avoid conflict with user settings if URL is dumped with
61Emacs." 61Emacs."
62 (unless url-setup-done 62 (unless url-setup-done