Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
24886813
Commit
24886813
authored
Feb 05, 2001
by
Gerd Moellmann
Browse files
(next-line): Goto end-of-line before inserting a newline.
parent
65e70fc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/simple.el
lisp/simple.el
+2
-1
No files found.
lisp/ChangeLog
View file @
24886813
2001-02-05 Gerd Moellmann <gerd@gnu.org>
* simple.el (next-line): Goto end-of-line before inserting a newline.
2001-02-05 Miles Bader <miles@gnu.org>
* image-file.el (insert-image-file): When visiting an image, also
...
...
lisp/simple.el
View file @
24886813
...
...
@@ -2408,7 +2408,8 @@ and more reliable (no dependence on goal column, etc.)."
(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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment