Function: make-file-notify--cmacro

make-file-notify--cmacro is a function defined in filenotify.el.gz.

Signature

(make-file-notify--cmacro CL-WHOLE &cl-quote &key -EVENT -CALLBACK)

Documentation

compiler-macro for inlining make-file-notify.

Source Code

;; Defined in /usr/src/emacs/lisp/filenotify.el.gz
;; Closure converted to defun by helpful.
(defun make-file-notify--cmacro
    (cl-whole &rest --cl-rest--)
  "compiler-macro for inlining `make-file-notify'.\n\n\\(fn CL-WHOLE &cl-quote &key -EVENT -CALLBACK)"
  (let*
      ((-event
	(car
	 (cdr
	  (plist-member --cl-rest-- ':-event))))
       (-callback
	(car
	 (cdr
	  (plist-member --cl-rest-- ':-callback)))))
    (progn
      (let
	  ((--cl-keys-- --cl-rest--))
	(while --cl-keys--
	  (cond
	   ((memq
	     (car --cl-keys--)
	     '(:-event :-callback :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 (:-event :-callback)"
		   (car --cl-keys--))))))
      (cl-block make-file-notify--cmacro
	(cl--defsubst-expand
	 '(-event -callback)
	 '(cl-block make-file-notify
	    (list 'file-notify -event -callback))
	 nil cl-whole nil -event -callback)))))