Function: majutsu--process-section-output
majutsu--process-section-output is a natively compiled function
defined in majutsu-process.el.
Signature
(majutsu--process-section-output PROCESS)
Documentation
Return the complete output for PROCESS from the process buffer.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-process.el
(defun majutsu--process-section-output (process)
"Return the complete output for PROCESS from the process buffer."
(when-let* ((buf (process-buffer process))
(section (process-get process 'section))
(_ (buffer-live-p buf)))
(with-current-buffer buf
(let* ((beg (oref section content))
(end (oref section end)))
(cond
((and beg end)
(string-trim-right
(buffer-substring-no-properties beg end)))
(t ""))))))