Function: majutsu-interactive-build-patch-if-selected
majutsu-interactive-build-patch-if-selected is a natively compiled
function defined in majutsu-interactive.el.
Signature
(majutsu-interactive-build-patch-if-selected &optional BUFFER INVERT INCLUDE-ALL-FILES)
Documentation
Return patch for BUFFER if there are selections, otherwise nil.
When INVERT is non-nil, invert the selection within each hunk. When INCLUDE-ALL-FILES is non-nil, include hunks from all files in invert mode.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-interactive.el
(defun majutsu-interactive-build-patch-if-selected (&optional buffer invert include-all-files)
"Return patch for BUFFER if there are selections, otherwise nil.
When INVERT is non-nil, invert the selection within each hunk.
When INCLUDE-ALL-FILES is non-nil, include hunks from all files in invert mode."
(with-current-buffer (or buffer (current-buffer))
(when (majutsu-interactive--has-selections-p)
(majutsu-interactive--build-patch invert include-all-files))))