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
32b50df6
Commit
32b50df6
authored
May 28, 1994
by
Richard M. Stallman
Browse files
(fill-region-as-paragraph): if left-margin is nonzero,
do adaptive-fill processing even for one-line paragraphs.
parent
5bca93ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
lisp/textmodes/fill.el
lisp/textmodes/fill.el
+7
-3
No files found.
lisp/textmodes/fill.el
View file @
32b50df6
...
...
@@ -85,11 +85,15 @@ From program, pass args FROM, TO and JUSTIFY-FLAG."
(
setq
fill-prefix
(
buffer-substring
start
(
point
))))
(
goto-char
(
min
from
to
))
(
if
(
eolp
)
(
forward-line
1
))
;; If paragraph has only one line, don't assume
;; If paragraph has only one line, don't assume
in general
;; that additional lines would have the same starting
;; decoration. Assume no indentation.
;; (re-search-forward adaptive-fill-regexp)
;; (setq fill-prefix (make-string (current-column) ?\ ))
;; But if left-margin is nonzero, we can assume ordinary
;; lines do have indentation.
(
if
(
>
left-margin
0
)
(
progn
(
re-search-forward
adaptive-fill-regexp
)
(
setq
fill-prefix
(
make-string
(
current-column
)
?\
))))
)))
(
save-restriction
...
...
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