]> code.delx.au - gnu-emacs-elpa/commitdiff
Closes #315: don't consider keybindings when filtering snippets in YAS-ACTIVE-KEYS
authorJoao Tavora <joaotavora@gmail.com>
Mon, 24 Dec 2012 16:35:03 +0000 (16:35 +0000)
committerJoao Tavora <joaotavora@gmail.com>
Mon, 24 Dec 2012 16:35:03 +0000 (16:35 +0000)
yasnippet.el

index 7c8d0aae86e78e001c93b4a3b319a5e02661dfe0..cc14fa0383bb684ddc1b9e265b417deb38b97ded 100644 (file)
@@ -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)