diff options
| author | Craig Jennings <c@cjennings.net> | 2025-11-03 12:58:50 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-11-03 12:58:50 -0600 |
| commit | 4ef5c963b243926ca62226632b2eb02b18274ae0 (patch) | |
| tree | efadc8774665bbb720f5b0bb18254993e4c43c89 /modules/markdown-config.el | |
| parent | 944f1e12dcca354f954956a962627abd7b1a0753 (diff) | |
| download | dotemacs-4ef5c963b243926ca62226632b2eb02b18274ae0.tar.gz dotemacs-4ef5c963b243926ca62226632b2eb02b18274ae0.zip | |
feat: Add copy-to-top and copy-to-bottom buffer methods with tests
Add two new methods to copy buffer content regions:
- cj/copy-to-bottom-of-buffer: copies from point to end of buffer
- cj/copy-to-top-of-buffer: copies from beginning of buffer to point
Reorganize copy operations under C-; b c submenu:
- C-; b c w: copy whole buffer
- C-; b c t: copy to top (beginning to point)
- C-; b c b: copy to bottom (point to end)
Other copy operations (buffer name, file path, file link) remain at
C-; b base level for quick access.
Add comprehensive ERT tests (22 tests total):
- test-custom-buffer-file-copy-to-bottom-of-buffer.el (11 tests)
- test-custom-buffer-file-copy-to-top-of-buffer.el (11 tests)
- Tests cover normal, boundary, and error cases including unicode,
narrowing, whitespace, and read-only buffers
All tests pass.
Diffstat (limited to 'modules/markdown-config.el')
0 files changed, 0 insertions, 0 deletions
