]> git.eshelyaron.com Git - emacs.git/commitdiff
Rename 'package-vc-allow-side-effects' to better fit its use
authorEshel Yaron <me@eshelyaron.com>
Sun, 20 Aug 2023 14:29:33 +0000 (16:29 +0200)
committerPhilip Kaludercic <philipk@posteo.net>
Tue, 29 Aug 2023 08:41:53 +0000 (10:41 +0200)
* 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)

doc/emacs/package.texi
etc/NEWS
lisp/emacs-lisp/package-vc.el

index b294e3d58bd2a1baa91a244bd8a3ee666afc8ac6..96ebd35f547f4ef3d60b0a6da9c87fe565c94fbc 100644 (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
index 0c9275f1e101ec91c284b47e3968f8464874390b..cebf80bc86cb42242b2b1c18e394ed48aa339017 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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.
index d225e61646cb0dd04d0b4698fffe6c56a356a288..747fe696204fa13f590c94d1d3d7c072580913f2 100644 (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