From 57138e6df432df8bbd0b8ddd69bf94e0136f9313 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Sat, 4 May 2013 03:36:06 +0200 Subject: [PATCH] do not require dropdown-list at compile time It might not be available. Also update commentary with respect to dropdown-list. --- yasnippet.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index 625204f..f799ad5 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -110,9 +110,9 @@ ;; are to be displayed, or all the tables for all major ;; modes. ;; -;; The `dropdown-list.el' extension is bundled with YASnippet, you -;; can optionally use it the preferred "prompting method", putting in -;; your .emacs file, for example: +;; If you have `dropdown-list' installed, you can optionally use it +;; as the preferred "prompting method", putting in your .emacs file, +;; for example: ;; ;; (require 'dropdown-list) ;; (setq yas-prompt-functions '(yas-dropdown-prompt @@ -1606,7 +1606,7 @@ Optional PROMPT sets the prompt to use." ido-mode)) (yas-completing-prompt prompt choices display-fn #'ido-completing-read))) -(eval-when-compile (require 'dropdown-list nil t)) +(declare-function dropdown-list "dropdown-list") (defun yas-dropdown-prompt (prompt choices &optional display-fn) (when (featurep 'dropdown-list) (let (formatted-choices