aboutsummaryrefslogtreecommitdiff
path: root/modules/custom-file-buffer.el
Commit message (Collapse)AuthorAgeFilesLines
* test+fix:custom-file-buffer: add tests, fix linter warningCraig Jennings2025-10-261-1/+1
| | | | | | | | | | | | | | | 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
* feat+test:custom-file-buffer: add tests and safety refactoringCraig Jennings2025-10-261-16/+63
| | | | | | | | | | | | | | | | | 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.
* feat: undead-buffers: Add `cj/make-buffer-undead` function and testsCraig Jennings2025-10-221-4/+6
| | | | | | | | | | | | | | | 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.
* feat: buffer: added cj/copy-buffer-name convenience functionCraig Jennings2025-10-211-67/+74
|
* fix: custom-file-buffer: Declare cj/custom-keymap for compilationCraig Jennings2025-10-201-1/+2
| | | | | Declare `cj/custom-keymap` variable to prevent compilation warnings related to undefined keymaps.
* improved commentaryCraig Jennings2025-10-191-2/+13
|
* fix: buffer-and-file-map: symbol vs string errorCraig Jennings2025-10-181-1/+1
|
* feat: file-buffer: Add PostScript printing with colorCraig Jennings2025-10-171-47/+80
| | | | | | | | | - 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)
* maint: remaining custom functions grouped into separate modulesCraig Jennings2025-10-121-2/+0
|
* maint: assemble file and buffer operations into single moduleCraig Jennings2025-10-121-0/+148