branch: elpa/lua-mode
commit 535ca1b12acde8d75d7754e68e7b3ca4f50ff01f
Author: immerrr <[email protected]>
Commit: immerrr <[email protected]>
lua-mark-char-multiline-delim,lua-unmark-multiline-literals: inhibit
after-change-functions to avoid running automarking twice on the same text
---
lua-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index bbdbe5f..37c8256 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -1218,7 +1218,7 @@ left out."
If TYPE is string, mark char as string delimiter. If TYPE is comment,
mark char as comment delimiter. Otherwise, remove the mark if any."
- (let ((old-modified-p (buffer-modified-p)))
+ (let ((old-modified-p (buffer-modified-p)) (inhibit-modification-hooks t))
(unwind-protect
(lua-put-char-syntax-table pos (lua-get-multiline-delim-syntax type))
(set-buffer-modified-p old-modified-p))))
@@ -1239,7 +1239,7 @@ mark char as comment delimiter. Otherwise, remove the
mark if any."
If BEGIN is nil, start from `beginning-of-buffer'.
If END is nil, stop at `end-of-buffer'."
(interactive)
- (let ((old-modified-p (buffer-modified-p)))
+ (let ((old-modified-p (buffer-modified-p)) (inhibit-modification-hooks t))
(unwind-protect
(remove-text-properties (or begin (point-min)) (or end (point-max))
'(syntax-table ()))
(set-buffer-modified-p old-modified-p)))