1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-21 03:52:16 -08:00

Avoid undefined function definitions in 'package-review'

* lisp/package/package-install.el (package-review): Load missing
features to compose a message
This commit is contained in:
Philip Kaludercic 2025-12-27 21:14:37 +01:00
parent 78f6a8e669
commit c8c191d1a3
No known key found for this signature in database

View file

@ -1097,6 +1097,11 @@ wants to review the package prior to installation. See `package-review'."
(eq (car list) 'not)))
('t t))))
(declare-function mail-text "sendmail" ())
(declare-function message-goto-body "message" (&optional interactive))
(declare-function package-maintainers "package-describe" (pkg-desc &optional no-error))
(declare-function diff-no-select "diff" (old new &optional switches no-async buf))
(defun package-review (pkg-desc pkg-dir old-desc)
"Review the installation of PKG-DESC.
PKG-DIR is the directory where the downloaded source of PKG-DIR have
@ -1127,6 +1132,8 @@ attached."
(diff (package-desc-dir old-desc) pkg-dir package-review-diff-switches t)
t)
(?m
(require 'package-describe) ;for `package-maintainers'
(require 'diff) ;for `diff-no-select'
(with-temp-buffer
(diff-no-select
(package-desc-dir old-desc) pkg-dir