aboutsummaryrefslogtreecommitdiff
path: root/tests/test-custom-buffer-file-copy-link-to-buffer-file.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-10 14:04:22 -0500
committerCraig Jennings <c@cjennings.net>2026-05-10 14:04:22 -0500
commit73f0ec2427f15a16e1dde7d068101d2e4b04cf58 (patch)
tree4354eabe7e99fce16880d224d9c86ed05ee1a87a /tests/test-custom-buffer-file-copy-link-to-buffer-file.el
parente019614f6c89321c2d4414c46ae4d0f9ea551968 (diff)
downloaddotemacs-73f0ec2427f15a16e1dde7d068101d2e4b04cf58.tar.gz
dotemacs-73f0ec2427f15a16e1dde7d068101d2e4b04cf58.zip
refactor(system-lib): extract cj/executable-find-or-warn from mail-config
Phase 2 of utility-consolidation, first commit per the spec's recommended order. `cj/mail--executable-or-warn' was the right pattern -- check executable-find, return the path, otherwise emit a clear `display-warning' naming the feature -- but it was trapped in mail-config and only mail callers benefited. Lift it into `cj/executable-find-or-warn' in system-lib.el with one new argument: an optional GROUP symbol that flows through to `display-warning' (defaulting to `cj/system-lib') so per-feature warning filters keep working. Mail callers pass `mail-config' explicitly. Migrate `cj/mail--mbsync-command' and `cj/mail-configure-smtpmail' to the new helper. Drop the local definition. Add `(require \='system-lib)' to mail-config.el per the spec's Phase 2 exit criterion ("consumer modules explicitly require system-lib"). Five Normal/Boundary tests cover the four return-shape cases (program found / program missing / warning content / default vs explicit group). Other consumers (prog-*.el, dirvish-config.el, browser-config.el) still call `executable-find' directly. Migrating them is a follow-up commit, audited per call site -- the spec flags some `:if' silent checks as intentional and they should NOT switch to the warning helper.
Diffstat (limited to 'tests/test-custom-buffer-file-copy-link-to-buffer-file.el')
0 files changed, 0 insertions, 0 deletions