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
78652ce8
Commit
78652ce8
authored
May 23, 1998
by
Richard M. Stallman
Browse files
(fill-region-as-paragraph):
Don't add a newline at the end, when there is none.
parent
2f402702
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
lisp/textmodes/fill.el
lisp/textmodes/fill.el
+6
-6
No files found.
lisp/textmodes/fill.el
View file @
78652ce8
...
...
@@ -302,11 +302,10 @@ space does not end a sentence, so don't break a line there."
(
backward-char
1
)
(
setq
oneleft
t
)))
(
setq
to
(
point
))
;; If there was no newline, and there is text in the paragraph, then
;; create a newline.
(
if
(
and
(
not
oneleft
)
(
>
to
from-plus-indent
))
(
newline
))
;;; ;; If there was no newline, and there is text in the paragraph, then
;;; ;; create a newline.
;;; (if (and (not oneleft) (> to from-plus-indent))
;;; (newline))
(
goto-char
from-plus-indent
))
(
if
(
not
(
>
to
(
point
)))
...
...
@@ -557,7 +556,8 @@ space does not end a sentence, so don't break a line there."
(forward-line 1))))))
;; Leave point after final newline.
(goto-char (point-max)))
(forward-char 1))))
(unless (eobp)
(forward-char 1)))))
(defun fill-paragraph (arg)
"
Fill
paragraph
at
or
after
point.
Prefix
arg
means
justify
as
well.
...
...
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