Function: emerge-find-difference

emerge-find-difference is an interactive and byte-compiled function defined in emerge.el.gz.

Signature

(emerge-find-difference ARG)

Documentation

Find the difference containing the current position of the point.

If there is no containing difference and the prefix argument ARG is positive, find the nearest following difference. With negative prefix argument, find the nearest previous difference.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/vc/emerge.el.gz
;; FIXME the manual advertised this as working in the A or B buffers,
;; but it does not, because all the buffer locals are nil there.
;; It would work to call it from the merge buffer and specify that one
;; wants to use the value of point in the A or B buffer.
;; But with the prefix argument already in use, there is no easy way
;; to have it ask for a buffer.
(defun emerge-find-difference (arg)
  "Find the difference containing the current position of the point.
If there is no containing difference and the prefix argument ARG
is positive, find the nearest following difference.  With
negative prefix argument, find the nearest previous difference."
  (interactive "P")
  (cond ((eq (current-buffer) emerge-A-buffer)
	 (emerge-find-difference-A arg))
	((eq (current-buffer) emerge-B-buffer)
	 (emerge-find-difference-B arg))
	(t (emerge-find-difference-merge arg))))