mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
Closes #474: fix cc-mode fontification conflict
* yasnippet.el (yas--save-backquotes): don't change buffer while narrowed.
This commit is contained in:
parent
4473b4ede5
commit
599a2622c6
@ -3907,7 +3907,8 @@ With optional string TEXT do it in string instead of the buffer."
|
|||||||
with their evaluated value into `yas--backquote-markers-and-strings'."
|
with their evaluated value into `yas--backquote-markers-and-strings'."
|
||||||
(while (re-search-forward yas--backquote-lisp-expression-regexp nil t)
|
(while (re-search-forward yas--backquote-lisp-expression-regexp nil t)
|
||||||
(let ((current-string (match-string-no-properties 1)) transformed)
|
(let ((current-string (match-string-no-properties 1)) transformed)
|
||||||
(delete-region (match-beginning 0) (match-end 0))
|
(save-restriction (widen)
|
||||||
|
(delete-region (match-beginning 0) (match-end 0)))
|
||||||
(setq transformed (yas--eval-lisp (yas--read-lisp (yas--restore-escapes current-string '(?`)))))
|
(setq transformed (yas--eval-lisp (yas--read-lisp (yas--restore-escapes current-string '(?`)))))
|
||||||
(goto-char (match-beginning 0))
|
(goto-char (match-beginning 0))
|
||||||
(when transformed
|
(when transformed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user