diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2011-09-10 17:15:28 -0400 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2011-09-10 17:15:28 -0400 |
commit | 3199b96fc585576ffb2ced6542a2bc2d6172f510 (patch) | |
tree | 6f74f43a90022b2a0973688356159f9452f38e7d /lisp/buff-menu.el | |
parent | 919a69aa0814937507f12851bdd277cb279faf6f (diff) | |
download | emacs-3199b96fc585576ffb2ced6542a2bc2d6172f510.tar.gz |
Fix various uses of display-buffer and pop-to-buffer
to avoid using special-display-* and same-window-* variables.
* lisp/buff-menu.el (Buffer-menu-switch-other-window): Use second arg
of display-buffer.
(Buffer-menu-2-window): Use switch-to-buffer-other-window.
* lisp/replace.el (occur-mode-goto-occurrence)
(occur-mode-display-occurrence) Use second arg of pop-to-buffer
and display-buffer.
* lisp/window.el (display-buffer-alist): Add *Python*.
* lisp/mail/reporter.el (reporter-submit-bug-report): Use second arg of
display-buffer.
* lisp/mail/sendmail.el (sendmail-user-agent-compose): Don't bind the
special-display and same-window variables.
(mail-other-window): Use switch-to-buffer-other-window.
(mail-other-frame): USe switch-to-buffer-other-frame.
* lisp/progmodes/gdb-mi.el (gdb-frame-gdb-buffer): Use
display-buffer-other-frame.
(gdb-display-gdb-buffer): Use pop-to-buffer.
* lisp/progmodes/gud.el (gud-goto-info): Use info-other-window.
* lisp/progmodes/python.el: Don't set same-window-buffer-names.
* lisp/textmodes/bibtex.el (bibtex-search-entry): Use switch-to-buffer.
Diffstat (limited to 'lisp/buff-menu.el')
-rw-r--r-- | lisp/buff-menu.el | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el index 2be74cf5efb..d757453c051 100644 --- a/lisp/buff-menu.el +++ b/lisp/buff-menu.el @@ -586,22 +586,16 @@ in the selected frame." "Make the other window select this line's buffer. The current window remains selected." (interactive) - (let ((pop-up-windows t) - same-window-buffer-names - same-window-regexps) - (display-buffer (Buffer-menu-buffer t)))) + (display-buffer (Buffer-menu-buffer t) t)) (defun Buffer-menu-2-window () "Select this line's buffer, with previous buffer in second window." (interactive) (let ((buff (Buffer-menu-buffer t)) - (menu (current-buffer)) - (pop-up-windows t) - same-window-buffer-names - same-window-regexps) + (menu (current-buffer))) (delete-other-windows) (switch-to-buffer (other-buffer)) - (pop-to-buffer buff) + (switch-to-buffer-other-window buff) (bury-buffer menu))) (defun Buffer-menu-toggle-read-only () |