From 7130d9c3653a1102df6b3b2f71eff9ddefb2ac11 Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Sun, 23 Sep 2012 11:25:24 -0400 Subject: [PATCH] Fix "arrayp, nil" bug in yas-load-snippet-buffer. --- yasnippet.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index c65aa2f..ed6644f 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -2598,11 +2598,10 @@ whether (and where) to save the snippet, then quit the window." default-file-name))) (setf (yas--template-file yas--editing-template) buffer-file-name))))) (when interactive - (quit-window interactive) (yas--message 3 "Snippet \"%s\" loaded for %s." (yas--template-name yas--editing-template) - (yas--table-name (yas--template-table yas--editing-template))))) - + (yas--table-name (yas--template-table yas--editing-template))) + (quit-window interactive))) (defun yas-tryout-snippet (&optional debug) "Test current buffers's snippet template in other buffer."