]> code.delx.au - gnu-emacs-elpa/commitdiff
Merge pull request #308 from monsanto/yas-load-snippet-buffer-fix
authorJoão Távora <joaotavora@gmail.com>
Sun, 23 Sep 2012 15:50:08 +0000 (08:50 -0700)
committerJoão Távora <joaotavora@gmail.com>
Sun, 23 Sep 2012 15:50:08 +0000 (08:50 -0700)
Fix: "arrayp, nil" bug in yas-load-snippet-buffer.

yasnippet.el

index c65aa2f7d2ab862c3966445988423ce20a84aba8..ed6644f9f41d5f49d13d24549f78a8e898a7114f 100644 (file)
@@ -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."