Function: ghostel--install-module-pair
ghostel--install-module-pair is a natively compiled function defined
in ghostel-module-install.el.
Signature
(ghostel--install-module-pair BUILT-MOD FINAL-MOD BUILT-SIDECAR FINAL-SIDECAR)
Documentation
Move BUILT-MOD and BUILT-SIDECAR into FINAL-MOD and FINAL-SIDECAR.
The destination sidecar is removed before the module is moved, so every
failure path ends in sidecar absent rather than sidecar stale.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel-module-install.el
(defun ghostel--install-module-pair (built-mod final-mod
built-sidecar final-sidecar)
"Move BUILT-MOD and BUILT-SIDECAR into FINAL-MOD and FINAL-SIDECAR.
The destination sidecar is removed before the module is moved, so every
failure path ends in `sidecar absent' rather than `sidecar stale'."
(make-directory (file-name-directory final-mod) t)
(when (file-exists-p final-sidecar)
(delete-file final-sidecar))
(rename-file built-mod final-mod t)
(when (file-exists-p built-sidecar)
(rename-file built-sidecar final-sidecar t)))