Function: package-vc-prepare-patch
package-vc-prepare-patch is an autoloaded, interactive and
byte-compiled function defined in package-vc.el.gz.
Signature
(package-vc-prepare-patch PKG-DESC SUBJECT REVISIONS)
Documentation
Email patches for REVISIONS to maintainer of package PKG-DESC using SUBJECT.
PKG-DESC is a package descriptor and SUBJECT is the subject of the message.
Interactively, prompt for PKG-DESC, SUBJECT, and REVISIONS. When invoked with a numerical prefix argument, use the last N revisions. When invoked interactively in a Log View buffer with marked revisions, use those.
See also vc-prepare-patch.
Probably introduced at or before Emacs version 29.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/package-vc.el.gz
;;;###autoload
(defun package-vc-prepare-patch (pkg-desc subject revisions)
"Email patches for REVISIONS to maintainer of package PKG-DESC using SUBJECT.
PKG-DESC is a package descriptor and SUBJECT is the subject of
the message.
Interactively, prompt for PKG-DESC, SUBJECT, and REVISIONS. When
invoked with a numerical prefix argument, use the last N
revisions. When invoked interactively in a Log View buffer with
marked revisions, use those.
See also `vc-prepare-patch'."
(interactive
(list (package-vc--read-package-desc "Package to prepare a patch for: " t)
(and (not vc-prepare-patches-separately)
(read-string "Subject: " "[PATCH] " nil nil t))
(vc-prepare-patch-prompt-revisions)))
(let ((default-directory (package-desc-dir pkg-desc)))
(vc-prepare-patch (package-maintainers pkg-desc t)
subject revisions)))