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:
Akinori MUSHA 2016-07-04 19:52:08 +09:00 committed by Noam Postavsky
parent a4fafc3225
commit d4da806e5c

View File

@ -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)))))