When testing snippets for a specific mode, turn off read-only in the testing buffer.

This commit is contained in:
João Távora 2011-12-01 19:32:11 +00:00
parent 1676151e62
commit ec9a75a5f5

View File

@ -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)