diff options
| author | Craig Jennings <c@cjennings.net> | 2025-10-26 18:39:57 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-10-26 18:39:57 -0500 |
| commit | 3a049219c36945b41ae3e0959bc92e2d7125c167 (patch) | |
| tree | 0e02d43c12f09ef5369623870c71ada2b9082c17 /modules/custom-comments.el | |
| parent | ecc06ccaf3ba7c9925fa35124e6b00deeb66dd59 (diff) | |
| download | dotemacs-3a049219c36945b41ae3e0959bc92e2d7125c167.tar.gz dotemacs-3a049219c36945b41ae3e0959bc92e2d7125c167.zip | |
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.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/custom-comments.el b/modules/custom-comments.el index 101ba092d..4cfd97767 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 |
