From a66f15e6c975a4370877df272c1ae87490835d28 Mon Sep 17 00:00:00 2001 From: Bao Haojun Date: Thu, 18 Jul 2019 22:42:02 +0800 Subject: [PATCH] Fix yas-insert-snippet for keyless snippets * yasnippet.el (yas--table-templates): Get snippets from uuidhash table too. Copyright-paperwork-exempt: yes --- yasnippet.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yasnippet.el b/yasnippet.el index 3bbb94d..02886ca 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -1399,6 +1399,9 @@ conditions to filter out potential expansions." (push (cons name template) acc)) namehash)) (yas--table-hash table)) + (maphash #'(lambda (uuid template) + (push (cons uuid template) acc)) + (yas--table-uuidhash table)) (yas--filter-templates-by-condition acc)))) (defun yas--templates-for-key-at-point ()