Function: diff-hl--target-buffer

diff-hl--target-buffer is a natively compiled function defined in diff-hl.el.

Signature

(diff-hl--target-buffer &optional BUF)

Documentation

Return the correct buffer for the situation, preferring the base buffer.

Source Code

;; Defined in /nix/store/cfz56rl3lp066226i0bmmgiicls3gcq7-emacs-packages-deps/share/emacs/site-lisp/elpa/diff-hl-20261001.135/diff-hl.el
(defun diff-hl--target-buffer (&optional buf)
  "Return the correct buffer for the situation, preferring the base buffer."
  (let ((buf (or buf (current-buffer))))
    (or (buffer-base-buffer buf) buf)))