From 69a10619556a6caf6cb17265f6c9e595e63d3519 Mon Sep 17 00:00:00 2001 From: immerrr Date: Thu, 19 Apr 2012 23:29:37 +0400 Subject: [PATCH] yas/ido-prompt: play nice with autoloading of ido-completing-read --- yasnippet.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yasnippet.el b/yasnippet.el index f0aaaeb..e9c0dfd 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -1551,7 +1551,7 @@ TEMPLATES is a list of `yas/template'." (keyboard-quit)))) (defun yas/ido-prompt (prompt choices &optional display-fn) - (when (featurep 'ido) + (when (fboundp 'ido-completing-read) (yas/completing-prompt prompt choices display-fn #'ido-completing-read))) (eval-when-compile (require 'dropdown-list nil t))