Function: ediff-meta-show-patch

ediff-meta-show-patch is an interactive and byte-compiled function defined in ediff-mult.el.gz.

Signature

(ediff-meta-show-patch)

Documentation

Show the multi-file patch associated with this group session.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/vc/ediff-mult.el.gz
(defun ediff-meta-show-patch ()
  "Show the multi-file patch associated with this group session."
  (interactive)
  (let* ((pos (ediff-event-point last-command-event))
	 (meta-buf (ediff-event-buffer last-command-event))
	 (info (ediff-get-meta-info meta-buf pos 'noerror))
	 (patchbuffer ediff-meta-patchbufer))
    (if (ediff-buffer-live-p patchbuffer)
	(ediff-with-current-buffer patchbuffer
	  (save-restriction
	    (if (not info)
		(widen)
	      (narrow-to-region
	       (ediff-get-session-objB-name info)
	       (ediff-get-session-objC-name info)))
	    (set-buffer (get-buffer-create ediff-tmp-buffer))
	    (erase-buffer)
	    (insert-buffer-substring patchbuffer)
	    (goto-char (point-min))
	    (display-buffer ediff-tmp-buffer 'not-this-window)
	    ))
      (user-error "The patch buffer wasn't found"))))