summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoi Martin <[email protected]>2025-12-12 15:33:39 +0100
committerPhilip Kaludercic <[email protected]>2025-12-12 21:45:49 +0100
commit976143651b832ca0dcaf1d15e41eb7424aec4c90 (patch)
tree8ce732a09818751d74d38e88179893b7a644e25b
parentaa5a9df828008a69b3f5890a689282911714a06c (diff)
Fix interactive call to 'prepare-user-lisp'HEADmaster
When called interactively with a prefix argument, 'prepare-user-lisp' throws a "Wrong type argument: stringp, (4)" error. This happens because the list passed to the interactive specification is missing one argument and 'current-prefix-arg' is assigned to AUTOLOAD-FILE instead of FORCE. * lisp/startup.el (prepare-user-lisp): Fix list passed to 'interactive'. (Bug#79996)
-rw-r--r--lisp/startup.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 41e08d4d2bd..c455eb73814 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1245,7 +1245,7 @@ If AUTOLOAD-FILE is nil, store the autoload data in a file next to DIR.
If FORCE is non-nil, or if invoked interactively with a prefix argument,
re-create the entire autoload file and byte-compile everything
unconditionally."
- (interactive (list nil current-prefix-arg))
+ (interactive (list nil nil current-prefix-arg))
(unless (file-directory-p user-lisp-directory)
(error "No such directory: %S" user-lisp-directory))
(unless autoload-file