mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
It's too confusing and complicated: don't support redo of a snippet expansion.
This commit is contained in:
parent
cda9e20b3d
commit
c55a627cad
@ -236,13 +236,13 @@ redo-ed."
|
|||||||
(setq buffer-undo-list (cdr buffer-undo-list))
|
(setq buffer-undo-list (cdr buffer-undo-list))
|
||||||
(setq undo (car buffer-undo-list)))
|
(setq undo (car buffer-undo-list)))
|
||||||
;; Remove this undo operation record
|
;; Remove this undo operation record
|
||||||
(setq buffer-undo-list (cdr buffer-undo-list)))
|
(setq buffer-undo-list (cdr buffer-undo-list))
|
||||||
(let ((inhibit-modification-hooks t)
|
(let ((inhibit-modification-hooks t)
|
||||||
(buffer-undo-list t))
|
(buffer-undo-list t))
|
||||||
(yas/exit-snippet snippet)
|
(yas/exit-snippet snippet)
|
||||||
(goto-char start)
|
(goto-char start)
|
||||||
(delete-char (- end start))
|
(delete-char (- end start))
|
||||||
(insert key)))
|
(insert key))))
|
||||||
|
|
||||||
(defun yas/expand-snippet (start end template)
|
(defun yas/expand-snippet (start end template)
|
||||||
"Expand snippet at current point. Text between START and END
|
"Expand snippet at current point. Text between START and END
|
||||||
|
Loading…
x
Reference in New Issue
Block a user