diff options
author | Eli Zaretskii <eliz@gnu.org> | 2025-01-04 09:59:55 -0500 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2025-01-04 09:59:55 -0500 |
commit | 6814ab06f2c7b5b271e6d78d4e05ce498ffc403d (patch) | |
tree | e28e9a577f3759cd9da0e487e1c5eb83740fde33 /lisp/emacs-lisp/package.el | |
parent | a1b687568fdf204f1e7e1244b60cf9d41c3ce7eb (diff) | |
parent | 6468c3f7a74133b130d15172d770c8b7eebfeac5 (diff) | |
download | emacs-6814ab06f2c7b5b271e6d78d4e05ce498ffc403d.tar.gz emacs-6814ab06f2c7b5b271e6d78d4e05ce498ffc403d.tar.bz2 emacs-6814ab06f2c7b5b271e6d78d4e05ce498ffc403d.zip |
Merge from origin/emacs-30
6468c3f7a74 Update doc string of 'insert'
6d8c3c0cbe4 Use `keymap*-set' over `global-set-key'/`define-key' in e...
4b2bb63b7ac Fix documentation and prompt in 'package-isolate'
55f43f5b220 ; Fix typo in treesit-explore-mode
921f454f508 Update fontification for attribute values in heex-ts-mode
ae2589ea7a5 Add expression handling to heex-ts-mode
0cacf806391 ; * etc/NEWS: Document change of 'make-cursor-line-fully-...
f47a29da5c4 * lisp/man.el (Man-mode): Improve docstring.
# Conflicts:
# etc/NEWS
Diffstat (limited to 'lisp/emacs-lisp/package.el')
-rw-r--r-- | lisp/emacs-lisp/package.el | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index b4a33db1a77..9e62f0a5c0d 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -2651,16 +2651,23 @@ argument, don't ask for confirmation to install packages." (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-" |