Function: make-vc-git-dir-status-state--cmacro
make-vc-git-dir-status-state--cmacro is a function defined in
vc-git.el.gz.
Signature
(make-vc-git-dir-status-state--cmacro CL-WHOLE &cl-quote &key STAGE FILES UPDATE-FUNCTION HASH)
Documentation
compiler-macro for inlining make-vc-git-dir-status-state.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-git.el.gz
;; Closure converted to defun by helpful.
(defun make-vc-git-dir-status-state--cmacro
(cl-whole &rest --cl-rest--)
"compiler-macro for inlining `make-vc-git-dir-status-state'.\n\n\\(fn CL-WHOLE &cl-quote &key STAGE FILES UPDATE-FUNCTION HASH)"
(let*
((stage
(car
(cdr
(plist-member --cl-rest-- ':stage))))
(files
(car
(cdr
(plist-member --cl-rest-- ':files))))
(update-function
(car
(cdr
(plist-member --cl-rest-- ':update-function))))
(hash
(car
(cdr
(or
(plist-member --cl-rest-- ':hash)
'(nil
(make-hash-table :test 'equal)))))))
(progn
(let
((--cl-keys-- --cl-rest--))
(while --cl-keys--
(cond
((memq
(car --cl-keys--)
'(:stage :files :update-function :hash :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 (:stage :files :update-function :hash)"
(car --cl-keys--))))))
(cl-block make-vc-git-dir-status-state--cmacro
(cl--defsubst-expand
'(stage files update-function hash)
'(cl-block make-vc-git-dir-status-state
(record 'vc-git-dir-status-state stage files update-function hash))
nil cl-whole nil stage files update-function hash)))))