aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuan Fu2024-12-20 22:46:31 -0800
committerYuan Fu2024-12-23 18:52:40 -0800
commit8d7cba7bbf8fe83bbf9a9d8cae963983f3bca8cf (patch)
treefe8c137f8413936fa26cd09c3f4d04b79b247908
parent6ac38396898e6324d4c6dddb2ad05d1ad0dc5e7c (diff)
downloademacs-8d7cba7bbf8fe83bbf9a9d8cae963983f3bca8cf.tar.gz
emacs-8d7cba7bbf8fe83bbf9a9d8cae963983f3bca8cf.zip
; Minor comment improvement in c-ts-common--adaptive-fill-prefix
* lisp/progmodes/c-ts-common.el (c-ts-common--adaptive-fill-prefix): Improve comment.
-rw-r--r--lisp/progmodes/c-ts-common.el9
1 files 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
249 ;; (3) 249 ;; (3)
250 ;; Current line: *, |, - 250 ;; Current line: *, |, -
251 ;; Prefix: same. 251 ;; Prefix: same.
252 ;; This branch must return the same prefix as branch (1), as the 252 ;; Adaptive fill looks at the first and second line of a paragraph,
253 ;; second line in the paragraph; then the whole paragraph will use * 253 ;; only when both lines return the same prefix does it use that
254 ;; as the prefix. 254 ;; prefix for the following lines. If the first lines matches branch
255 ;; (1) and returns * as prefix, and the second line matches this
256 ;; branch (3), and returns * as prefix, then the whole paragraph will
257 ;; use * as prefix.
255 ((looking-at (rx (* (syntax whitespace)) 258 ((looking-at (rx (* (syntax whitespace))
256 (or "*" "|" "-") 259 (or "*" "|" "-")
257 (* (syntax whitespace)))) 260 (* (syntax whitespace))))