summaryrefslogtreecommitdiff
path: root/modules/custom-file-buffer.el
AgeCommit message (Collapse)Author
3 hours test+fix:custom-file-buffer: add tests, fix linter warningCraig Jennings
Add 58 unit tests for buffer/file utility functions: - cj/copy-link-to-buffer-file (12 tests) - cj/copy-path-to-buffer-file-as-kill (12 tests) - cj/copy-whole-buffer (14 tests) - cj/clear-to-bottom-of-buffer (10 tests) - cj/clear-to-top-of-buffer (10 tests) Tests cover normal cases, boundary cases (unicode, empty buffers, narrowing, read-only buffers), and error cases. Production code change: - Fix linter warning: unused variable 'err' → '_' in cj/move-buffer-and-file
3 hoursfeat+test:custom-file-buffer: add tests and safety refactoringCraig Jennings
Add 106 unit tests with full coverage for move-buffer-and-file (51 tests) and rename-buffer-and-file (55 tests). Refactor both functions using interactive/non-interactive split pattern for simpler testing and reusability. Changes: - Split cj/move-buffer-and-file and cj/rename-buffer-and-file into internal implementations (cj/--*) and interactive wrappers - Add ok-if-exists parameter with user confirmation to prevent data loss - Fix bugs: return values, path expansion, string-match arg order, regex - Add test utilities for proper buffer cleanup and isolation - Document interactive/non-interactive pattern in quality-engineer.org - Document error message testing guidelines in quality-engineer.org All 106 tests passing.
4 daysfeat: undead-buffers: Add `cj/make-buffer-undead` function and testsCraig Jennings
Introduce a new function `cj/make-buffer-undead` that appends a buffer name to the `cj/undead-buffer-list`, preventing it from being killed. This comes along with a suite of tests to check various scenarios and edge cases for handling undead buffers. Additionally, add tests for related functions: `cj/kill-buffer-or-bury-alive`, `cj/kill-buffer-and-window`, and others to ensure they correctly manage buffers, particularly with undead-status considerations. Refactor `undead-buffer-list` naming for consistency and clarity in the module.
5 daysfeat: buffer: added cj/copy-buffer-name convenience functionCraig Jennings
6 daysfix: custom-file-buffer: Declare cj/custom-keymap for compilationCraig Jennings
Declare `cj/custom-keymap` variable to prevent compilation warnings related to undefined keymaps.
8 daysimproved commentaryCraig Jennings
9 daysfix: buffer-and-file-map: symbol vs string errorCraig Jennings
9 daysfeat: file-buffer: Add PostScript printing with colorCraig Jennings
- cj/print-buffer-ps prints buffer or active region; prefix enables color - Auto-detect and cache spooler (lpr/lp); override via cj/print-spooler-command - Sends to default printer with no headers - Replace use-package ps-print config; add declare-function guards - Refactor keymap to defvar-keymap and keymap-set - Minor cleanup in rename function (remove unused var)
2025-10-12maint: remaining custom functions grouped into separate modulesCraig Jennings
2025-10-12maint: assemble file and buffer operations into single moduleCraig Jennings