diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2005-07-18 11:28:53 +0000 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2005-07-18 11:28:53 +0000 |
commit | 877dde9e8bcf1c656ecf311dbd1bf76d288fb42c (patch) | |
tree | 7b0d49d8e9873c9cc68d57ce0fd8c4fb0095f102 /lisp/progmodes/ada-mode.el | |
parent | f706036b3e69a7463dd867b61864f5518c478260 (diff) | |
download | emacs-877dde9e8bcf1c656ecf311dbd1bf76d288fb42c.tar.gz |
(ada-make-body): Use `insert-buffer-substring' and `goto-char', not `insert-buffer'.
Diffstat (limited to 'lisp/progmodes/ada-mode.el')
-rw-r--r-- | lisp/progmodes/ada-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el index fdb1a9d69f7..d062d6d1e98 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) |