emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 8d7cba7bbf8 1/5: ; Minor comment improvement in c-ts-common--adap


From: Yuan Fu
Subject: master 8d7cba7bbf8 1/5: ; Minor comment improvement in c-ts-common--adaptive-fill-prefix
Date: Mon, 23 Dec 2024 21:53:05 -0500 (EST)

branch: master
commit 8d7cba7bbf8fe83bbf9a9d8cae963983f3bca8cf
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    ; Minor comment improvement in c-ts-common--adaptive-fill-prefix
    
    * lisp/progmodes/c-ts-common.el (c-ts-common--adaptive-fill-prefix):
    Improve comment.
---
 lisp/progmodes/c-ts-common.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/lisp/progmodes/c-ts-common.el b/lisp/progmodes/c-ts-common.el
index 137ff37a661..25b386cbaa7 100644
--- a/lisp/progmodes/c-ts-common.el
+++ b/lisp/progmodes/c-ts-common.el
@@ -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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]