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

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

[elpa] master 63f44b4 33/63: Ensure inhibit-modification-hooks is nil wh


From: Noam Postavsky
Subject: [elpa] master 63f44b4 33/63: Ensure inhibit-modification-hooks is nil while modifying buffer
Date: Mon, 17 Jul 2017 22:54:15 -0400 (EDT)

branch: master
commit 63f44b4e48f6bd63452b5b697800cfe4d67c5d6a
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Ensure inhibit-modification-hooks is nil while modifying buffer
    
    * yasnippet.el (yas--on-field-overlay-modification): Bind
    inhibit-modification-hooks to nil so that other packages' hooks can
    run, yas--inhibit-overlay-hooks so that we won't run recursively.
---
 yasnippet.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/yasnippet.el b/yasnippet.el
index 092ea6a..1e82776 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -3534,7 +3534,8 @@ field start.  This hook does nothing if an undo is in 
progress."
               yas--inhibit-overlay-hooks
               (not (overlayp yas--active-field-overlay)) ; Avoid Emacs bug 
#21824.
               (yas--undo-in-progress))
-    (let* ((inhibit-modification-hooks t)
+    (let* ((inhibit-modification-hooks nil)
+           (yas--inhibit-overlay-hooks t)
            (field (overlay-get overlay 'yas--field))
            (snippet (overlay-get yas--active-field-overlay 'yas--snippet)))
       (save-match-data



reply via email to

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