diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 26 | ||||
| -rw-r--r-- | lisp/cmuscheme.el | 4 | ||||
| -rw-r--r-- | lisp/cus-edit.el | 8 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 36 | ||||
| -rw-r--r-- | lisp/ielm.el | 2 | ||||
| -rw-r--r-- | lisp/info.el | 20 | ||||
| -rw-r--r-- | lisp/mail/sendmail.el | 6 | ||||
| -rw-r--r-- | lisp/net/rlogin.el | 2 | ||||
| -rw-r--r-- | lisp/net/telnet.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/gdb-mi.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/gud.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/inf-lisp.el | 2 | ||||
| -rw-r--r-- | lisp/shell.el | 6 | ||||
| -rw-r--r-- | lisp/window.el | 6 |
15 files changed, 76 insertions, 62 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7a493676add..cb6ca9f2c61 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,29 @@ | |||
| 1 | 2011-09-11 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | Change modes that used same-window-* vars to use switch-to-buffer. | ||
| 4 | |||
| 5 | * progmodes/gdb-mi.el (gdb-restore-windows, gdb-setup-windows): | ||
| 6 | Use switch-to-buffer. | ||
| 7 | |||
| 8 | * cus-edit.el (customize-group, custom-buffer-create) | ||
| 9 | (customize-browse, custom-buffer-create-other-window): Use | ||
| 10 | switch-to-buffer or switch-to-buffer-other-window. | ||
| 11 | |||
| 12 | * info.el (info, Info-find-node, Info-revert-find-node, Info-next) | ||
| 13 | (Info-prev, Info-up, Info-speedbar-goto-node) | ||
| 14 | (info-display-manual): Use switch-to-buffer. | ||
| 15 | (Info-speedbar-goto-node): Use switch-to-buffer-other-frame. | ||
| 16 | |||
| 17 | * mail/sendmail.el (mail): Use switch-to-buffer. | ||
| 18 | (mail-recover): Use switch-to-buffer-other-window. | ||
| 19 | |||
| 20 | * cmuscheme.el (run-scheme, switch-to-scheme): | ||
| 21 | * ielm.el (ielm): | ||
| 22 | * shell.el (shell): | ||
| 23 | * net/rlogin.el (rlogin): | ||
| 24 | * net/telnet.el (telnet, rsh): | ||
| 25 | * progmodes/inf-lisp.el (inferior-lisp): Use switch-to-buffer. | ||
| 26 | |||
| 1 | 2011-09-11 Andreas Schwab <schwab@linux-m68k.org> | 27 | 2011-09-11 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 28 | ||
| 3 | * dired.el (dired-sort-toggle-or-edit): Revert last changes. | 29 | * dired.el (dired-sort-toggle-or-edit): Revert last changes. |
diff --git a/lisp/cmuscheme.el b/lisp/cmuscheme.el index 5998110386e..6eb2aa76135 100644 --- a/lisp/cmuscheme.el +++ b/lisp/cmuscheme.el | |||
| @@ -246,7 +246,7 @@ is run). | |||
| 246 | (inferior-scheme-mode))) | 246 | (inferior-scheme-mode))) |
| 247 | (setq scheme-program-name cmd) | 247 | (setq scheme-program-name cmd) |
| 248 | (setq scheme-buffer "*scheme*") | 248 | (setq scheme-buffer "*scheme*") |
| 249 | (pop-to-buffer "*scheme*")) | 249 | (switch-to-buffer "*scheme*")) |
| 250 | 250 | ||
| 251 | (defun scheme-start-file (prog) | 251 | (defun scheme-start-file (prog) |
| 252 | "Return the name of the start file corresponding to PROG. | 252 | "Return the name of the start file corresponding to PROG. |
| @@ -371,7 +371,7 @@ With argument, position cursor at end of buffer." | |||
| 371 | (interactive "P") | 371 | (interactive "P") |
| 372 | (if (or (and scheme-buffer (get-buffer scheme-buffer)) | 372 | (if (or (and scheme-buffer (get-buffer scheme-buffer)) |
| 373 | (scheme-interactively-start-process)) | 373 | (scheme-interactively-start-process)) |
| 374 | (pop-to-buffer scheme-buffer) | 374 | (switch-to-buffer scheme-buffer) |
| 375 | (error "No current process buffer. See variable `scheme-buffer'")) | 375 | (error "No current process buffer. See variable `scheme-buffer'")) |
| 376 | (when eob-p | 376 | (when eob-p |
| 377 | (push-mark) | 377 | (push-mark) |
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 4411fb42508..620ecdba40c 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -1112,7 +1112,7 @@ If OTHER-WINDOW is non-nil, display in another window." | |||
| 1112 | (let ((name (format "*Customize Group: %s*" | 1112 | (let ((name (format "*Customize Group: %s*" |
| 1113 | (custom-unlispify-tag-name group)))) | 1113 | (custom-unlispify-tag-name group)))) |
| 1114 | (if (get-buffer name) | 1114 | (if (get-buffer name) |
| 1115 | (pop-to-buffer name other-window) | 1115 | (switch-to-buffer name other-window) |
| 1116 | (funcall (if other-window | 1116 | (funcall (if other-window |
| 1117 | 'custom-buffer-create-other-window | 1117 | 'custom-buffer-create-other-window |
| 1118 | 'custom-buffer-create) | 1118 | 'custom-buffer-create) |
| @@ -1533,7 +1533,7 @@ Optional NAME is the name of the buffer. | |||
| 1533 | OPTIONS should be an alist of the form ((SYMBOL WIDGET)...), where | 1533 | OPTIONS should be an alist of the form ((SYMBOL WIDGET)...), where |
| 1534 | SYMBOL is a customization option, and WIDGET is a widget for editing | 1534 | SYMBOL is a customization option, and WIDGET is a widget for editing |
| 1535 | that option." | 1535 | that option." |
| 1536 | (pop-to-buffer (custom-get-fresh-buffer (or name "*Customization*"))) | 1536 | (switch-to-buffer (custom-get-fresh-buffer (or name "*Customization*"))) |
| 1537 | (custom-buffer-create-internal options description)) | 1537 | (custom-buffer-create-internal options description)) |
| 1538 | 1538 | ||
| 1539 | ;;;###autoload | 1539 | ;;;###autoload |
| @@ -1545,7 +1545,7 @@ OPTIONS should be an alist of the form ((SYMBOL WIDGET)...), where | |||
| 1545 | SYMBOL is a customization option, and WIDGET is a widget for editing | 1545 | SYMBOL is a customization option, and WIDGET is a widget for editing |
| 1546 | that option." | 1546 | that option." |
| 1547 | (unless name (setq name "*Customization*")) | 1547 | (unless name (setq name "*Customization*")) |
| 1548 | (pop-to-buffer (custom-get-fresh-buffer name) t) | 1548 | (switch-to-buffer-other-window (custom-get-fresh-buffer name)) |
| 1549 | (custom-buffer-create-internal options description)) | 1549 | (custom-buffer-create-internal options description)) |
| 1550 | 1550 | ||
| 1551 | (defcustom custom-reset-button-menu nil | 1551 | (defcustom custom-reset-button-menu nil |
| @@ -1721,7 +1721,7 @@ Otherwise use brackets." | |||
| 1721 | (unless group | 1721 | (unless group |
| 1722 | (setq group 'emacs)) | 1722 | (setq group 'emacs)) |
| 1723 | (let ((name "*Customize Browser*")) | 1723 | (let ((name "*Customize Browser*")) |
| 1724 | (pop-to-buffer (custom-get-fresh-buffer name))) | 1724 | (switch-to-buffer (custom-get-fresh-buffer name))) |
| 1725 | (Custom-mode) | 1725 | (Custom-mode) |
| 1726 | (widget-insert (format "\ | 1726 | (widget-insert (format "\ |
| 1727 | %s buttons; type RET or click mouse-1 | 1727 | %s buttons; type RET or click mouse-1 |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 4911f243343..b1fcb5429d6 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2011-09-11 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * message.el (message-pop-to-buffer): Default to switch-to-buffer. | ||
| 4 | (message-mail-other-window, message-mail-other-frame) | ||
| 5 | (message-news-other-window, message-news-other-frame): Use | ||
| 6 | switch-to-buffer-other-frame and switch-to-buffer-other-window instead | ||
| 7 | of setting buffer display varibles. | ||
| 8 | |||
| 1 | 2011-09-11 Lars Magne Ingebrigtsen <larsi@gnus.org> | 9 | 2011-09-11 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 10 | ||
| 3 | * gnus-dup.el (gnus-dup-suppress-articles): Move "Suppressing | 11 | * gnus-dup.el (gnus-dup-suppress-articles): Move "Suppressing |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 194ebf81873..f78e2b0339d 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -6329,7 +6329,7 @@ between beginning of field and beginning of line." | |||
| 6329 | (progn | 6329 | (progn |
| 6330 | (gnus-select-frame-set-input-focus (window-frame window)) | 6330 | (gnus-select-frame-set-input-focus (window-frame window)) |
| 6331 | (select-window window)) | 6331 | (select-window window)) |
| 6332 | (funcall (or switch-function 'pop-to-buffer) buffer) | 6332 | (funcall (or switch-function 'switch-to-buffer) buffer) |
| 6333 | (set-buffer buffer)) | 6333 | (set-buffer buffer)) |
| 6334 | (when (and (buffer-modified-p) | 6334 | (when (and (buffer-modified-p) |
| 6335 | (not (prog1 | 6335 | (not (prog1 |
| @@ -6337,7 +6337,7 @@ between beginning of field and beginning of line." | |||
| 6337 | "Message already being composed; erase? ") | 6337 | "Message already being composed; erase? ") |
| 6338 | (message nil)))) | 6338 | (message nil)))) |
| 6339 | (error "Message being composed"))) | 6339 | (error "Message being composed"))) |
| 6340 | (funcall (or switch-function 'pop-to-buffer) name) | 6340 | (funcall (or switch-function 'switch-to-buffer) name) |
| 6341 | (set-buffer name)) | 6341 | (set-buffer name)) |
| 6342 | (erase-buffer) | 6342 | (erase-buffer) |
| 6343 | (message-mode))) | 6343 | (message-mode))) |
| @@ -7619,12 +7619,8 @@ you." | |||
| 7619 | "Like `message-mail' command, but display mail buffer in another window." | 7619 | "Like `message-mail' command, but display mail buffer in another window." |
| 7620 | (interactive) | 7620 | (interactive) |
| 7621 | (unless (message-mail-user-agent) | 7621 | (unless (message-mail-user-agent) |
| 7622 | (let ((pop-up-windows t) | 7622 | (message-pop-to-buffer (message-buffer-name "mail" to) |
| 7623 | (special-display-buffer-names nil) | 7623 | 'switch-to-buffer-other-window)) |
| 7624 | (special-display-regexps nil) | ||
| 7625 | (same-window-buffer-names nil) | ||
| 7626 | (same-window-regexps nil)) | ||
| 7627 | (message-pop-to-buffer (message-buffer-name "mail" to)))) | ||
| 7628 | (let ((message-this-is-mail t)) | 7624 | (let ((message-this-is-mail t)) |
| 7629 | (message-setup `((To . ,(or to "")) (Subject . ,(or subject ""))) | 7625 | (message-setup `((To . ,(or to "")) (Subject . ,(or subject ""))) |
| 7630 | nil nil nil 'switch-to-buffer-other-window))) | 7626 | nil nil nil 'switch-to-buffer-other-window))) |
| @@ -7634,12 +7630,8 @@ you." | |||
| 7634 | "Like `message-mail' command, but display mail buffer in another frame." | 7630 | "Like `message-mail' command, but display mail buffer in another frame." |
| 7635 | (interactive) | 7631 | (interactive) |
| 7636 | (unless (message-mail-user-agent) | 7632 | (unless (message-mail-user-agent) |
| 7637 | (let ((pop-up-frames t) | 7633 | (message-pop-to-buffer (message-buffer-name "mail" to) |
| 7638 | (special-display-buffer-names nil) | 7634 | 'switch-to-buffer-other-frame)) |
| 7639 | (special-display-regexps nil) | ||
| 7640 | (same-window-buffer-names nil) | ||
| 7641 | (same-window-regexps nil)) | ||
| 7642 | (message-pop-to-buffer (message-buffer-name "mail" to)))) | ||
| 7643 | (let ((message-this-is-mail t)) | 7635 | (let ((message-this-is-mail t)) |
| 7644 | (message-setup `((To . ,(or to "")) (Subject . ,(or subject ""))) | 7636 | (message-setup `((To . ,(or to "")) (Subject . ,(or subject ""))) |
| 7645 | nil nil nil 'switch-to-buffer-other-frame))) | 7637 | nil nil nil 'switch-to-buffer-other-frame))) |
| @@ -7648,12 +7640,8 @@ you." | |||
| 7648 | (defun message-news-other-window (&optional newsgroups subject) | 7640 | (defun message-news-other-window (&optional newsgroups subject) |
| 7649 | "Start editing a news article to be sent." | 7641 | "Start editing a news article to be sent." |
| 7650 | (interactive) | 7642 | (interactive) |
| 7651 | (let ((pop-up-windows t) | 7643 | (message-pop-to-buffer (message-buffer-name "posting" nil newsgroups) |
| 7652 | (special-display-buffer-names nil) | 7644 | 'switch-to-buffer-other-window) |
| 7653 | (special-display-regexps nil) | ||
| 7654 | (same-window-buffer-names nil) | ||
| 7655 | (same-window-regexps nil)) | ||
| 7656 | (message-pop-to-buffer (message-buffer-name "posting" nil newsgroups))) | ||
| 7657 | (let ((message-this-is-news t)) | 7645 | (let ((message-this-is-news t)) |
| 7658 | (message-setup `((Newsgroups . ,(or newsgroups "")) | 7646 | (message-setup `((Newsgroups . ,(or newsgroups "")) |
| 7659 | (Subject . ,(or subject "")))))) | 7647 | (Subject . ,(or subject "")))))) |
| @@ -7662,12 +7650,8 @@ you." | |||
| 7662 | (defun message-news-other-frame (&optional newsgroups subject) | 7650 | (defun message-news-other-frame (&optional newsgroups subject) |
| 7663 | "Start editing a news article to be sent." | 7651 | "Start editing a news article to be sent." |
| 7664 | (interactive) | 7652 | (interactive) |
| 7665 | (let ((pop-up-frames t) | 7653 | (message-pop-to-buffer (message-buffer-name "posting" nil newsgroups) |
| 7666 | (special-display-buffer-names nil) | 7654 | 'switch-to-buffer-other-frame) |
| 7667 | (special-display-regexps nil) | ||
| 7668 | (same-window-buffer-names nil) | ||
| 7669 | (same-window-regexps nil)) | ||
| 7670 | (message-pop-to-buffer (message-buffer-name "posting" nil newsgroups))) | ||
| 7671 | (let ((message-this-is-news t)) | 7655 | (let ((message-this-is-news t)) |
| 7672 | (message-setup `((Newsgroups . ,(or newsgroups "")) | 7656 | (message-setup `((Newsgroups . ,(or newsgroups "")) |
| 7673 | (Subject . ,(or subject "")))))) | 7657 | (Subject . ,(or subject "")))))) |
diff --git a/lisp/ielm.el b/lisp/ielm.el index 3322e7e55c2..94bb299eaac 100644 --- a/lisp/ielm.el +++ b/lisp/ielm.el | |||
| @@ -563,7 +563,7 @@ Switches to the buffer `*ielm*', or creates it if it does not exist." | |||
| 563 | (with-current-buffer (get-buffer-create "*ielm*") | 563 | (with-current-buffer (get-buffer-create "*ielm*") |
| 564 | (unless (zerop (buffer-size)) (setq old-point (point))) | 564 | (unless (zerop (buffer-size)) (setq old-point (point))) |
| 565 | (inferior-emacs-lisp-mode))) | 565 | (inferior-emacs-lisp-mode))) |
| 566 | (pop-to-buffer "*ielm*") | 566 | (switch-to-buffer "*ielm*") |
| 567 | (when old-point (push-mark old-point)))) | 567 | (when old-point (push-mark old-point)))) |
| 568 | 568 | ||
| 569 | (provide 'ielm) | 569 | (provide 'ielm) |
diff --git a/lisp/info.el b/lisp/info.el index e5aa5714c72..40959885edb 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -610,7 +610,7 @@ in `Info-file-supports-index-cookies-list'." | |||
| 610 | "Like `info' but show the Info buffer in another window." | 610 | "Like `info' but show the Info buffer in another window." |
| 611 | (interactive (if current-prefix-arg | 611 | (interactive (if current-prefix-arg |
| 612 | (list (read-file-name "Info file name: " nil nil t)))) | 612 | (list (read-file-name "Info file name: " nil nil t)))) |
| 613 | (info-setup file-or-node (pop-to-buffer "*info*" t))) | 613 | (info-setup file-or-node (switch-to-buffer-other-window "*info*"))) |
| 614 | 614 | ||
| 615 | ;;;###autoload (put 'info 'info-file (purecopy "emacs")) | 615 | ;;;###autoload (put 'info 'info-file (purecopy "emacs")) |
| 616 | ;;;###autoload | 616 | ;;;###autoload |
| @@ -640,7 +640,7 @@ See a list of available Info commands in `Info-mode'." | |||
| 640 | (read-file-name "Info file name: " nil nil t)) | 640 | (read-file-name "Info file name: " nil nil t)) |
| 641 | (if (numberp current-prefix-arg) | 641 | (if (numberp current-prefix-arg) |
| 642 | (format "*info*<%s>" current-prefix-arg)))) | 642 | (format "*info*<%s>" current-prefix-arg)))) |
| 643 | (info-setup file-or-node (pop-to-buffer (or buffer "*info*")))) | 643 | (info-setup file-or-node (switch-to-buffer (or buffer "*info*")))) |
| 644 | 644 | ||
| 645 | (defun info-setup (file-or-node buffer) | 645 | (defun info-setup (file-or-node buffer) |
| 646 | "Display Info node FILE-OR-NODE in BUFFER." | 646 | "Display Info node FILE-OR-NODE in BUFFER." |
| @@ -775,7 +775,7 @@ it says do not attempt further (recursive) error recovery." | |||
| 775 | (info-initialize) | 775 | (info-initialize) |
| 776 | (setq filename (Info-find-file filename)) | 776 | (setq filename (Info-find-file filename)) |
| 777 | ;; Go into Info buffer. | 777 | ;; Go into Info buffer. |
| 778 | (or (eq major-mode 'Info-mode) (pop-to-buffer "*info*")) | 778 | (or (eq major-mode 'Info-mode) (switch-to-buffer "*info*")) |
| 779 | ;; Record the node we are leaving, if we were in one. | 779 | ;; Record the node we are leaving, if we were in one. |
| 780 | (and (not no-going-back) | 780 | (and (not no-going-back) |
| 781 | Info-current-file | 781 | Info-current-file |
| @@ -809,7 +809,7 @@ otherwise, that defaults to `Top'." | |||
| 809 | "Go to an Info node FILENAME and NODENAME, re-reading disk contents. | 809 | "Go to an Info node FILENAME and NODENAME, re-reading disk contents. |
| 810 | When *info* is already displaying FILENAME and NODENAME, the window position | 810 | When *info* is already displaying FILENAME and NODENAME, the window position |
| 811 | is preserved, if possible." | 811 | is preserved, if possible." |
| 812 | (or (eq major-mode 'Info-mode) (pop-to-buffer "*info*")) | 812 | (or (eq major-mode 'Info-mode) (switch-to-buffer "*info*")) |
| 813 | (let ((old-filename Info-current-file) | 813 | (let ((old-filename Info-current-file) |
| 814 | (old-nodename Info-current-node) | 814 | (old-nodename Info-current-node) |
| 815 | (old-buffer-name (buffer-name)) | 815 | (old-buffer-name (buffer-name)) |
| @@ -821,7 +821,7 @@ is preserved, if possible." | |||
| 821 | (new-history (and Info-current-file | 821 | (new-history (and Info-current-file |
| 822 | (list Info-current-file Info-current-node (point))))) | 822 | (list Info-current-file Info-current-node (point))))) |
| 823 | (kill-buffer (current-buffer)) | 823 | (kill-buffer (current-buffer)) |
| 824 | (pop-to-buffer (or old-buffer-name "*info*")) | 824 | (switch-to-buffer (or old-buffer-name "*info*")) |
| 825 | (Info-mode) | 825 | (Info-mode) |
| 826 | (Info-find-node filename nodename) | 826 | (Info-find-node filename nodename) |
| 827 | (setq Info-history-forward old-history-forward) | 827 | (setq Info-history-forward old-history-forward) |
| @@ -2021,7 +2021,7 @@ End of submatch 0, 1, and 3 are the same, so you can safely concat." | |||
| 2021 | (interactive) | 2021 | (interactive) |
| 2022 | ;; In case another window is currently selected | 2022 | ;; In case another window is currently selected |
| 2023 | (save-window-excursion | 2023 | (save-window-excursion |
| 2024 | (or (eq major-mode 'Info-mode) (pop-to-buffer "*info*")) | 2024 | (or (eq major-mode 'Info-mode) (switch-to-buffer "*info*")) |
| 2025 | (Info-goto-node (Info-extract-pointer "next")))) | 2025 | (Info-goto-node (Info-extract-pointer "next")))) |
| 2026 | 2026 | ||
| 2027 | (defun Info-prev () | 2027 | (defun Info-prev () |
| @@ -2029,7 +2029,7 @@ End of submatch 0, 1, and 3 are the same, so you can safely concat." | |||
| 2029 | (interactive) | 2029 | (interactive) |
| 2030 | ;; In case another window is currently selected | 2030 | ;; In case another window is currently selected |
| 2031 | (save-window-excursion | 2031 | (save-window-excursion |
| 2032 | (or (eq major-mode 'Info-mode) (pop-to-buffer "*info*")) | 2032 | (or (eq major-mode 'Info-mode) (switch-to-buffer "*info*")) |
| 2033 | (Info-goto-node (Info-extract-pointer "prev[ious]*" "previous")))) | 2033 | (Info-goto-node (Info-extract-pointer "prev[ious]*" "previous")))) |
| 2034 | 2034 | ||
| 2035 | (defun Info-up (&optional same-file) | 2035 | (defun Info-up (&optional same-file) |
| @@ -2038,7 +2038,7 @@ If SAME-FILE is non-nil, do not move to a different Info file." | |||
| 2038 | (interactive) | 2038 | (interactive) |
| 2039 | ;; In case another window is currently selected | 2039 | ;; In case another window is currently selected |
| 2040 | (save-window-excursion | 2040 | (save-window-excursion |
| 2041 | (or (eq major-mode 'Info-mode) (pop-to-buffer "*info*")) | 2041 | (or (eq major-mode 'Info-mode) (switch-to-buffer "*info*")) |
| 2042 | (let ((old-node Info-current-node) | 2042 | (let ((old-node Info-current-node) |
| 2043 | (old-file Info-current-file) | 2043 | (old-file Info-current-file) |
| 2044 | (node (Info-extract-pointer "up")) p) | 2044 | (node (Info-extract-pointer "up")) p) |
| @@ -4775,7 +4775,7 @@ The INDENT level is ignored." | |||
| 4775 | (select-window bwin) | 4775 | (select-window bwin) |
| 4776 | (raise-frame (window-frame bwin))) | 4776 | (raise-frame (window-frame bwin))) |
| 4777 | (if speedbar-power-click | 4777 | (if speedbar-power-click |
| 4778 | (let ((pop-up-frames t)) (select-window (display-buffer buff))) | 4778 | (switch-to-buffer-other-frame buff) |
| 4779 | (speedbar-select-attached-frame) | 4779 | (speedbar-select-attached-frame) |
| 4780 | (switch-to-buffer buff))) | 4780 | (switch-to-buffer buff))) |
| 4781 | (if (not (string-match "^(\\([^)]+\\))\\([^.]+\\)$" node)) | 4781 | (if (not (string-match "^(\\([^)]+\\))\\([^.]+\\)$" node)) |
| @@ -4954,7 +4954,7 @@ type returned by `Info-bookmark-make-record', which see." | |||
| 4954 | (setq found buffer | 4954 | (setq found buffer |
| 4955 | blist nil)))) | 4955 | blist nil)))) |
| 4956 | (if found | 4956 | (if found |
| 4957 | (pop-to-buffer found) | 4957 | (switch-to-buffer found) |
| 4958 | (info-initialize) | 4958 | (info-initialize) |
| 4959 | (info (Info-find-file manual))))) | 4959 | (info (Info-find-file manual))))) |
| 4960 | 4960 | ||
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 6e5c9a6b257..6bcf65945b5 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -1785,11 +1785,11 @@ The seventh argument ACTIONS is a list of actions to take | |||
| 1785 | This is how Rmail arranges to mark messages `answered'." | 1785 | This is how Rmail arranges to mark messages `answered'." |
| 1786 | (interactive "P") | 1786 | (interactive "P") |
| 1787 | (if (eq noerase 'new) | 1787 | (if (eq noerase 'new) |
| 1788 | (pop-to-buffer (generate-new-buffer "*mail*")) | 1788 | (switch-to-buffer (generate-new-buffer "*mail*")) |
| 1789 | (and noerase | 1789 | (and noerase |
| 1790 | (not (get-buffer "*mail*")) | 1790 | (not (get-buffer "*mail*")) |
| 1791 | (setq noerase nil)) | 1791 | (setq noerase nil)) |
| 1792 | (pop-to-buffer "*mail*")) | 1792 | (switch-to-buffer "*mail*")) |
| 1793 | 1793 | ||
| 1794 | ;; Avoid danger that the auto-save file can't be written. | 1794 | ;; Avoid danger that the auto-save file can't be written. |
| 1795 | (let ((dir (expand-file-name | 1795 | (let ((dir (expand-file-name |
| @@ -1939,7 +1939,7 @@ you can move to one of them and type C-c C-c to recover that one." | |||
| 1939 | (dired-noselect file-name | 1939 | (dired-noselect file-name |
| 1940 | (concat dired-listing-switches " -t")))) | 1940 | (concat dired-listing-switches " -t")))) |
| 1941 | (save-selected-window | 1941 | (save-selected-window |
| 1942 | (select-window (display-buffer dispbuf t)) | 1942 | (switch-to-buffer-other-window dispbuf) |
| 1943 | (goto-char (point-min)) | 1943 | (goto-char (point-min)) |
| 1944 | (forward-line 2) | 1944 | (forward-line 2) |
| 1945 | (dired-move-to-filename) | 1945 | (dired-move-to-filename) |
diff --git a/lisp/net/rlogin.el b/lisp/net/rlogin.el index 01e66259ad3..effdcabfb65 100644 --- a/lisp/net/rlogin.el +++ b/lisp/net/rlogin.el | |||
| @@ -194,7 +194,7 @@ variable." | |||
| 194 | (t | 194 | (t |
| 195 | (setq buffer-name (generate-new-buffer-name buffer-name)))) | 195 | (setq buffer-name (generate-new-buffer-name buffer-name)))) |
| 196 | (setq buffer (get-buffer-create buffer-name)) | 196 | (setq buffer (get-buffer-create buffer-name)) |
| 197 | (pop-to-buffer buffer-name) | 197 | (switch-to-buffer buffer-name) |
| 198 | (unless (comint-check-proc buffer-name) | 198 | (unless (comint-check-proc buffer-name) |
| 199 | (comint-exec buffer buffer-name rlogin-program nil args) | 199 | (comint-exec buffer buffer-name rlogin-program nil args) |
| 200 | (rlogin-mode) | 200 | (rlogin-mode) |
diff --git a/lisp/net/telnet.el b/lisp/net/telnet.el index 67971d080ff..59850f68d44 100644 --- a/lisp/net/telnet.el +++ b/lisp/net/telnet.el | |||
| @@ -217,8 +217,8 @@ Normally input is edited in Emacs and sent a line at a time." | |||
| 217 | (telnet-options (if (cdr properties) (cons "-l" (cdr properties)))) | 217 | (telnet-options (if (cdr properties) (cons "-l" (cdr properties)))) |
| 218 | process) | 218 | process) |
| 219 | (if (and buffer (get-buffer-process buffer)) | 219 | (if (and buffer (get-buffer-process buffer)) |
| 220 | (pop-to-buffer (concat "*" name "*")) | 220 | (switch-to-buffer (concat "*" name "*")) |
| 221 | (pop-to-buffer | 221 | (switch-to-buffer |
| 222 | (apply 'make-comint name telnet-program nil telnet-options)) | 222 | (apply 'make-comint name telnet-program nil telnet-options)) |
| 223 | (setq process (get-buffer-process (current-buffer))) | 223 | (setq process (get-buffer-process (current-buffer))) |
| 224 | (set-process-filter process 'telnet-initial-filter) | 224 | (set-process-filter process 'telnet-initial-filter) |
| @@ -252,7 +252,7 @@ Normally input is edited in Emacs and sent a line at a time." | |||
| 252 | (interactive "sOpen rsh connection to host: ") | 252 | (interactive "sOpen rsh connection to host: ") |
| 253 | (require 'shell) | 253 | (require 'shell) |
| 254 | (let ((name (concat "rsh-" host ))) | 254 | (let ((name (concat "rsh-" host ))) |
| 255 | (pop-to-buffer (make-comint name remote-shell-program nil host)) | 255 | (switch-to-buffer (make-comint name remote-shell-program nil host)) |
| 256 | (set-process-filter (get-process name) 'telnet-initial-filter) | 256 | (set-process-filter (get-process name) 'telnet-initial-filter) |
| 257 | (telnet-mode) | 257 | (telnet-mode) |
| 258 | (setq telnet-count -16))) | 258 | (setq telnet-count -16))) |
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index d55a9eed3f0..a4d7cff4127 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el | |||
| @@ -4006,7 +4006,7 @@ window is dedicated." | |||
| 4006 | (gdb-display-breakpoints-buffer) | 4006 | (gdb-display-breakpoints-buffer) |
| 4007 | (delete-other-windows) | 4007 | (delete-other-windows) |
| 4008 | ;; Don't dedicate. | 4008 | ;; Don't dedicate. |
| 4009 | (pop-to-buffer gud-comint-buffer) | 4009 | (switch-to-buffer gud-comint-buffer) |
| 4010 | (let ((win0 (selected-window)) | 4010 | (let ((win0 (selected-window)) |
| 4011 | (win1 (split-window nil ( / ( * (window-height) 3) 4))) | 4011 | (win1 (split-window nil ( / ( * (window-height) 3) 4))) |
| 4012 | (win2 (split-window nil ( / (window-height) 3))) | 4012 | (win2 (split-window nil ( / (window-height) 3))) |
| @@ -4065,7 +4065,7 @@ With arg, display additional buffers iff arg is positive." | |||
| 4065 | "Restore the basic arrangement of windows used by gdb. | 4065 | "Restore the basic arrangement of windows used by gdb. |
| 4066 | This arrangement depends on the value of `gdb-many-windows'." | 4066 | This arrangement depends on the value of `gdb-many-windows'." |
| 4067 | (interactive) | 4067 | (interactive) |
| 4068 | (pop-to-buffer gud-comint-buffer) ;Select the right window and frame. | 4068 | (switch-to-buffer gud-comint-buffer) ;Select the right window and frame. |
| 4069 | (delete-other-windows) | 4069 | (delete-other-windows) |
| 4070 | (if gdb-many-windows | 4070 | (if gdb-many-windows |
| 4071 | (gdb-setup-windows) | 4071 | (gdb-setup-windows) |
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 534082544b6..25a23fed293 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -2496,7 +2496,7 @@ comint mode, which see." | |||
| 2496 | file-subst))) | 2496 | file-subst))) |
| 2497 | (filepart (and file-word (concat "-" (file-name-nondirectory file)))) | 2497 | (filepart (and file-word (concat "-" (file-name-nondirectory file)))) |
| 2498 | (existing-buffer (get-buffer (concat "*gud" filepart "*")))) | 2498 | (existing-buffer (get-buffer (concat "*gud" filepart "*")))) |
| 2499 | (pop-to-buffer (concat "*gud" filepart "*")) | 2499 | (switch-to-buffer (concat "*gud" filepart "*")) |
| 2500 | (when (and existing-buffer (get-buffer-process existing-buffer)) | 2500 | (when (and existing-buffer (get-buffer-process existing-buffer)) |
| 2501 | (error "This program is already being debugged")) | 2501 | (error "This program is already being debugged")) |
| 2502 | ;; Set the dir, in case the buffer already existed with a different dir. | 2502 | ;; Set the dir, in case the buffer already existed with a different dir. |
diff --git a/lisp/progmodes/inf-lisp.el b/lisp/progmodes/inf-lisp.el index 6a222d091bc..0765f74a1cf 100644 --- a/lisp/progmodes/inf-lisp.el +++ b/lisp/progmodes/inf-lisp.el | |||
| @@ -297,7 +297,7 @@ of `inferior-lisp-program'). Runs the hooks from | |||
| 297 | "inferior-lisp" (car cmdlist) nil (cdr cmdlist))) | 297 | "inferior-lisp" (car cmdlist) nil (cdr cmdlist))) |
| 298 | (inferior-lisp-mode))) | 298 | (inferior-lisp-mode))) |
| 299 | (setq inferior-lisp-buffer "*inferior-lisp*") | 299 | (setq inferior-lisp-buffer "*inferior-lisp*") |
| 300 | (pop-to-buffer "*inferior-lisp*")) | 300 | (switch-to-buffer "*inferior-lisp*")) |
| 301 | 301 | ||
| 302 | ;;;###autoload | 302 | ;;;###autoload |
| 303 | (defalias 'run-lisp 'inferior-lisp) | 303 | (defalias 'run-lisp 'inferior-lisp) |
diff --git a/lisp/shell.el b/lisp/shell.el index 3e06801e7af..8c5781f9333 100644 --- a/lisp/shell.el +++ b/lisp/shell.el | |||
| @@ -650,9 +650,9 @@ Otherwise, one argument `-i' is passed to the shell. | |||
| 650 | t shell-file-name)) | 650 | t shell-file-name)) |
| 651 | 'localname)))) | 651 | 'localname)))) |
| 652 | 652 | ||
| 653 | ;; Pop to buffer, so that the buffer's window will be correctly set | 653 | ;; The buffer's window must be correctly set when we call comint (so |
| 654 | ;; when we call comint (so that comint sets the COLUMNS env var properly). | 654 | ;; that comint sets the COLUMNS env var properly). |
| 655 | (pop-to-buffer buffer) | 655 | (switch-to-buffer buffer) |
| 656 | (unless (comint-check-proc buffer) | 656 | (unless (comint-check-proc buffer) |
| 657 | (let* ((prog (or explicit-shell-file-name | 657 | (let* ((prog (or explicit-shell-file-name |
| 658 | (getenv "ESHELL") shell-file-name)) | 658 | (getenv "ESHELL") shell-file-name)) |
diff --git a/lisp/window.el b/lisp/window.el index 72cad635ab5..a0e4136c0bd 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -4498,11 +4498,7 @@ BUFFER-OR-NAME and return that buffer." | |||
| 4498 | buffer)) | 4498 | buffer)) |
| 4499 | (current-buffer))) | 4499 | (current-buffer))) |
| 4500 | 4500 | ||
| 4501 | (defvar display-buffer-alist | 4501 | (defvar display-buffer-alist nil |
| 4502 | '(("\\`\\*\\(scheme\\|ielm\\|shell\\|\\(unsent \\)?mail\\|\ | ||
| 4503 | inferior-lisp\\|Python\\|Customiz.*\\|info\\|rlogin-.*\\|\ | ||
| 4504 | telnet-.*\\|rsh-.*\\|gud-.*\\)\\*\\(<[0-9]+>\\)?" | ||
| 4505 | . (display-buffer-same-window))) | ||
| 4506 | "Alist of conditional actions for `display-buffer'. | 4502 | "Alist of conditional actions for `display-buffer'. |
| 4507 | This is a list of elements (CONDITION . ACTION), where: | 4503 | This is a list of elements (CONDITION . ACTION), where: |
| 4508 | 4504 | ||