Function: make-xref-elisp-location--cmacro

make-xref-elisp-location--cmacro is a function defined in elisp-mode.el.gz.

Signature

(make-xref-elisp-location--cmacro CL-WHOLE &cl-quote &key SYMBOL TYPE FILE)

Documentation

compiler-macro for inlining make-xref-elisp-location.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/elisp-mode.el.gz
;; Closure converted to defun by helpful.
(defun make-xref-elisp-location--cmacro
    (cl-whole &rest --cl-rest--)
  "compiler-macro for inlining `make-xref-elisp-location'.\n\n\\(fn CL-WHOLE &cl-quote &key SYMBOL TYPE FILE)"
  (let*
      ((symbol
	(car
	 (cdr
	  (plist-member --cl-rest-- ':symbol))))
       (type
	(car
	 (cdr
	  (plist-member --cl-rest-- ':type))))
       (file
	(car
	 (cdr
	  (plist-member --cl-rest-- ':file)))))
    (progn
      (let
	  ((--cl-keys-- --cl-rest--))
	(while --cl-keys--
	  (cond
	   ((memq
	     (car --cl-keys--)
	     '(:symbol :type :file :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 (:symbol :type :file)"
		   (car --cl-keys--))))))
      (cl-block make-xref-elisp-location--cmacro
	(cl--defsubst-expand
	 '(symbol type file)
	 '(cl-block make-xref-elisp-location
	    (record 'xref-elisp-location symbol type file))
	 nil cl-whole nil symbol type file)))))