Rename 'package-vc-allow-side-effects' to better fit its use

* lisp/emacs-lisp/package-vc.el (package-vc-allow-side-effects):
Rename to 'package-vc-allow-build-commands'.
(package-vc--unpack-1): Use new name.
* doc/emacs/package.texi (Fetching Package Sources): Use new name.
* etc/NEWS: Adapt accordingly.  (Bug#65386)
This commit is contained in:
Eshel Yaron 2023-08-20 16:29:33 +02:00 committed by Philip Kaludercic
parent 72ab5dc0b4
commit b2ba4cb870
3 changed files with 10 additions and 10 deletions

View file

@ -690,13 +690,13 @@ an Org file.
@item :make
A string or list of strings providing the target or targets defined in
the repository Makefile which should run before building the Info
file. Only takes effect when @code{package-vc-allow-side-effects} is
non-nil.
file. Only takes effect when @code{package-vc-allow-build-commands}
is non-nil.
@item :shell-command
A string providing the shell command to run before building the Info
file. Only takes effect when @code{package-vc-allow-side-effects} is
non-@code{nil}.
file. Only takes effect when @code{package-vc-allow-build-commands}
is non-@code{nil}.
@item :vc-backend
A symbol naming the VC backend to use for downloading a copy of the

View file

@ -538,9 +538,9 @@ project, that you can quickly select using 'project-switch-project'
('C-x p p').
---
*** New user option 'package-vc-allow-side-effects'.
When non-nil, package specifications with side-effects for building
software will be used when building a package.
*** New user option 'package-vc-allow-build-commands'.
Controls for which packages Emacs runs extra build commands when
installing directly from the package VCS repository.
---
*** New command to start an inferior Emacs loading only specific packages.

View file

@ -362,7 +362,7 @@ asynchronously."
"\n")
nil pkg-file nil 'silent))))
(defcustom package-vc-allow-side-effects nil
(defcustom package-vc-allow-build-commands nil
"Whether to run extra build commands when installing VC packages.
Some packages specify \"make\" targets or other shell commands
@ -548,9 +548,9 @@ documentation and marking the package as installed."
(package-vc--generate-description-file pkg-desc pkg-file)
;; Process :make and :shell-command arguments before building documentation
(when (or (eq package-vc-allow-side-effects t)
(when (or (eq package-vc-allow-build-commands t)
(memq (package-desc-name pkg-desc)
package-vc-allow-side-effects))
package-vc-allow-build-commands))
(package-vc--make pkg-spec pkg-desc))
;; Detect a manual