aboutsummaryrefslogtreecommitdiff
path: root/tests/test-custom-comments-comment-inline-border.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-10 13:31:04 -0500
committerCraig Jennings <c@cjennings.net>2026-05-10 13:31:04 -0500
commit32e57be15a48aa24470e9f3bc6a206c7624bd6b0 (patch)
tree02756fd3a3353e509fee2c4c96aa31c68e939b4e /tests/test-custom-comments-comment-inline-border.el
parent6545605fa965d649defc0bb01e8c040afbbcc529 (diff)
downloaddotemacs-32e57be15a48aa24470e9f3bc6a206c7624bd6b0.tar.gz
dotemacs-32e57be15a48aa24470e9f3bc6a206c7624bd6b0.zip
refactor(dirvish): extract cj/--file-manager-program-for helper
`cj/dirvish-open-file-manager-here' had its platform-dispatch -- xdg-open / open / explorer / shell fallback -- inline as a four-arm cond branching on `executable-find' and `system-type'. Lift the choice into `cj/--file-manager-program-for', a pure function from (HAS-XDG-OPEN-P SYSTEM-TYPE) to a program-name string or nil. The wrapper resolves the live values, asks the helper, and either calls the program or falls back to a shell-command. Six Normal/Boundary tests cover the four return shapes (xdg-open across system types, darwin/windows-nt without xdg-open, the nil fallback for plain Linux without xdg-open and for unknown system-types like Haiku).
Diffstat (limited to 'tests/test-custom-comments-comment-inline-border.el')
0 files changed, 0 insertions, 0 deletions