aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorJuanma Barranquero <[email protected]>2005-07-18 11:28:53 +0000
committerJuanma Barranquero <[email protected]>2005-07-18 11:28:53 +0000
commit877dde9e8bcf1c656ecf311dbd1bf76d288fb42c (patch)
tree7b0d49d8e9873c9cc68d57ce0fd8c4fb0095f102 /lisp/progmodes
parentf706036b3e69a7463dd867b61864f5518c478260 (diff)
(ada-make-body): Use `insert-buffer-substring' and `goto-char', not `insert-buffer'.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/ada-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el
index fdb1a9d69f..d062d6d1e9 100644
--- a/lisp/progmodes/ada-mode.el
+++ b/lisp/progmodes/ada-mode.el
@@ -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)