emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 599a262 113/177: Closes #474: fix cc-mode fontification co


From: João Távora
Subject: [elpa] master 599a262 113/177: Closes #474: fix cc-mode fontification conflict
Date: Sat, 28 Mar 2015 15:41:18 +0000

branch: master
commit 599a2622c6a988829d181ec3aa951848b07d7819
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Closes #474: fix cc-mode fontification conflict
    
    * yasnippet.el (yas--save-backquotes): don't change buffer while
    narrowed.
---
 yasnippet.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/yasnippet.el b/yasnippet.el
index 252083a..e2dbca0 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -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'."
   (while (re-search-forward yas--backquote-lisp-expression-regexp nil t)
     (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 '(?`)))))
       (goto-char (match-beginning 0))
       (when transformed



reply via email to

[Prev in Thread] Current Thread [Next in Thread]