Function: ediff-get-meta-info

ediff-get-meta-info is a byte-compiled function defined in ediff-mult.el.gz.

Signature

(ediff-get-meta-info BUF POINT &optional NOERROR)

Source Code

;; Defined in /usr/src/emacs/lisp/vc/ediff-mult.el.gz
;; Obtain information on a meta record where the user clicked or typed
;; BUF is the buffer where this happened and POINT is the position
;; If optional NOERROR arg is given, don't report error and return nil if no
;; meta info is found on line.
(defun ediff-get-meta-info (buf point &optional noerror)
  (let (result olist)
    (if (and point (ediff-buffer-live-p buf))
	(ediff-with-current-buffer buf
	  (setq olist
		(mapcar (lambda (elt)
			  (unless (overlay-get elt 'invisible)
			    (overlay-get elt 'ediff-meta-info)))
			(overlays-at point)))
	  (while (and olist (null (car olist)))
	    (setq olist (cdr olist)))
	  (setq result (car olist))))
    (or result
	(unless noerror
	  (ediff-update-registry)
	  (user-error "No session info in this line")))))