Function: make-erc-input--cmacro

make-erc-input--cmacro is a function defined in erc-common.el.gz.

Signature

(make-erc-input--cmacro CL-WHOLE &cl-quote &key STRING INSERTP SENDP)

Documentation

compiler-macro for inlining make-erc-input.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-common.el.gz
;; Closure converted to defun by helpful.
(defun make-erc-input--cmacro
    (cl-whole &rest --cl-rest--)
  "compiler-macro for inlining `make-erc-input'.\n\n\\(fn CL-WHOLE &cl-quote &key STRING INSERTP SENDP)"
  (let*
      ((string
	(car
	 (cdr
	  (plist-member --cl-rest-- ':string))))
       (insertp
	(car
	 (cdr
	  (plist-member --cl-rest-- ':insertp))))
       (sendp
	(car
	 (cdr
	  (plist-member --cl-rest-- ':sendp)))))
    (progn
      (let
	  ((--cl-keys-- --cl-rest--))
	(while --cl-keys--
	  (cond
	   ((memq
	     (car --cl-keys--)
	     '(:string :insertp :sendp :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 (:string :insertp :sendp)"
		   (car --cl-keys--))))))
      (cl-block make-erc-input--cmacro
	(cl--defsubst-expand
	 '(string insertp sendp)
	 '(cl-block make-erc-input
	    (record 'erc-input string insertp sendp))
	 nil cl-whole nil string insertp sendp)))))