mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
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.
This commit is contained in:
parent
7f337f4488
commit
63f44b4e48
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user