Function: ediff-reset-mouse

ediff-reset-mouse is a byte-compiled function defined in ediff-init.el.gz.

Signature

(ediff-reset-mouse &optional FRAME DO-NOT-GRAB-MOUSE)

Source Code

;; Defined in /usr/src/emacs/lisp/vc/ediff-init.el.gz
(defun ediff-reset-mouse (&optional frame do-not-grab-mouse)
  (or frame (setq frame (selected-frame)))
  (if (display-graphic-p)
      (let ((frame-or-wind frame))
	(or do-not-grab-mouse
	    ;; don't set mouse if the user said to never do this
	    (not ediff-grab-mouse)
	    ;; Don't grab on quit, if the user doesn't want to.
	    ;; If ediff-grab-mouse = t, then mouse won't be grabbed for
	    ;; sessions that are not part of a group (this is done in
	    ;; ediff-recenter).  The condition below affects only terminating
	    ;; sessions in session groups (in which case mouse is warped into
	    ;; a meta buffer).
	    (and (eq ediff-grab-mouse 'maybe)
		 (memq this-command '(ediff-quit ediff-update-diffs)))
	    (set-mouse-position frame-or-wind 1 0))
	)))