From 893a9b3594a44d5d0ab7de8ed80334258bbb80c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Mon, 27 Feb 2012 02:34:02 +0000 Subject: [PATCH] Load correct .yas-setup and .yas-compiled-snippets file when loading a snippet dir --- yasnippet.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index d1af979..5056372 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -1606,9 +1606,9 @@ TEMPLATES is a list of `yas/template'." (unless (file-exists-p (concat directory "/" ".yas-skip")) ;; Load .yas-setup.el files wherever we find them ;; - (load ".yas-setup" 'noerror) + (load (expand-file-name ".yas-setup" directory) 'noerror) (if (and (not no-compiled-snippets) - (load ".yas-compiled-snippets" 'noerror)) + (load (expand-file-name ".yas-compiled-snippets" directory) 'noerror)) (message "Loading much faster .yas-compiled-snippets from %s" directory) (let* ((major-mode-and-parents (if mode-sym (cons mode-sym parents)