mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
* replace mirrors with "" when transformation returns nil
* remove one use of `make-variable-buffer-local'
This commit is contained in:
parent
e76219259e
commit
f56ab8ec03
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user