aboutsummaryrefslogtreecommitdiff
path: root/todo.org
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-15 23:21:16 -0500
committerCraig Jennings <c@cjennings.net>2026-06-15 23:21:16 -0500
commit37f00dcbe5b400a968f63c4a27664ff8eee6030a (patch)
tree36fcaf2cbb2105e777783f20501f295dbe923c4c /todo.org
parentb53375c12c46f7020feae0c6274770ef2e31ebbb (diff)
downloaddotemacs-37f00dcbe5b400a968f63c4a27664ff8eee6030a.tar.gz
dotemacs-37f00dcbe5b400a968f63c4a27664ff8eee6030a.zip
fix(custom-comments): heavy-box interiors are valid comments
The heavy-box empty and text lines began with a bare decoration char, so in line-comment languages (elisp, Python) C-; C h injected syntax-breaking lines. Prefix the interiors with the comment char and suffix them like cj/--comment-box does. Add the missing min-length guard so small or negative widths error cleanly instead of failing inside make-string. Updated the two characterization assertions to the corrected output.
Diffstat (limited to 'todo.org')
-rw-r--r--todo.org4
1 files changed, 3 insertions, 1 deletions
diff --git a/todo.org b/todo.org
index ebaaa7e85..de07399f5 100644
--- a/todo.org
+++ b/todo.org
@@ -989,7 +989,9 @@ Add the buffer-local var, set it on each "Run a test..." selection, use it as th
*** TODO [#B] TS/JS coverage status sync
Update the =dev-fkeys.el= header comment (L33) — TS/JS is no longer punted; the cmd-builder at L384 emits vitest/jest. Document the prefer-vitest fallback.
-** TODO [#B] heavy-box comment inserts non-comment lines :bug:solo:next:
+** DONE [#B] heavy-box comment inserts non-comment lines :bug:solo:next:
+CLOSED: [2026-06-15 Mon]
+cj/--comment-heavy-box now prefixes the interior empty/text lines with the comment char + suffix (like cj/--comment-box) so they stay valid comments in line-comment languages, and gained the min-length guard (small/negative widths now error cleanly instead of hitting make-string). The two characterization assertions that pinned the broken bare-* lines were updated to the corrected output.
=modules/custom-comments.el:427= — =cj/--comment-heavy-box= interior/empty lines carry no comment prefix, so in line-comment languages (elisp, Python) C-; C h injects syntax-breaking bare =*...= lines. The existing test characterizes the broken output (asserts =^\*.*\*$=). Prefix interiors like =cj/--comment-box= does; add the missing min-length validation (negative width hits make-string with a raw error); fix the test to assert corrected output. From the 2026-06 config audit.
** TODO [#B] jumper: register collisions and dead-marker errors :bug:solo: