diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-14 03:47:01 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-14 03:47:01 -0500 |
| commit | ec66cc02c89c0d378c0333cb4f6e35234e39d2f0 (patch) | |
| tree | 91bbe53d06d9d3ce8709f0889e66919e9c34ced5 /modules/custom-buffer-file.el | |
| parent | f6cfaee02412944e281c7ec4c6b20512b3e45708 (diff) | |
| download | dotemacs-ec66cc02c89c0d378c0333cb4f6e35234e39d2f0.tar.gz dotemacs-ec66cc02c89c0d378c0333cb4f6e35234e39d2f0.zip | |
test(system-commands): cover resolve, run wrapper, exit/restart, menu
Sibling `test-system-commands-keymap.el` locked the keymap shape. This batch covers the runtime helpers and commands:
- `cj/system-cmd--resolve`: trims strings, errors on empty/non-string-non-symbol, round-trips a symbol whose value is a non-empty string, errors on a symbol with empty value.
- `cj/system-cmd`: wraps a plain string in `nohup ... &` and hands it to `start-process-shell-command`; a confirm-tagged var with an N response signals user-error.
- `cj/system-cmd-exit-emacs`: declining the prompt aborts; accepting calls `kill-emacs`.
- `cj/system-cmd-restart-emacs`: declining aborts before scheduling; accepting schedules two timers.
- `cj/system-command-menu`: the completing-read pick routes through `call-interactively` to the right command symbol.
Top-level defvars for `test-sc-my-cmd` and `test-sc-empty-cmd` make the let-bindings dynamic so `symbol-value` reaches them under lexical scope.
Diffstat (limited to 'modules/custom-buffer-file.el')
0 files changed, 0 insertions, 0 deletions
