* Fixed two bugs in issue 90 and issue 88

This commit is contained in:
capitaomorte 2009-09-02 19:56:41 +00:00
parent 5a9ab30982
commit aec74e5564

View File

@ -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)))))