mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 05:23:04 +00:00
fix: better take a list rather than &rest args in make-snippet
This commit is contained in:
parent
b682f6bcac
commit
62c40c50b9
@ -312,9 +312,9 @@ can be:
|
|||||||
`(defun ,name ()
|
`(defun ,name ()
|
||||||
,(define--snippet-body body)))
|
,(define--snippet-body body)))
|
||||||
|
|
||||||
(cl-defmacro make-snippet (&rest body)
|
(cl-defmacro make-snippet (forms)
|
||||||
"Same as `define-snippet', but return an anonymous function."
|
"Same as `define-snippet', but return an anonymous function."
|
||||||
`(lambda () ,(define--snippet-body body)))
|
`(lambda () ,(define--snippet-body forms)))
|
||||||
|
|
||||||
|
|
||||||
;;; Snippet mechanics
|
;;; Snippet mechanics
|
||||||
|
Loading…
x
Reference in New Issue
Block a user