diff options
| author | Stefan Monnier | 2008-03-11 20:48:57 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-03-11 20:48:57 +0000 |
| commit | 38a79e33151c1d81207a24339150e49a5658cb25 (patch) | |
| tree | 6a6d666b5d66ef42ab781de15408838761d64c94 | |
| parent | ed10603b3579a825adee13f2edecf35cfc269eee (diff) | |
| download | emacs-38a79e33151c1d81207a24339150e49a5658cb25.tar.gz emacs-38a79e33151c1d81207a24339150e49a5658cb25.zip | |
(display-buffer-other-frame): Eliminate problematic code.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/files.el | 15 |
2 files changed, 14 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 63e7efd6b7c..1eaad1f0061 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2008-03-11 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2008-03-11 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * files.el (display-buffer-other-frame): Eliminate problematic code. | ||
| 4 | |||
| 3 | * menu-bar.el (menu-bar-update-buffers-maxbuf): Remove. | 5 | * menu-bar.el (menu-bar-update-buffers-maxbuf): Remove. |
| 4 | (menu-bar-select-buffer): Remove. | 6 | (menu-bar-select-buffer): Remove. |
| 5 | (menu-bar-select-frame): Make non-interactive and take a frame arg. | 7 | (menu-bar-select-frame): Make non-interactive and take a frame arg. |
diff --git a/lisp/files.el b/lisp/files.el index 740bba2764a..a327060dbd0 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -1078,9 +1078,18 @@ documentation for additional customization information." | |||
| 1078 | (old-window (selected-window)) | 1078 | (old-window (selected-window)) |
| 1079 | new-window) | 1079 | new-window) |
| 1080 | (setq new-window (display-buffer buffer t)) | 1080 | (setq new-window (display-buffer buffer t)) |
| 1081 | (lower-frame (window-frame new-window)) | 1081 | ;; This may have been here in order to prevent the new frame from hiding |
| 1082 | (make-frame-invisible (window-frame old-window)) | 1082 | ;; the old frame. But it does more harm than good. |
| 1083 | (make-frame-visible (window-frame old-window)))) | 1083 | ;; Maybe we should call `raise-window' on the old-frame instead? --Stef |
| 1084 | ;;(lower-frame (window-frame new-window)) | ||
| 1085 | |||
| 1086 | ;; This may have been here in order to make sure the old-frame gets the | ||
| 1087 | ;; focus. But not only can it cause an annoying flicker, with some | ||
| 1088 | ;; window-managers it just makes the window invisible, with no easy | ||
| 1089 | ;; way to recover it. --Stef | ||
| 1090 | ;;(make-frame-invisible (window-frame old-window)) | ||
| 1091 | ;;(make-frame-visible (window-frame old-window)) | ||
| 1092 | )) | ||
| 1084 | 1093 | ||
| 1085 | (defvar find-file-default nil | 1094 | (defvar find-file-default nil |
| 1086 | "Used within `find-file-read-args'.") | 1095 | "Used within `find-file-read-args'.") |