summaryrefslogtreecommitdiff
path: root/modules/custom-comments.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-10-26 18:39:57 -0500
committerCraig Jennings <c@cjennings.net>2025-10-26 18:39:57 -0500
commit87d2586bcd99f3ceb811d4e1e287ac7ca8f5c65b (patch)
tree97f6afb732d7b91ed7ca4ac19fcd10cf6780b143 /modules/custom-comments.el
parentdf47f968e434ffbf83280b78780e54ed71915192 (diff)
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
Diffstat (limited to 'modules/custom-comments.el')
-rw-r--r--modules/custom-comments.el2
1 files changed, 1 insertions, 1 deletions
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