From c13cc761439dcaffe8934fc6806ed02c51a7695e Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sun, 20 Aug 2023 16:29:33 +0200 Subject: [PATCH] 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): * doc/emacs/package.texi (Fetching Package Sources): * etc/NEWS: Adapt accordingly. --- doc/emacs/package.texi | 8 ++++---- etc/NEWS | 6 +++--- lisp/emacs-lisp/package-vc.el | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/emacs/package.texi b/doc/emacs/package.texi index b294e3d58bd..96ebd35f547 100644 --- a/doc/emacs/package.texi +++ b/doc/emacs/package.texi @@ -690,13 +690,13 @@ Fetching Package Sources @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 diff --git a/etc/NEWS b/etc/NEWS index 6588299c532..da1406f6831 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -510,9 +510,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. diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el index 44a4624e49f..592e989f0f8 100644 --- a/lisp/emacs-lisp/package-vc.el +++ b/lisp/emacs-lisp/package-vc.el @@ -362,7 +362,7 @@ package-vc--generate-description-file "\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 @@ -549,9 +549,9 @@ package-vc--unpack-1 (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 -- 2.41.0