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

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

[nongnu] elpa/yasnippet-snippets 99b0be85e4 07/12: Fix: do NOT overwrite


From: ELPA Syncer
Subject: [nongnu] elpa/yasnippet-snippets 99b0be85e4 07/12: Fix: do NOT overwrite user snippets
Date: Wed, 13 Jul 2022 08:59:22 -0400 (EDT)

branch: elpa/yasnippet-snippets
commit 99b0be85e48d19b7142e5ac16f3aeb8a286eda50
Author: snowman <unmem@outlook.com>
Commit: snowman <unmem@outlook.com>

    Fix: do NOT overwrite user snippets
    
    When have the same snippet name with same mode, prefer user snippet.
    
    "yas--load-snippet-dirs" loads "(yas-snippet-dirs)" with reverse
    order, which loads "yasnippet-snippets-dir" first with JIT
---
 yasnippet-snippets.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/yasnippet-snippets.el b/yasnippet-snippets.el
index 078ac04878..fbb474c4db 100644
--- a/yasnippet-snippets.el
+++ b/yasnippet-snippets.el
@@ -50,8 +50,7 @@
   ;; value, so that yasnippet will automatically find the directory
   ;; after this package is updated (i.e., moves directory).
   (add-to-list 'yas-snippet-dirs 'yasnippet-snippets-dir t)
-  (yas--load-snippet-dirs)
-  (yas-load-directory yasnippet-snippets-dir t))
+  (yas--load-snippet-dirs))
 
 (defgroup yasnippet-snippets nil
   "Options for yasnippet setups.



reply via email to

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