Function: mh-thread-make-container--cmacro

mh-thread-make-container--cmacro is a function defined in mh-thread.el.gz.

Signature

(mh-thread-make-container--cmacro CL-WHOLE &cl-quote &key MESSAGE PARENT CHILDREN REAL-CHILD-P)

Documentation

compiler-macro for inlining mh-thread-make-container.

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-thread.el.gz
;; Closure converted to defun by helpful.
(defun mh-thread-make-container--cmacro
    (cl-whole &rest --cl-rest--)
  "compiler-macro for inlining `mh-thread-make-container'.\n\n\\(fn CL-WHOLE &cl-quote &key MESSAGE PARENT CHILDREN REAL-CHILD-P)"
  (let*
      ((message
	(car
	 (cdr
	  (plist-member --cl-rest-- ':message))))
       (parent
	(car
	 (cdr
	  (plist-member --cl-rest-- ':parent))))
       (children
	(car
	 (cdr
	  (plist-member --cl-rest-- ':children))))
       (real-child-p
	(car
	 (cdr
	  (or
	   (plist-member --cl-rest-- ':real-child-p)
	   '(nil t))))))
    (progn
      (let
	  ((--cl-keys-- --cl-rest--))
	(while --cl-keys--
	  (cond
	   ((memq
	     (car --cl-keys--)
	     '(:message :parent :children :real-child-p :allow-other-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 (:message :parent :children :real-child-p)"
		   (car --cl-keys--))))))
      (cl-block mh-thread-make-container--cmacro
	(cl--defsubst-expand
	 '(message parent children real-child-p)
	 '(cl-block mh-thread-make-container
	    (record 'mh-thread-container message parent children real-child-p))
	 nil cl-whole nil message parent children real-child-p)))))