;; if it has been specified: e.g. http://www.example.com:80 will
;; be transcoded as http://www.example.com
(url-recreate-url
- (if (vectorp url) url
+ (if (url-p url) url
(url-generic-parse-url url)))))
;;;###autoload
depth '(("Timeout" . "Infinite"))))
;; Get the parent URL ready for expand-file-name
- (if (not (vectorp url))
+ (if (not (url-p url))
(setq url (url-generic-parse-url url)))
;; Walk thru the response list, fully expand the URL, and grab the
(child-url nil)
(child-results nil)
(results nil))
- (if (not (vectorp url))
+ (if (not (url-p url))
(setq url (url-generic-parse-url url)))
(while response
;; Need to figure out how/where to expand the fragment relative to
(setq default (cond
- ((vectorp default)
+ ((url-p default)
;; Default URL has already been parsed
default)
(default
keep-date &optional msg cont nowait))
(defun url-file-build-filename (url)
- (if (not (vectorp url))
+ (if (not (url-p url))
(setq url (url-generic-parse-url url)))
(let* ((user (url-user url))
(pass (url-password url))
overriding the value of `url-gateway-method'.
The return value of this function is the retrieval buffer."
- (cl-check-type url vector "Need a pre-parsed URL.")
+ (cl-check-type url url "Need a pre-parsed URL.")
(let* (;; (host (url-host (or url-using-proxy url)))
;; (port (url-port (or url-using-proxy url)))
(nsm-noninteractive (or url-request-noninteractive
(nnimap-authenticator ,authenticator)))))
(defun url-imap (url)
- (unless (vectorp url)
+ (unless (url-p url)
(signal 'wrong-type-error (list "Need a pre-parsed URL." url)))
(with-current-buffer (generate-new-buffer " *url-imap*")
(mm-disable-multibyte)
(defun url-ldap (url)
"Perform an LDAP search specified by URL.
The return value is a buffer displaying the search results in HTML.
-URL can be a URL string, or a URL vector of the type returned by
+URL can be a URL string, or a URL record of the type returned by
`url-generic-parse-url'."
(if (stringp url)
(setq url (url-generic-parse-url (url-unhex-string url)))
- (if (not (vectorp url))
+ (if (not (url-p url))
(error "Argument is not a valid URL")))
(with-current-buffer (generate-new-buffer " *url-ldap*")
(setq url-current-object url)
(when (stringp url)
(set-text-properties 0 (length url) nil url)
(setq url (url-encode-url url)))
- (if (not (vectorp url))
+ (if (not (url-p url))
(setq url (url-generic-parse-url url)))
(if (not (functionp callback))
(error "Must provide a callback function to url-retrieve"))