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

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

[elpa] master a66f15e 38/42: Fix yas-insert-snippet for keyless snippets


From: Noam Postavsky
Subject: [elpa] master a66f15e 38/42: Fix yas-insert-snippet for keyless snippets
Date: Sun, 22 Dec 2019 17:38:03 -0500 (EST)

branch: master
commit a66f15e6c975a4370877df272c1ae87490835d28
Author: Bao Haojun <address@hidden>
Commit: Noam Postavsky <address@hidden>

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



reply via email to

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