Function: ediff-clone-buffer-for-current-diff-comparison

ediff-clone-buffer-for-current-diff-comparison is a byte-compiled function defined in ediff-util.el.gz.

Signature

(ediff-clone-buffer-for-current-diff-comparison BUFF REG-NAME)

Source Code

;; Defined in /usr/src/emacs/lisp/vc/ediff-util.el.gz
(defun ediff-clone-buffer-for-current-diff-comparison (buff reg-name)
  (let* ((cloned-buff (ediff-make-cloned-buffer buff reg-name))
         (buf-type (ediff-buffer-type buff))
         (reg-start (ediff-get-diff-posn buf-type 'beg))
         (reg-end (ediff-get-diff-posn buf-type 'end)))
    (ediff-with-current-buffer cloned-buff
      ;; set region to be the current diff region
      (goto-char reg-start)
      (set-mark reg-end)
      (setq ediff-temp-indirect-buffer t))
    cloned-buff))