Function: url-handlers-create-wrapper

url-handlers-create-wrapper is a macro defined in url-handlers.el.gz.

Signature

(url-handlers-create-wrapper METHOD ARGS)

Source Code

;; Defined in /usr/src/emacs/lisp/url/url-handlers.el.gz
;; All other handlers map onto their respective backends.
(defmacro url-handlers-create-wrapper (method args)
  `(progn
     (defun ,(intern (format "url-%s" method)) ,args
       ,(format "URL file-name-handler wrapper for `%s' call.\n---\n%s" method
                (or (documentation method t) "No original documentation."))
       (setq url (url-generic-parse-url url))
       (when (url-type url)
         (funcall (url-scheme-get-property (url-type url) ',method)
                  ,@(remq '&rest (remq '&optional args)))))
     (unless (get ',method 'url-file-handlers)
       (put ',method 'url-file-handlers #',(intern (format "url-%s" method))))))