Function: org-roam-reflink-create--cmacro

org-roam-reflink-create--cmacro is a function defined in org-roam-mode.el.

Signature

(org-roam-reflink-create--cmacro CL-WHOLE &cl-quote &key SOURCE-NODE REF POINT PROPERTIES)

Documentation

compiler-macro for org-roam-reflink-create.

Source Code

;; Defined in ~/.emacs.d/elpa/org-roam-20260224.1637/org-roam-mode.el
;; Could not find source code, showing raw function object.
#[(cl-whole &rest --cl-rest--)
  ((let*
       ((source-node
	 (car (cdr (plist-member --cl-rest-- ':source-node))))
	(ref (car (cdr (plist-member --cl-rest-- ':ref))))
	(point (car (cdr (plist-member --cl-rest-- ':point))))
	(properties
	 (car (cdr (plist-member --cl-rest-- ':properties)))))
     (progn
       (let ((--cl-keys-- --cl-rest--))
	 (while --cl-keys--
	   (cond
	    ((memq (car --cl-keys--)
		   '(:source-node :ref :point :properties
				  :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 (:source-node :ref :point :properties)"
	      (car --cl-keys--))))))
       (cl-block org-roam-reflink-create--cmacro
	 (cl--defsubst-expand '(source-node ref point properties)
			      '(cl-block org-roam-reflink-create
				 (record 'org-roam-reflink source-node
					 ref point properties))
			      nil cl-whole nil source-node ref point
			      properties)))))
  (t) nil
  "compiler-macro for `org-roam-reflink-create'.\n\n(fn CL-WHOLE &cl-quote &key SOURCE-NODE REF POINT PROPERTIES)"]