From 87d2586bcd99f3ceb811d4e1e287ac7ca8f5c65b Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 26 Oct 2025 18:39:57 -0500 Subject: test+fix:comments: add tests for cj/comment-reformat; fix arg issue 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 --- modules/custom-comments.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/custom-comments.el') diff --git a/modules/custom-comments.el b/modules/custom-comments.el index 101ba092..4cfd9776 100644 --- a/modules/custom-comments.el +++ b/modules/custom-comments.el @@ -38,7 +38,7 @@ (orig-fill-column fill-column)) (uncomment-region beg end) (setq fill-column (- fill-column 3)) - (cj/join-line-or-region beg end) + (cj/join-line-or-region) (comment-region beg end) (setq fill-column orig-fill-column ))) ;; if no region -- cgit v1.2.3