Skip to content

Commit

Permalink
Bug Fix for loading snippets. Load snippet directory should load snip…
Browse files Browse the repository at this point in the history
…pets/emacs-lisp-mode, but doesn't without this fix. It also makes compile snippet directory work correctly.

Signed-off-by: Matthew L. Fidler <[email protected]>
  • Loading branch information
mattfidler committed Jun 30, 2012
1 parent 20f8205 commit bea8b79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yasnippet.el
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,8 @@ Optional USE-JIT use jit-loading of snippets."
(interactive "DSelect the root directory: ")
(unless yas/snippet-dirs
(setq yas/snippet-dirs top-level-dir))
(dolist (dir (yas/subdirs top-level-dir))
(dolist (dir (or (yas/subdirs top-level-dir)
(list (expand-file-name "." top-level-dir))))
(let* ((major-mode-and-parents (yas/compute-major-mode-and-parents
(concat dir "/dummy")))
(mode-sym (car major-mode-and-parents))
Expand Down

0 comments on commit bea8b79

Please sign in to comment.