From 012ce9cba0014ad1909c1b4409e525d80400c884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sun, 25 Mar 2012 14:46:30 +0100 Subject: [PATCH] This shouldn't be here --- yasnippet.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index 6966ea1..99ba109 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -1624,8 +1624,7 @@ TEMPLATES is a list of `yas/template'." (insert-file-contents file nil nil nil t) (push (yas/parse-template file) snippet-defs)))) - (when (or snippet-defs - (cdr major-mode-and-parents)) + (when snippet-defs (yas/define-snippets mode-sym snippet-defs)) ;; now recurse to a lower level