From f56ab8ec030f97d622762689f71d8f1f484d9e5b Mon Sep 17 00:00:00 2001 From: capitaomorte Date: Sun, 4 Apr 2010 12:08:00 +0000 Subject: [PATCH] * replace mirrors with "" when transformation returns nil * remove one use of `make-variable-buffer-local' --- yasnippet.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index 2bbb282..9470f1a 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -512,7 +512,6 @@ The default value is similar, it filters out potential snippet expansions inside comments and string literals, unless the snippet itself contains a condition that returns the symbol `force-in-comment'.") -(make-variable-buffer-local 'yas/buffer-local-condition) ;;; Internal variables @@ -2795,7 +2794,8 @@ for this field, apply it. Otherwise, returned nil." (transformed (and transform (save-excursion (goto-char start-point) - (yas/eval-lisp transform))))) + (let ((ret (yas/eval-lisp transform))) + (or ret "")))))) transformed)) (defsubst yas/replace-all (from to &optional text)