From aec74e5564b43cf752a5c2763203b715b769bda6 Mon Sep 17 00:00:00 2001 From: capitaomorte Date: Wed, 2 Sep 2009 19:56:41 +0000 Subject: [PATCH] * Fixed two bugs in issue 90 and issue 88 --- yasnippet.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index 72176b3..5de98ca 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -164,7 +164,8 @@ directories are used for bulk reloading of all snippets using :group 'yasnippet :require 'yasnippet :set #'(lambda (symbol new) - (let ((old (symbol-value symbol))) + (let ((old (and (boundp symbol) + (symbol-value symbol)))) (set-default symbol new) (unless (or (not (fboundp 'yas/reload-all)) (equal old new)) @@ -238,7 +239,8 @@ representation using `read-kbd-macro'." :type 'string :group 'yasnippet :set #'(lambda (symbol key) - (let ((old (symbol-value symbol))) + (let ((old (and (boundp symbol) + (symbol-value symbol)))) (set-default symbol key) (if (fboundp 'yas/trigger-key-reload) (yas/trigger-key-reload old)))))