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
79424eea
Commit
79424eea
authored
Apr 12, 2002
by
Stefan Monnier
Browse files
(fill-region-as-paragraph): Use save-excursion instead of relying on
forward-line to bring us where we started.
parent
4599773d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lisp/textmodes/fill.el
lisp/textmodes/fill.el
+3
-3
No files found.
lisp/textmodes/fill.el
View file @
79424eea
...
...
@@ -660,9 +660,9 @@ space does not end a sentence, so don't break a line there."
(progn
(delete-horizontal-space)
(justify-current-line justify t t))
(
forward-line -1)
(justify-current-line justify nil t
)
(forward-line 1
))))))
(
save-excursion
(forward-line -1
)
(justify-current-line justify nil t)
))))))
;; Leave point after final newline.
(goto-char to))
(unless (eobp)
...
...
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