diff options
| author | Michael Kifer | 1997-09-11 16:08:19 +0000 |
|---|---|---|
| committer | Michael Kifer | 1997-09-11 16:08:19 +0000 |
| commit | 28650cf112c74c57baea17f26e29e122032080e6 (patch) | |
| tree | 907e288290e58de2d5a2ff4a9bb56ae77146462f /lisp | |
| parent | 5d3cb55957855a4c749218048326399ce8c8a7fb (diff) | |
| download | emacs-28650cf112c74c57baea17f26e29e122032080e6.tar.gz emacs-28650cf112c74c57baea17f26e29e122032080e6.zip | |
new version
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ediff-util.el | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/lisp/ediff-util.el b/lisp/ediff-util.el index 0d11f7b33cb..4d0dc828c7d 100644 --- a/lisp/ediff-util.el +++ b/lisp/ediff-util.el | |||
| @@ -2355,10 +2355,7 @@ temporarily reverses the meaning of this variable." | |||
| 2355 | 2355 | ||
| 2356 | ;; warp mouse into a working window | 2356 | ;; warp mouse into a working window |
| 2357 | (setq warp-frame ; if mouse is over a reasonable frame, use it | 2357 | (setq warp-frame ; if mouse is over a reasonable frame, use it |
| 2358 | (cond ((and ediff-xemacs-p (window-live-p (car (mouse-position)))) | 2358 | (cond ((ediff-good-frame-under-mouse)) |
| 2359 | (window-frame (car (mouse-position)))) | ||
| 2360 | ((frame-live-p (car (mouse-position))) | ||
| 2361 | (car (mouse-position))) | ||
| 2362 | (t warp-frame))) | 2359 | (t warp-frame))) |
| 2363 | (if (frame-live-p warp-frame) | 2360 | (if (frame-live-p warp-frame) |
| 2364 | (set-mouse-position (if ediff-emacs-p | 2361 | (set-mouse-position (if ediff-emacs-p |
| @@ -2369,6 +2366,24 @@ temporarily reverses the meaning of this variable." | |||
| 2369 | (if (ediff-buffer-live-p meta-buffer) | 2366 | (if (ediff-buffer-live-p meta-buffer) |
| 2370 | (ediff-show-meta-buffer meta-buffer)) | 2367 | (ediff-show-meta-buffer meta-buffer)) |
| 2371 | )) | 2368 | )) |
| 2369 | |||
| 2370 | ;; Returns frame under mouse, if this frame is not a minibuffer | ||
| 2371 | ;; frame. Otherwise: nil | ||
| 2372 | (defun ediff-good-frame-under-mouse () | ||
| 2373 | (let ((frame-or-win (car (mouse-position))) | ||
| 2374 | (buf-name "") | ||
| 2375 | frame obj-ok) | ||
| 2376 | (setq obj-ok | ||
| 2377 | (if ediff-emacs-p | ||
| 2378 | (frame-live-p frame-or-win) | ||
| 2379 | (window-live-p frame-or-win))) | ||
| 2380 | (if obj-ok | ||
| 2381 | (setq frame (if ediff-emacs-p frame-or-win (window-frame frame-or-win)) | ||
| 2382 | buf-name | ||
| 2383 | (buffer-name (window-buffer (frame-selected-window frame))))) | ||
| 2384 | (if (string-match "Minibuf" buf-name) | ||
| 2385 | nil | ||
| 2386 | frame))) | ||
| 2372 | 2387 | ||
| 2373 | 2388 | ||
| 2374 | (defun ediff-delete-temp-files () | 2389 | (defun ediff-delete-temp-files () |