comparison lisp/url/url-https.el @ 54798:faaf1fc90954

(url-https-create-secure-wrapper): Use modern backquotes.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 12 Apr 2004 04:04:21 +0000
parents e8824c4f5f7e
children 1ebec6b5e54f eb7e8d483840
comparison
equal deleted inserted replaced
54797:c70e18f19b9c 54798:faaf1fc90954
31 (defconst url-https-default-port 443 "Default HTTPS port.") 31 (defconst url-https-default-port 443 "Default HTTPS port.")
32 (defconst url-https-asynchronous-p t "HTTPS retrievals are asynchronous.") 32 (defconst url-https-asynchronous-p t "HTTPS retrievals are asynchronous.")
33 (defalias 'url-https-expand-file-name 'url-http-expand-file-name) 33 (defalias 'url-https-expand-file-name 'url-http-expand-file-name)
34 34
35 (defmacro url-https-create-secure-wrapper (method args) 35 (defmacro url-https-create-secure-wrapper (method args)
36 (` (defun (, (intern (format (if method "url-https-%s" "url-https") method))) (, args) 36 `(defun ,(intern (format (if method "url-https-%s" "url-https") method)) ,args
37 (, (format "HTTPS wrapper around `%s' call." (or method "url-http"))) 37 ,(format "HTTPS wrapper around `%s' call." (or method "url-http"))
38 (condition-case () 38 (condition-case ()
39 (require 'ssl) 39 (require 'ssl)
40 (error 40 (error
41 (error "HTTPS support could not find `ssl' library."))) 41 (error "HTTPS support could not find `ssl' library")))
42 (let ((url-gateway-method 'ssl)) 42 (let ((url-gateway-method 'ssl))
43 ((, (intern (format (if method "url-http-%s" "url-http") method))) (,@ (remove '&rest (remove '&optional args)))))))) 43 ( ,(intern (format (if method "url-http-%s" "url-http") method)) ,@(remove '&rest (remove '&optional args))))))
44 44
45 (url-https-create-secure-wrapper nil (url callback cbargs)) 45 (url-https-create-secure-wrapper nil (url callback cbargs))
46 (url-https-create-secure-wrapper file-exists-p (url)) 46 (url-https-create-secure-wrapper file-exists-p (url))
47 (url-https-create-secure-wrapper file-readable-p (url)) 47 (url-https-create-secure-wrapper file-readable-p (url))
48 (url-https-create-secure-wrapper file-attributes (url)) 48 (url-https-create-secure-wrapper file-attributes (url))