[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/yasnippet 3e14a8534f: (yas--on-protection-overlay-modif
From: |
ELPA Syncer |
Subject: |
[elpa] externals/yasnippet 3e14a8534f: (yas--on-protection-overlay-modification): Fix thinko |
Date: |
Thu, 18 Jan 2024 12:59:21 -0500 (EST) |
branch: externals/yasnippet
commit 3e14a8534f930e7116d576992c93d33bf7ee38c9
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
(yas--on-protection-overlay-modification): Fix thinko
---
yasnippet.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/yasnippet.el b/yasnippet.el
index 63ebfe0754..0862f9f2ff 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -3939,7 +3939,8 @@ Move the overlays, or create them if they do not exit."
(overlay-put ov 'face 'yas--field-debug-face)
(overlay-put ov 'yas--snippet snippet)
;; (overlay-put ov 'evaporate t)
- (overlay-put ov 'modification-hooks
'(yas--on-protection-overlay-modification)))))))
+ (overlay-put ov 'modification-hooks
+ '(yas--on-protection-overlay-modification)))))))
(defun yas--on-protection-overlay-modification (overlay after? beg end
&optional length)
"Commit the snippet if the protection overlay is being killed."
@@ -3947,7 +3948,7 @@ Move the overlays, or create them if they do not exit."
yas-inhibit-overlay-modification-protection
(not after?)
(= length (- end beg)) ; deletion or insertion
- (>= beg (overlay-start overlay)) ;Emacs=29.1 bug#65929
+ (>= beg (overlay-end overlay)) ;Emacs=29.1 bug#65929
(yas--undo-in-progress))
(let ((snippets (yas-active-snippets)))
(yas--message 2 "Committing snippets. Action would destroy a protection
overlay.")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/yasnippet 3e14a8534f: (yas--on-protection-overlay-modification): Fix thinko,
ELPA Syncer <=