From 331812fefbf8e6bb6db9b80e2aefe3c1a11b620e Mon Sep 17 00:00:00 2001 From: Zhang Chiyuan Date: Wed, 10 Sep 2008 12:27:32 +0000 Subject: [PATCH] Use eval-when-compile for (require 'cl) --- yasnippet.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index e3d51e4..82f95d9 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -35,7 +35,7 @@ ;; For more information and detailed usage, refer to the project page: ;; http://code.google.com/p/yasnippet/ -(require 'cl) +(eval-when-compile (require 'cl)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; User customizable variables @@ -174,6 +174,8 @@ Here's an example: '(if (python-in-string/comment) '(require-snippet-condition . force-in-comment) t))))") +(eval-when-compile + (make-variable-buffer-local 'yas/buffer-local-condition)) (defvar yas/fallback-behavior 'call-other-command "The fall back behavior of YASnippet when it can't find a snippet @@ -1225,7 +1227,7 @@ when the condition evaluated to non-nil." (if template (progn (yas/expand-snippet start end template) 'expanded) ; expanded successfully - 'interruptted)) ; interrupted by user + 'interrupted)) ; interrupted by user (if (eq yas/fallback-behavior 'return-nil) nil ; return nil (let* ((yas/minor-mode nil)