mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
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
This commit is contained in:
parent
a4fafc3225
commit
d4da806e5c
@ -1083,7 +1083,7 @@ Has the following fields:
|
|||||||
(maphash #'(lambda (k v)
|
(maphash #'(lambda (k v)
|
||||||
(let ((template (gethash name v)))
|
(let ((template (gethash name v)))
|
||||||
(when (and template
|
(when (and template
|
||||||
(eq uuid (yas--template-uuid template)))
|
(equal uuid (yas--template-uuid template)))
|
||||||
(remhash name v)
|
(remhash name v)
|
||||||
(when (zerop (hash-table-count v))
|
(when (zerop (hash-table-count v))
|
||||||
(push k empty-keys)))))
|
(push k empty-keys)))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user