<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotemacs/tests/test-external-open-commands.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-14T08:43:46+00:00</updated>
<entry>
<title>test(external-open): cover xdg-open, open-this-file-with, find-file-auto</title>
<updated>2026-05-14T08:43:46+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-14T08:43:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/commit/?id=f6cfaee02412944e281c7ec4c6b20512b3e45708'/>
<id>urn:sha1:f6cfaee02412944e281c7ec4c6b20512b3e45708</id>
<content type='text'>
Sibling tests in `test-external-open-lib-*.el` covered the pure helpers (`cj/external-open-command`, `cj/external-open-launcher-p`). This batch covers the user-facing wrappers:

- `cj/xdg-open`: posix path triggers `call-process` with the open program; errors when no file is associated; errors when no command resolves on the host.
- `cj/open-this-file-with`: errors outside a file-visiting buffer; posix path spawns a detached process via `call-process-shell-command` with `nohup ... &gt;/dev/null 2&gt;&amp;1 &amp;`.
- `cj/find-file-auto`: routes a `.mp4` (in `default-open-extensions`) to `cj/xdg-open`, passes `.txt` through to the original `find-file`, and falls through cleanly for a nil filename argument.

Host predicates, call-process, and the underlying `cj/xdg-open` are stubbed throughout.
</content>
</entry>
</feed>
