Permalink
Browse files

Fix ac-yasnippet-candidates

Newest version of yas/get-snippet-tables does not take any argument.
Hence the change is required.
  • Loading branch information...
1 parent c394441 commit 337caa2ccc254a79f615bb2417f0d2fb9552b547 @tkf tkf committed Jun 6, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 auto-complete-config.el
View
@@ -143,7 +143,11 @@
(with-no-warnings
(if (fboundp 'yas/get-snippet-tables)
;; >0.6.0
- (apply 'append (mapcar 'ac-yasnippet-candidate-1 (yas/get-snippet-tables major-mode)))
+ (apply 'append (mapcar 'ac-yasnippet-candidate-1
+ (condition-case nil
+ (yas/get-snippet-tables major-mode)
+ (wrong-number-of-arguments
+ (yas/get-snippet-tables)))))
(let ((table
(if (fboundp 'yas/snippet-table)
;; <0.6.0

0 comments on commit 337caa2

Please sign in to comment.