<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotemacs/tests/test-external-open-lib-command.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-10T20:37:36+00:00</updated>
<entry>
<title>refactor(external-open): extract external-open-lib for shared helpers</title>
<updated>2026-05-10T20:37:36+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-10T20:37:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/commit/?id=618bc7813b9acfcf1dfccc9c6590f6f5aece86cf'/>
<id>urn:sha1:618bc7813b9acfcf1dfccc9c6590f6f5aece86cf</id>
<content type='text'>
Same shared-helpers split-pattern that ai-vterm/vterm-config use
through cj-window-toggle-lib and that calendar-sync uses through
cj-org-text-lib.  Pull the two pure dispatch helpers out of the
external-open feature module into a sibling library so consumers
that only need the dispatch don't have to require the whole feature.

New `modules/external-open-lib.el' carries:
- `cj/external-open-command'
- `cj/external-open-launcher-p'

`modules/external-open.el' stays as the feature module: the
`default-open-extensions' defcustom, the `find-file' advice
(`cj/find-file-auto'), and the interactive commands (`cj/xdg-open',
`cj/open-this-file-with').  It now requires external-open-lib for
the dispatch helpers.

Migrate consumers:
- system-utils.el used to require `external-open' for
  `cj/external-open-launcher-p' alone -- now requires
  `external-open-lib' directly.
- dirvish-config.el calls `cj/external-open-command' from
  `cj/dirvish-open-file-manager-here' -- add an explicit
  `(require \='external-open-lib)'.

Test files renamed to match the system-lib naming pattern
(test-&lt;library&gt;-&lt;feature&gt;.el):
- test-external-open-command.el -&gt; test-external-open-lib-command.el
- test-external-open-launcher-p.el -&gt; test-external-open-lib-launcher-p.el

No behavior change.
</content>
</entry>
</feed>
