mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
When testing snippets for a specific mode, turn off read-only in the testing buffer.
This commit is contained in:
parent
1676151e62
commit
ec9a75a5f5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user