From c55a627cad49e077167f604984c45a4a96c528f6 Mon Sep 17 00:00:00 2001 From: Zhang Chiyuan Date: Wed, 5 Mar 2008 03:34:57 +0000 Subject: [PATCH] It's too confusing and complicated: don't support redo of a snippet expansion. --- yasnippet.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index e57e06f..00199a9 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -236,13 +236,13 @@ redo-ed." (setq buffer-undo-list (cdr buffer-undo-list)) (setq undo (car buffer-undo-list))) ;; 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) (buffer-undo-list t)) (yas/exit-snippet snippet) (goto-char start) (delete-char (- end start)) - (insert key))) + (insert key)))) (defun yas/expand-snippet (start end template) "Expand snippet at current point. Text between START and END