<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotemacs/tests/test-custom-buffer-file-print-diff-eww.el, branch main</title>
<subtitle>My Emacs configuration
</subtitle>
<id>https://git.cjennings.net/dotemacs/atom?h=main</id>
<link rel='self' href='https://git.cjennings.net/dotemacs/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/'/>
<updated>2026-05-14T06:17:12+00:00</updated>
<entry>
<title>test(custom-buffer-file): cover print spooler, diff, eww, email helpers</title>
<updated>2026-05-14T06:17:12+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-14T06:17:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/commit/?id=61ddfe9f7a9b2838e9c791027e5692cfd6ee128c'/>
<id>urn:sha1:61ddfe9f7a9b2838e9c791027e5692cfd6ee128c</id>
<content type='text'>
Sibling tests cover the move/rename/copy/clear family. The remaining helpers and dispatchers were uncovered:

- `cj/print--resolve-spooler`: explicit-string on PATH, explicit-string missing (error), `auto` prefers lpr, `auto` falls back to lp, `auto` with nothing on PATH (error), `auto` returns cached value, invalid spooler symbol (error).
- `cj/copy-buffer-name`: places the current buffer's name on the kill ring with a confirmation message.
- `cj/view-buffer-in-eww`: hands the file off to `eww-open-file` when visiting a file, errors otherwise.
- `cj/--email-handle-is-type-p`: prefix-matches content-types, handles nil handle without signaling.
- `cj/--diff-with-regular-diff`: writes a unified diff into the target buffer with header + diff output.
- `cj/diff-buffer-with-file`: errors when not visiting a file, messages "No differences" when diff -q returns 0.

16 new tests total. `call-process`, `executable-find`, `eww-open-file`, `mm-handle-type`, `diff-mode` are stubbed.
</content>
</entry>
</feed>
