emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 1a98c38 59/60: Fix silly mistake in previous commit


From: João Távora
Subject: [elpa] master 1a98c38 59/60: Fix silly mistake in previous commit
Date: Thu, 21 Jan 2016 22:36:09 +0000

branch: master
commit 1a98c38d9cac584a56cefd74612eefb335e89325
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Fix silly mistake in previous commit
    
    * yasnippet.el (yas--load-snippet-dirs): Put `make-directory' call in
      same branch of the `if' as the `dolist' loop.
---
 yasnippet.el |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/yasnippet.el b/yasnippet.el
index bd1d864..dcec0e2 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -1805,18 +1805,18 @@ With prefix argument USE-JIT do jit-loading of 
snippets."
   "Reload the directories listed in `yas-snippet-dirs' or
 prompt the user to select one."
   (let (errors)
-    (if yas-snippet-dirs
-        (when (member yas--default-user-snippets-dir yas-snippet-dirs)
-          (make-directory yas--default-user-snippets-dir t))
-        (dolist (directory (reverse (yas-snippet-dirs)))
-          (cond ((file-directory-p directory)
-                 (yas-load-directory directory (not nojit))
-                 (if nojit
-                     (yas--message 3 "Loaded %s" directory)
-                   (yas--message 3 "Prepared just-in-time loading for %s" 
directory)))
-                (t
-                 (push (yas--message 0 "Check your `yas-snippet-dirs': %s is 
not a directory" directory) errors))))
-      (call-interactively 'yas-load-directory))
+    (if (null yas-snippet-dirs)
+        (call-interactively 'yas-load-directory)
+      (when (member yas--default-user-snippets-dir yas-snippet-dirs)
+        (make-directory yas--default-user-snippets-dir t))
+      (dolist (directory (reverse (yas-snippet-dirs)))
+        (cond ((file-directory-p directory)
+               (yas-load-directory directory (not nojit))
+               (if nojit
+                   (yas--message 3 "Loaded %s" directory)
+                 (yas--message 3 "Prepared just-in-time loading for %s" 
directory)))
+              (t
+               (push (yas--message 0 "Check your `yas-snippet-dirs': %s is not 
a directory" directory) errors)))))
     errors))
 
 (defun yas-reload-all (&optional no-jit interactive)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]