Function: treemacs-scope-shelf->create!--cmacro

treemacs-scope-shelf->create!--cmacro is a function defined in treemacs-scope.el.

Signature

(treemacs-scope-shelf->create!--cmacro CL-WHOLE &cl-quote &key BUFFER WORKSPACE)

Documentation

compiler-macro for treemacs-scope-shelf->create!.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-scope.el
;; Could not find source code, showing raw function object.
#[(cl-whole &rest --cl-rest--)
  ((let*
       ((buffer (car (cdr (plist-member --cl-rest-- ':buffer))))
	(workspace (car (cdr (plist-member --cl-rest-- ':workspace)))))
     (progn
       (let ((--cl-keys-- --cl-rest--))
	 (while --cl-keys--
	   (cond
	    ((memq (car --cl-keys--)
		   '(:buffer :workspace :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 (:buffer :workspace)"
	      (car --cl-keys--))))))
       (cl-block treemacs-scope-shelf->create!--cmacro
	 (cl--defsubst-expand '(buffer workspace)
			      '(cl-block treemacs-scope-shelf->create!
				 (record 'treemacs-scope-shelf buffer
					 workspace))
			      nil cl-whole nil buffer workspace)))))
  (cl-struct-treemacs-scope-shelf-tags) nil
  "compiler-macro for `treemacs-scope-shelf->create!'.\n\n(fn CL-WHOLE &cl-quote &key BUFFER WORKSPACE)"]