aboutsummaryrefslogtreecommitdiff
path: root/tests/test-custom-comments-comment-reformat.el
Commit message (Collapse)AuthorAgeFilesLines
* fix(custom-comments): correct comment-reformat and inline-borderCraig Jennings23 hours1-9/+2
| | | | | | cj/comment-reformat printed "No region was selected" on every call, even successful ones, because the message sat outside the if. Its fill-column shrink used a raw setq and restore, so an error mid-join left fill-column permanently at -3. It now signals a user-error when there's no region and dynamically binds fill-column, which restores itself. cj/--comment-inline-border sized the right decoration from text-length parity, leaving even-length and empty text two columns short and misaligning stacked dividers. It now fills the exact remaining width. Both fixes ship with tests, and the inline-border test asserts exact width across parities.
* Revert "checking in modified/removed tests and other misc changes"Craig Jennings2025-11-141-0/+191
| | | | This reverts commit d36afc3f277b9a4228eb7b2464ec4e503695b8d4.
* checking in modified/removed tests and other misc changesCraig Jennings2025-11-141-191/+0
|
* test+fix:comments: add tests for cj/comment-reformat; fix arg issueCraig Jennings2025-10-261-0/+191
Add 14 unit tests for cj/comment-reformat covering: - Emacs Lisp (12 tests): multiline joining, fill-column restoration, unicode, indentation, empty regions, read-only buffers - Python (1 test): hash-based comments - C (1 test): C-style comments (converted to block style by c-mode Fix issue where cj/comment-reformat was being called with args