summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2026-05-31 21:36:12 +0300
committerJuri Linkov <juri@linkov.net>2026-05-31 21:36:12 +0300
commit271cc5c76c06b30e84d84b42e71be6f7fb772562 (patch)
tree518f8ff49c60ef048196ef411f97a6174499ac61
parentcc9f35c54bab5f2250c660ea475fc029bcc4bf94 (diff)
More tests for fill-paragraph-handle-comment.erts
* test/lisp/textmodes/fill-resources/fill-paragraph-handle-comment.erts: Add more tests for current comment lines (bug#80449).
-rw-r--r--test/lisp/textmodes/fill-resources/fill-paragraph-handle-comment.erts34
1 files changed, 32 insertions, 2 deletions
diff --git a/test/lisp/textmodes/fill-resources/fill-paragraph-handle-comment.erts b/test/lisp/textmodes/fill-resources/fill-paragraph-handle-comment.erts
index c7c9e96ea50..5e46ca35817 100644
--- a/test/lisp/textmodes/fill-resources/fill-paragraph-handle-comment.erts
+++ b/test/lisp/textmodes/fill-resources/fill-paragraph-handle-comment.erts
@@ -1,6 +1,6 @@
Point-Char: |
-Name: fill-paragraph-handle-comment - non-comment line before comment line
+Name: fill-paragraph-handle-comment - current non-comment line before comment line
Code:
(lambda ()
(setq-local comment-start "# ")
@@ -21,7 +21,22 @@ not part of the comment
=-=-=
-Name: fill-paragraph-handle-comment - non-comment line after comment line
+Name: fill-paragraph-handle-comment - non-comment line before current comment line
+
+=-=
+
+this is not part of the comment this is not part of the comment
+# this is a comment this is a comment this is a comment|
+
+=-=
+
+this is not part of the comment this is not part of the comment
+# this is a comment this is a comment this
+# is a comment
+
+=-=-=
+
+Name: fill-paragraph-handle-comment - comment line before current non-comment line
=-=
@@ -35,3 +50,18 @@ this is not part of the comment this is
not part of the comment
=-=-=
+
+Name: fill-paragraph-handle-comment - current comment line before non-comment line
+
+=-=
+
+# this is a comment this is a comment this is a comment|
+this is not part of the comment this is not part of the comment
+
+=-=
+
+# this is a comment this is a comment this
+# is a comment
+this is not part of the comment this is not part of the comment
+
+=-=-=