summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2025-01-04 14:18:54 +0200
committerEli Zaretskii <eliz@gnu.org>2025-01-04 14:18:54 +0200
commit4b2bb63b7ac386daabb0bbd2dc00fb542a9bcc21 (patch)
tree3d404fd23d40e16748c34499c04a57eeccafcaff /lisp/emacs-lisp
parent55f43f5b220ed3cc49141257918e51e403dd85ac (diff)
downloademacs-4b2bb63b7ac386daabb0bbd2dc00fb542a9bcc21.tar.gz
emacs-4b2bb63b7ac386daabb0bbd2dc00fb542a9bcc21.tar.bz2
emacs-4b2bb63b7ac386daabb0bbd2dc00fb542a9bcc21.zip
Fix documentation and prompt in 'package-isolate'
* lisp/emacs-lisp/package.el (package-isolate): Fix doc string and the prompt. (Bug#75163)
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/package.el15
1 files changed, 11 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index fa1d361d775..0fc5aaac343 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -2647,16 +2647,23 @@ will be deleted."
(defun package-isolate (packages &optional temp-init)
"Start an uncustomized Emacs and only load a set of PACKAGES.
+Interactively, prompt for PACKAGES to load, which should be specified
+separated by commas.
+If called from Lisp, PACKAGES should be a list of packages to load.
If TEMP-INIT is non-nil, or when invoked with a prefix argument,
-the Emacs user directory is set to a temporary directory."
+the Emacs user directory is set to a temporary directory.
+This command is intended for testing Emacs and/or the packages
+in a clean environment."
(interactive
(cl-loop for p in (cl-loop for p in (package--alist) append (cdr p))
unless (package-built-in-p p)
collect (cons (package-desc-full-name p) p) into table
finally return
- (list (cl-loop for c in (completing-read-multiple
- "Isolate packages: " table
- nil t)
+ (list
+ (cl-loop for c in
+ (completing-read-multiple
+ "Packages to isolate, as comma-separated list: " table
+ nil t)
collect (alist-get c table nil nil #'string=))
current-prefix-arg)))
(let* ((name (concat "package-isolate-"