summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2026-06-01 11:52:53 +0100
committerSean Whitton <spwhitton@spwhitton.name>2026-06-01 11:52:53 +0100
commitb64d1639799fb0f3ec812325eea6384b3231c5e9 (patch)
treea8cdd4722053f9dd21f01d489d2ed4cbbb1a1eee /test
parent75d8e5773dede1d6c429bd08a4b8d5a0d87fe87b (diff)
parent2c2f1c00accb7672bea7fa98d5314bfb11edfd7f (diff)
Merge from origin/emacs-31
2c2f1c00acc ; * lisp/vc/vc-dir.el (vc-dir-update): Add an assertion. 51f823a3afa ; * etc/NEWS: Fix annotation. 271cc5c76c0 More tests for fill-paragraph-handle-comment.erts cc9f35c54ba ; * etc/PROBLEMS: Minor fixes of last change. 2727a6f4e8d ; Document problems caused by validation of *.eln files o... f1dd84bec99 ; * lisp/play/doctor.el (doctor-death): Fix Samaritans UR... 0bfbe06090c Update to Org 9.8.5 aac5e0457ae Eglot: replace eglot-prefer-plaintext with eglot-document... ec3d662de0b Make HTML button elements tab-stoppable in eww (bug#81107) # Conflicts: # etc/NEWS
Diffstat (limited to 'test')
-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
+
+=-=-=