[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 90d4cae 013/177: inhibit change hooks during (insert conte
From: |
João Távora |
Subject: |
[elpa] master 90d4cae 013/177: inhibit change hooks during (insert content) |
Date: |
Sat, 28 Mar 2015 15:40:29 +0000 |
branch: master
commit 90d4cae1b1bbfacc612e73444f1e5a723ae4036e
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>
inhibit change hooks during (insert content)
`yas-expand-snippet' narrows to a 0 size region before doing (insert
content), this confuses cc-mode's before-change-functions that
invalidate some cached information. Binding `inhibit-modification-hooks'
to `t' prevents calling these functions.
Fixes #404.
---
yasnippet.el | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/yasnippet.el b/yasnippet.el
index f1bba52..8fb14b4 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -3523,9 +3523,11 @@ considered when expanding the snippet."
(setq snippet
(if expand-env
(eval `(let* ,expand-env
- (insert content)
+ (let ((inhibit-modification-hooks t))
+ (insert content))
(yas--snippet-create (point-min))))
- (insert content)
+ (let ((inhibit-modification-hooks t))
+ (insert content))
(yas--snippet-create (point-min)))))))
;; stacked-expansion: This checks for stacked expansion, save the
- [elpa] master ce50b3d 004/177: Closes #318: Don't use CL-LABELS for backward compatibility with older emacsen, (continued)
- [elpa] master ce50b3d 004/177: Closes #318: Don't use CL-LABELS for backward compatibility with older emacsen, João Távora, 2015/03/28
- [elpa] master a7d40ed 003/177: Closes #318: correctly implement YAS--MODES-TO-ACTIVATE, João Távora, 2015/03/28
- [elpa] master 78c52fd 005/177: fix: shoosh warning with LETREC instead of LET, João Távora, 2015/03/28
- [elpa] master 3ec62ab 006/177: fix: please older emacsen, don't use LETREC after all, João Távora, 2015/03/28
- [elpa] master 1aac5fc 008/177: Merge pull request #407 from dongxiong/patch-1, João Távora, 2015/03/28
- [elpa] master 79f3656 011/177: fix font-lock-keywords syntax, João Távora, 2015/03/28
- [elpa] master 13cfdbc 009/177: fix: remove references to dropdown-list.el in Rakefile, João Távora, 2015/03/28
- [elpa] master 8853127 007/177: Update manual.mdown, João Távora, 2015/03/28
- [elpa] master d963c41 010/177: Closes #406: correct docstring for yas-extra-modes, João Távora, 2015/03/28
- [elpa] master f21ddd1 012/177: remove redundant font-lock-keywords, João Távora, 2015/03/28
- [elpa] master 90d4cae 013/177: inhibit change hooks during (insert content),
João Távora <=
- [elpa] master 7849ffc 015/177: fix: don't use universal-argument-num-events, João Távora, 2015/03/28
- [elpa] master 6997922 016/177: Revert "inhibit change hooks during (insert content)", João Távora, 2015/03/28
- [elpa] master 6268cc2 014/177: add: test for issue #404, João Távora, 2015/03/28
- [elpa] master 5c76a0f 019/177: test middle-of-buffer snippet insertion, João Távora, 2015/03/28
- [elpa] master 51e9e8e 017/177: wait till after content insertion to narrow, João Távora, 2015/03/28
- [elpa] master 3bb1515 018/177: Merge pull request #409 from npostavs/font-lock, João Távora, 2015/03/28
- [elpa] master 6c3e029 020/177: Merge pull request #412 from npostavs/less-narrow, João Távora, 2015/03/28
- [elpa] master 32ee5cb 021/177: Closes #415: remove c-specific hacks, harmful on emacs 24.3, João Távora, 2015/03/28
- [elpa] master ffd497d 022/177: don't kill snippet buffer unless saved, João Távora, 2015/03/28
- [elpa] master 205b0e6 023/177: move snippet saving from loading to closing, João Távora, 2015/03/28