Skip to content

Instantly share code, notes, and snippets.

@imakado
Created September 16, 2009 12:32
Show Gist options
  • Save imakado/188018 to your computer and use it in GitHub Desktop.
Save imakado/188018 to your computer and use it in GitHub Desktop.
--- yasnippet.el.orig 2009-09-16 21:30:40.000000000 +0900
+++ yasnippet.el 2009-09-16 21:31:07.000000000 +0900
@@ -735,9 +735,8 @@
(skip-syntax-backward syntax)
(setq start (point)))
(setq templates
- (mapcan #'(lambda (table)
- (yas/snippet-table-fetch table (buffer-substring-no-properties start end)))
- (yas/get-snippet-tables)))
+ (loop for table in (yas/get-snippet-tables)
+ append (yas/snippet-table-fetch table (buffer-substring-no-properties start end))))
(if templates
(setq done t)
(setq start end)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment