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
c61005b9
Commit
c61005b9
authored
Jul 27, 1997
by
Richard M. Stallman
Browse files
(fill-context-prefix): Be stricter about
whether first-line prefix is compatible with second-line prefix.
parent
487e6fcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
lisp/textmodes/fill.el
lisp/textmodes/fill.el
+5
-3
No files found.
lisp/textmodes/fill.el
View file @
c61005b9
...
...
@@ -210,12 +210,14 @@ act as a paragraph-separator."
;; If we get a fill prefix from the second line,
;; make sure it or something compatible is on the first line too.
(
and
second-line-prefix
first-line-prefix
(
if
(
or
(
string-match
(
regexp-quote
second-line-prefix
)
(
if
(
or
(
string-match
(
concat
"\\`"
(
regexp-quote
second-line-prefix
)
"\\(\\'\\|[ \t]\\)"
)
first-line-prefix
)
(
and
(
string-match
"[ \t]"
second-line-prefix
)
(
and
(
string-match
"
\\`
[ \t]
+\\'
"
second-line-prefix
)
(
>=
(
string-width
first-line-prefix
)
(
string-width
second-line-prefix
))))
second-line-prefix
))
second-line-prefix
))
;; If we get a fill prefix from a one-line paragraph,
;; maybe change it to whitespace,
;; and check that it isn't a paragraph starter.
...
...
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