From 79910fba42d8ec45c2960d855377af0f7a8d09d9 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 30 Aug 2024 04:38:25 -0400 Subject: [PATCH] fix(cli): wrong-number-of-args error from mapconcat On Emacs <=28.2, mapconcat's third argument isn't optional. Amend: 7f175ab6d9a0 Ref: #8024 --- lisp/cli/sync.el | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lisp/cli/sync.el b/lisp/cli/sync.el index 02f68a87f..e6ed820b2 100644 --- a/lisp/cli/sync.el +++ b/lisp/cli/sync.el @@ -114,7 +114,18 @@ OPTIONS: (defun doom-sync--system-hash () (secure-hash - 'md5 (mapconcat #'identity (list doom-local-dir system-configuration)))) + 'md5 (mapconcat + #'identity + (list + ;; Changes to this path could indicate a change to the username and/or + ;; the location of Straight's build artifacts; both warrant a rebuild + ;; of your packages. + doom-local-dir + ;; Changes to this indicate the user's system/OS has changed (e.g. if + ;; the user copied their config to another system, on another OS) or + ;; Emacs' compiled features have (even if the major version hasn't). + system-configuration) + ""))) (defun doom-sync--abort-warning-h () (print! (warn "Script was abruptly aborted, leaving Doom in an incomplete state!"))