fix: better take a list rather than &rest args in make-snippet

This commit is contained in:
Joao Tavora 2013-10-19 00:56:35 +01:00
parent b682f6bcac
commit 62c40c50b9

View File

@ -312,9 +312,9 @@ can be:
`(defun ,name ()
,(define--snippet-body body)))
(cl-defmacro make-snippet (&rest body)
(cl-defmacro make-snippet (forms)
"Same as `define-snippet', but return an anonymous function."
`(lambda () ,(define--snippet-body body)))
`(lambda () ,(define--snippet-body forms)))
;;; Snippet mechanics