From 023f1ebad4550bedfba5b5037b1eaa05773b428a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sun, 22 Apr 2012 17:11:23 +0100 Subject: [PATCH] bugfix: need to to go to end of buffer after inserting .yas-setup.el --- yasnippet.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yasnippet.el b/yasnippet.el index 0dc1214..49d7e1b 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -1736,7 +1736,9 @@ This works by stubbing a few functions, then calling (let ((elfile (concat file ".el"))) (when (file-exists-p elfile) (insert ";;; .yas-setup.el support file if any:\n;;;\n") - (insert-file-contents elfile)))) + (insert-file-contents elfile) + (end-of-buffer) + ))) (yas/define-snippets (mode snippets) (insert ";;; Snippet definitions:\n;;;\n")