diff options
| author | Chong Yidong | 2012-08-26 21:42:18 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-08-26 21:42:18 +0800 |
| commit | 77f1f99cb0d69c1cddb0f1c5ef264fe5cd62d210 (patch) | |
| tree | 4ea19d124db49db4c0aa4159cab3296cf9b7a172 | |
| parent | 8b2e00a3297607e38e2be686bd2c7cab28f082d1 (diff) | |
| download | emacs-77f1f99cb0d69c1cddb0f1c5ef264fe5cd62d210.tar.gz emacs-77f1f99cb0d69c1cddb0f1c5ef264fe5cd62d210.zip | |
Make special-display-* and display-buffer-reuse-frames obsolete.
* lisp/window.el (special-display-regexps, special-display-frame-alist)
(special-display-buffer-names, special-display-function)
(display-buffer-reuse-frames): Mark as obsolete.
* lisp/progmodes/compile.el: Don't use display-buffer-reuse-frames.
* help.el (help-print-return-message): Don't treat
display-buffer-reuse-frames specially.
| -rw-r--r-- | etc/NEWS | 10 | ||||
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/help.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 5 | ||||
| -rw-r--r-- | lisp/window.el | 8 |
5 files changed, 28 insertions, 10 deletions
| @@ -622,6 +622,16 @@ display action functions to avoid changing which frame is selected. | |||
| 622 | *** New display action alist `pop-up-frame-parameters', if non-nil, | 622 | *** New display action alist `pop-up-frame-parameters', if non-nil, |
| 623 | specifies frame parameters to give any newly-created frame. | 623 | specifies frame parameters to give any newly-created frame. |
| 624 | 624 | ||
| 625 | *** The following variables are obsolete, as they can be replaced by | ||
| 626 | appropriate entries in the `display-buffer-alist' function introduced | ||
| 627 | in Emacs 24.1: | ||
| 628 | |||
| 629 | **** `display-buffer-reuse-frames' | ||
| 630 | **** `special-display-regexps' | ||
| 631 | **** `special-display-frame-alist' | ||
| 632 | **** `special-display-buffer-names' | ||
| 633 | **** `special-display-function' | ||
| 634 | |||
| 625 | ** Completion | 635 | ** Completion |
| 626 | 636 | ||
| 627 | *** New function `completion-table-with-quoting' to handle completion | 637 | *** New function `completion-table-with-quoting' to handle completion |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 193665f908b..90df0479fac 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,16 @@ | |||
| 1 | 2012-08-26 Chong Yidong <cyd@gnu.org> | 1 | 2012-08-26 Chong Yidong <cyd@gnu.org> |
| 2 | 2 | ||
| 3 | * window.el (special-display-regexps, special-display-frame-alist) | ||
| 4 | (special-display-buffer-names, special-display-function) | ||
| 5 | (display-buffer-reuse-frames): Mark as obsolete. | ||
| 6 | |||
| 7 | * progmodes/compile.el: Don't use display-buffer-reuse-frames. | ||
| 8 | |||
| 9 | * help.el (help-print-return-message): Don't treat | ||
| 10 | display-buffer-reuse-frames specially. | ||
| 11 | |||
| 12 | 2012-08-26 Chong Yidong <cyd@gnu.org> | ||
| 13 | |||
| 3 | * progmodes/gdb-mi.el (gdb-display-buffer-other-frame-action): New | 14 | * progmodes/gdb-mi.el (gdb-display-buffer-other-frame-action): New |
| 4 | variable, replacing gdb-frame-parameters. | 15 | variable, replacing gdb-frame-parameters. |
| 5 | (gdb-frame-io-buffer, gdb-frame-breakpoints-buffer) | 16 | (gdb-frame-io-buffer, gdb-frame-breakpoints-buffer) |
diff --git a/lisp/help.el b/lisp/help.el index 19cb811bcf5..19db7c255d1 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -145,10 +145,6 @@ specifies what to do when the user exits the help buffer." | |||
| 145 | ;; Secondly, the buffer has not been displayed yet, | 145 | ;; Secondly, the buffer has not been displayed yet, |
| 146 | ;; so we don't know whether its frame will be selected. | 146 | ;; so we don't know whether its frame will be selected. |
| 147 | nil) | 147 | nil) |
| 148 | (display-buffer-reuse-frames | ||
| 149 | (setq help-return-method (cons (selected-window) | ||
| 150 | 'quit-window)) | ||
| 151 | nil) | ||
| 152 | ((not (one-window-p t)) | 148 | ((not (one-window-p t)) |
| 153 | (setq help-return-method | 149 | (setq help-return-method |
| 154 | (cons (selected-window) 'quit-window)) | 150 | (cons (selected-window) 'quit-window)) |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 21a323d8b45..eb966e8a90d 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -2461,10 +2461,7 @@ and overlay is highlighted between MK and END-MK." | |||
| 2461 | ;; the error location if the two buffers are in two | 2461 | ;; the error location if the two buffers are in two |
| 2462 | ;; different frames. So don't do it if it's not necessary. | 2462 | ;; different frames. So don't do it if it's not necessary. |
| 2463 | pre-existing | 2463 | pre-existing |
| 2464 | (let ((display-buffer-reuse-frames t) | 2464 | (display-buffer (marker-buffer msg)))) |
| 2465 | (pop-up-windows t)) | ||
| 2466 | ;; Pop up a window. | ||
| 2467 | (display-buffer (marker-buffer msg))))) | ||
| 2468 | (highlight-regexp (with-current-buffer (marker-buffer msg) | 2465 | (highlight-regexp (with-current-buffer (marker-buffer msg) |
| 2469 | ;; also do this while we change buffer | 2466 | ;; also do this while we change buffer |
| 2470 | (compilation-set-window w msg) | 2467 | (compilation-set-window w msg) |
diff --git a/lisp/window.el b/lisp/window.el index 16230003751..3599ff5527f 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -4460,8 +4460,7 @@ See also `special-display-regexps'." | |||
| 4460 | (repeat :tag "Arguments" (sexp))))) | 4460 | (repeat :tag "Arguments" (sexp))))) |
| 4461 | :group 'windows | 4461 | :group 'windows |
| 4462 | :group 'frames) | 4462 | :group 'frames) |
| 4463 | 4463 | (make-obsolete-variable 'special-display-buffer-names 'display-buffer-alist "24.3") | |
| 4464 | ;;;###autoload | ||
| 4465 | (put 'special-display-buffer-names 'risky-local-variable t) | 4464 | (put 'special-display-buffer-names 'risky-local-variable t) |
| 4466 | 4465 | ||
| 4467 | (defcustom special-display-regexps nil | 4466 | (defcustom special-display-regexps nil |
| @@ -4528,6 +4527,8 @@ See also `special-display-buffer-names'." | |||
| 4528 | (repeat :tag "Arguments" (sexp))))) | 4527 | (repeat :tag "Arguments" (sexp))))) |
| 4529 | :group 'windows | 4528 | :group 'windows |
| 4530 | :group 'frames) | 4529 | :group 'frames) |
| 4530 | (make-obsolete-variable 'special-display-regexps 'display-buffer-alist "24.3") | ||
| 4531 | (put 'special-display-regexps 'risky-local-variable t) | ||
| 4531 | 4532 | ||
| 4532 | (defun special-display-p (buffer-name) | 4533 | (defun special-display-p (buffer-name) |
| 4533 | "Return non-nil if a buffer named BUFFER-NAME gets a special frame. | 4534 | "Return non-nil if a buffer named BUFFER-NAME gets a special frame. |
| @@ -4569,6 +4570,7 @@ These supersede the values given in `default-frame-alist'." | |||
| 4569 | (symbol :tag "Parameter") | 4570 | (symbol :tag "Parameter") |
| 4570 | (sexp :tag "Value"))) | 4571 | (sexp :tag "Value"))) |
| 4571 | :group 'frames) | 4572 | :group 'frames) |
| 4573 | (make-obsolete-variable 'special-display-frame-alist 'display-buffer-alist "24.3") | ||
| 4572 | 4574 | ||
| 4573 | (defun special-display-popup-frame (buffer &optional args) | 4575 | (defun special-display-popup-frame (buffer &optional args) |
| 4574 | "Pop up a frame displaying BUFFER and return its window. | 4576 | "Pop up a frame displaying BUFFER and return its window. |
| @@ -4635,6 +4637,7 @@ with corresponding arguments to set up the quit-restore parameter | |||
| 4635 | of the window used." | 4637 | of the window used." |
| 4636 | :type 'function | 4638 | :type 'function |
| 4637 | :group 'frames) | 4639 | :group 'frames) |
| 4640 | (make-obsolete-variable 'special-display-function 'display-buffer-alist "24.3") | ||
| 4638 | 4641 | ||
| 4639 | (defcustom same-window-buffer-names nil | 4642 | (defcustom same-window-buffer-names nil |
| 4640 | "List of names of buffers that should appear in the \"same\" window. | 4643 | "List of names of buffers that should appear in the \"same\" window. |
| @@ -4707,6 +4710,7 @@ that frame." | |||
| 4707 | :type 'boolean | 4710 | :type 'boolean |
| 4708 | :version "21.1" | 4711 | :version "21.1" |
| 4709 | :group 'windows) | 4712 | :group 'windows) |
| 4713 | (make-obsolete-variable 'display-buffer-reuse-frames 'display-buffer-alist "24.3") | ||
| 4710 | 4714 | ||
| 4711 | (defcustom pop-up-windows t | 4715 | (defcustom pop-up-windows t |
| 4712 | "Non-nil means `display-buffer' should make a new window." | 4716 | "Non-nil means `display-buffer' should make a new window." |