changeset 35886:65f3042831db

(next-line): Goto end-of-line before inserting a newline.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 05 Feb 2001 10:16:14 +0000
parents df78441cfb25
children 9c13b43a6bbe
files lisp/simple.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/simple.el	Mon Feb 05 04:10:38 2001 +0000
+++ b/lisp/simple.el	Mon Feb 05 10:16:14 2001 +0000
@@ -2408,7 +2408,8 @@
       (if (save-excursion (end-of-line) (eobp))
 	  ;; When adding a newline, don't expand an abbrev.
 	  (let ((abbrev-mode nil))
-	    (newline 1))
+	    (end-of-line)
+	    (insert "\n"))
 	(line-move arg))
     (if (interactive-p)
 	(condition-case nil