From 7e39aa3e56a0d90ac103bd5366f2dc52342c12e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Tue, 17 Jul 2012 04:11:22 +0100 Subject: [PATCH] Fix #266 --- yasnippet.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yasnippet.el b/yasnippet.el index 3c14546..68c9f8a 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -1588,7 +1588,9 @@ TEMPLATES is a list of `yas/template'." (keyboard-quit)))) (defun yas/ido-prompt (prompt choices &optional display-fn) - (when (fboundp 'ido-completing-read) + (when (and (fboundp 'ido-completing-read) + (or (>= emacs-major-version 24) + ido-mode)) (yas/completing-prompt prompt choices display-fn #'ido-completing-read))) (eval-when-compile (require 'dropdown-list nil t))