From 62c40c50b97b44d3a59a941e880a0e20ddb948bb Mon Sep 17 00:00:00 2001 From: Joao Tavora Date: Sat, 19 Oct 2013 00:56:35 +0100 Subject: [PATCH] fix: better take a list rather than &rest args in make-snippet --- snippet.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippet.el b/snippet.el index 0e3cada..98dfbb7 100644 --- a/snippet.el +++ b/snippet.el @@ -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