From ec9a75a5f503c4f19b0b3591d6fd8357762b1a84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Thu, 1 Dec 2011 19:32:11 +0000 Subject: [PATCH] When testing snippets for a specific mode, turn off read-only in the testing buffer. --- yasnippet.el | 1 + 1 file changed, 1 insertion(+) diff --git a/yasnippet.el b/yasnippet.el index d0cb00d..6dac61d 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -2554,6 +2554,7 @@ With optional prefix argument KILL quit the window and buffer." (switch-to-buffer (get-buffer-create buffer-name)) (setq buffer-undo-list nil) (condition-case nil (funcall test-mode) (error nil)) + (setq buffer-read-only nil) (yas/expand-snippet (yas/template-content yas/current-template) (point-min) (point-max)