branch: master
commit d4da806e5c48ef050853b4db947bb1f6d37560ad
Author: Akinori MUSHA <k...@idaemons.org>
Commit: Noam Postavsky <npost...@users.sourceforge.net>

    Fix removal of snippets by uuid
    
    * yasnippet.el (yas--remove-template-by-uuid): Test uuid equality with
    `equal' instead of `eq'.
    
    Copyright-paperwork-exempt: yes
    
    Close #714
---
 yasnippet.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yasnippet.el b/yasnippet.el
index 5136fe9..8796e6a 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -1083,7 +1083,7 @@ Has the following fields:
         (maphash #'(lambda (k v)
                      (let ((template (gethash name v)))
                        (when (and template
-                                  (eq uuid (yas--template-uuid template)))
+                                  (equal uuid (yas--template-uuid template)))
                          (remhash name v)
                          (when (zerop (hash-table-count v))
                            (push k empty-keys)))))

Reply via email to