]> git.eshelyaron.com Git - emacs.git/commitdiff
; Minor comment improvement in c-ts-common--adaptive-fill-prefix
authorYuan Fu <casouri@gmail.com>
Sat, 21 Dec 2024 06:46:31 +0000 (22:46 -0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 27 Dec 2024 15:29:07 +0000 (16:29 +0100)
* lisp/progmodes/c-ts-common.el (c-ts-common--adaptive-fill-prefix):
Improve comment.

(cherry picked from commit 8d7cba7bbf8fe83bbf9a9d8cae963983f3bca8cf)

lisp/progmodes/c-ts-common.el

index 363a0b42292b125e6b98ae17c6d34bff7b3a2f8a..2d7607987c27661c2f4e759ad8346560846b2a63 100644 (file)
@@ -249,9 +249,12 @@ This function should be called at BOL.  Used by
    ;; (3)
    ;; Current line: *, |, -
    ;; Prefix: same.
-   ;; This branch must return the same prefix as branch (1), as the
-   ;; second line in the paragraph; then the whole paragraph will use *
-   ;; as the prefix.
+   ;; Adaptive fill looks at the first and second line of a paragraph,
+   ;; only when both lines return the same prefix does it use that
+   ;; prefix for the following lines.  If the first lines matches branch
+   ;; (1) and returns * as prefix, and the second line matches this
+   ;; branch (3), and returns * as prefix, then the whole paragraph will
+   ;; use * as prefix.
    ((looking-at (rx (* (syntax whitespace))
                     (or "*" "|" "-")
                     (* (syntax whitespace))))