]> git.eshelyaron.com Git - emacs.git/commitdiff
(ada-make-body): Use `insert-buffer-substring' and `goto-char', not `insert-buffer'.
authorJuanma Barranquero <lekktu@gmail.com>
Mon, 18 Jul 2005 11:28:53 +0000 (11:28 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Mon, 18 Jul 2005 11:28:53 +0000 (11:28 +0000)
lisp/progmodes/ada-mode.el

index fdb1a9d69f7c5b6eeb4c181ffffb097fa8e00cb1..d062d6d1e98e05e16f152931f442372eae148d6b 100644 (file)
@@ -5349,7 +5349,8 @@ spec buffer in here and modify it to make it a body.
 This function typically is to be hooked into `ff-file-created-hooks'."
   (interactive)
   (delete-region (point-min) (point-max))
-  (insert-buffer (car (cdr (buffer-list))))
+  (insert-buffer-substring (car (cdr (buffer-list))))
+  (goto-char (point-min))
   (ada-mode)
 
   (let (found ada-procedure-or-package-start-regexp)