]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix "arrayp, nil" bug in yas-load-snippet-buffer.
authorChristopher Monsanto <chris@monsan.to>
Sun, 23 Sep 2012 15:25:24 +0000 (11:25 -0400)
committerChristopher Monsanto <chris@monsan.to>
Sun, 23 Sep 2012 15:26:01 +0000 (11:26 -0400)
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."