From 04970abf300ce85a5245735d14e1fb4edb98fda2 Mon Sep 17 00:00:00 2001 From: Joao Tavora Date: Mon, 24 Dec 2012 16:35:03 +0000 Subject: [PATCH] Closes #315: don't consider keybindings when filtering snippets in YAS-ACTIVE-KEYS --- yasnippet.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index 7c8d0aa..cc14fa0 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -2658,8 +2658,9 @@ whether (and where) to save the snippet, then quit the window." (defun yas-active-keys () "Return all active trigger keys for current buffer and point." - (remove-duplicates (mapcan #'yas--table-all-keys (yas--get-snippet-tables)) - :test #'string=)) + (remove-duplicates + (remove-if-not #'stringp (mapcan #'yas--table-all-keys (yas--get-snippet-tables))) + :test #'string=)) (defun yas--template-fine-group (template) (car (last (or (yas--template-group template)