Function: make-url-future--cmacro

make-url-future--cmacro is a function defined in url-future.el.gz.

Signature

(make-url-future--cmacro CL-WHOLE &cl-quote &key CALLBACK ERRORBACK STATUS VALUE)

Documentation

compiler-macro for make-url-future.

Source Code

;; Defined in /usr/src/emacs/lisp/url/url-future.el.gz
;; Could not find source code, showing raw function object.
#[(cl-whole &rest --cl-rest--)
  ((let*
       ((callback (car (cdr (plist-member --cl-rest-- ':callback))))
	(errorback (car (cdr (plist-member --cl-rest-- ':errorback))))
	(status (car (cdr (plist-member --cl-rest-- ':status))))
	(value (car (cdr (plist-member --cl-rest-- ':value)))))
     (progn
       (let ((--cl-keys-- --cl-rest--))
	 (while --cl-keys--
	   (cond
	    ((memq (car --cl-keys--)
		   '(:callback :errorback :status :value
			       :allow-other-keys))
	     (unless (cdr --cl-keys--)
	       (error "Missing argument for %s" (car --cl-keys--)))
	     (setq --cl-keys-- (cdr (cdr --cl-keys--))))
	    ((car (cdr (memq ':allow-other-keys --cl-rest--)))
	     (setq --cl-keys-- nil))
	    (t
	     (error
	      "Keyword argument %S not one of (:callback :errorback :status :value)"
	      (car --cl-keys--))))))
       (cl-block make-url-future--cmacro
	 (cl--defsubst-expand '(callback errorback status value)
			      '(cl-block make-url-future
				 (record 'url-future callback
					 errorback status value))
			      nil cl-whole nil callback errorback
			      status value)))))
  (cl-struct-url-future-tags) nil
  "compiler-macro for `make-url-future'.\n\n(fn CL-WHOLE &cl-quote &key CALLBACK ERRORBACK STATUS VALUE)"]