diff options
| -rw-r--r-- | lisp/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/window.el | 34 |
2 files changed, 29 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 04fa02dbfcc..7b49352a178 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2011-06-15 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * window.el (same-window-buffer-names, same-window-regexps) | ||
| 4 | (special-display-frame-alist, special-display-popup-frame) | ||
| 5 | (special-display-function, special-display-buffer-names) | ||
| 6 | (special-display-regexps, pop-up-frame-alist) | ||
| 7 | (pop-up-frame-function, pop-up-frames, display-buffer-reuse-frames) | ||
| 8 | (pop-up-windows, split-window-preferred-function) | ||
| 9 | (split-height-threshold, split-width-threshold, even-window-heights) | ||
| 10 | (display-buffer-mark-dedicated): Don't encourage the use of | ||
| 11 | display-buffer-alist from Elisp code. | ||
| 12 | |||
| 1 | 2011-06-15 Dan Nicolaescu <dann@ics.uci.edu> | 13 | 2011-06-15 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 14 | ||
| 3 | * progmodes/python.el (python-mode): Derive from prog-mode. | 15 | * progmodes/python.el (python-mode): Derive from prog-mode. |
diff --git a/lisp/window.el b/lisp/window.el index 424ee11e2a5..5493893d4c1 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -5581,7 +5581,7 @@ See also `same-window-regexps'." | |||
| 5581 | :group 'windows) | 5581 | :group 'windows) |
| 5582 | (make-obsolete-variable | 5582 | (make-obsolete-variable |
| 5583 | 'same-window-buffer-names | 5583 | 'same-window-buffer-names |
| 5584 | "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") | 5584 | "use 2nd arg of `display-buffer' instead." "24.1") |
| 5585 | 5585 | ||
| 5586 | (defcustom same-window-regexps nil | 5586 | (defcustom same-window-regexps nil |
| 5587 | "List of regexps saying which buffers should appear in the \"same\" window. | 5587 | "List of regexps saying which buffers should appear in the \"same\" window. |
| @@ -5599,7 +5599,7 @@ See also `same-window-buffer-names'." | |||
| 5599 | :group 'windows) | 5599 | :group 'windows) |
| 5600 | (make-obsolete-variable | 5600 | (make-obsolete-variable |
| 5601 | 'same-window-regexps | 5601 | 'same-window-regexps |
| 5602 | "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") | 5602 | "use 2nd arg of `display-buffer' instead." "24.1") |
| 5603 | 5603 | ||
| 5604 | (defun same-window-p (buffer-name) | 5604 | (defun same-window-p (buffer-name) |
| 5605 | "Return non-nil if a buffer named BUFFER-NAME would be shown in the \"same\" window. | 5605 | "Return non-nil if a buffer named BUFFER-NAME would be shown in the \"same\" window. |
| @@ -5645,7 +5645,7 @@ These supersede the values given in `default-frame-alist'." | |||
| 5645 | :group 'frames) | 5645 | :group 'frames) |
| 5646 | (make-obsolete-variable | 5646 | (make-obsolete-variable |
| 5647 | 'special-display-frame-alist | 5647 | 'special-display-frame-alist |
| 5648 | "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") | 5648 | "use 2nd arg of `display-buffer' instead." "24.1") |
| 5649 | 5649 | ||
| 5650 | (defun special-display-popup-frame (buffer &optional args) | 5650 | (defun special-display-popup-frame (buffer &optional args) |
| 5651 | "Display BUFFER in a special frame and return the window chosen. | 5651 | "Display BUFFER in a special frame and return the window chosen. |
| @@ -5693,7 +5693,7 @@ and (cdr ARGS) as second." | |||
| 5693 | (frame-selected-window frame)))))) | 5693 | (frame-selected-window frame)))))) |
| 5694 | (make-obsolete | 5694 | (make-obsolete |
| 5695 | 'special-display-popup-frame | 5695 | 'special-display-popup-frame |
| 5696 | "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") | 5696 | "use 2nd arg of `display-buffer' instead." "24.1") |
| 5697 | 5697 | ||
| 5698 | (defcustom special-display-function 'special-display-popup-frame | 5698 | (defcustom special-display-function 'special-display-popup-frame |
| 5699 | "Function to call for displaying special buffers. | 5699 | "Function to call for displaying special buffers. |
| @@ -5712,7 +5712,7 @@ A buffer is special when its name is either listed in | |||
| 5712 | :group 'frames) | 5712 | :group 'frames) |
| 5713 | (make-obsolete-variable | 5713 | (make-obsolete-variable |
| 5714 | 'special-display-function | 5714 | 'special-display-function |
| 5715 | "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") | 5715 | "use 2nd arg of `display-buffer' instead." "24.1") |
| 5716 | 5716 | ||
| 5717 | (defcustom special-display-buffer-names nil | 5717 | (defcustom special-display-buffer-names nil |
| 5718 | "List of names of buffers that should be displayed specially. | 5718 | "List of names of buffers that should be displayed specially. |
| @@ -5779,7 +5779,7 @@ See also `special-display-regexps'." | |||
| 5779 | :group 'frames) | 5779 | :group 'frames) |
| 5780 | (make-obsolete-variable | 5780 | (make-obsolete-variable |
| 5781 | 'special-display-buffer-names | 5781 | 'special-display-buffer-names |
| 5782 | "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") | 5782 | "use 2nd arg of `display-buffer' instead." "24.1") |
| 5783 | 5783 | ||
| 5784 | ;;;###autoload | 5784 | ;;;###autoload |
| 5785 | (put 'special-display-buffer-names 'risky-local-variable t) | 5785 | (put 'special-display-buffer-names 'risky-local-variable t) |
| @@ -5850,7 +5850,7 @@ See also `special-display-buffer-names'." | |||
| 5850 | :group 'frames) | 5850 | :group 'frames) |
| 5851 | (make-obsolete-variable | 5851 | (make-obsolete-variable |
| 5852 | 'special-display-regexps | 5852 | 'special-display-regexps |
| 5853 | "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") | 5853 | "use 2nd arg of `display-buffer' instead." "24.1") |
| 5854 | 5854 | ||
| 5855 | (defun special-display-p (buffer-name) | 5855 | (defun special-display-p (buffer-name) |
| 5856 | "Return non-nil if a buffer named BUFFER-NAME gets a special frame. | 5856 | "Return non-nil if a buffer named BUFFER-NAME gets a special frame. |
| @@ -5902,7 +5902,7 @@ affected by this variable." | |||
| 5902 | :group 'frames) | 5902 | :group 'frames) |
| 5903 | (make-obsolete-variable | 5903 | (make-obsolete-variable |
| 5904 | 'pop-up-frame-alist | 5904 | 'pop-up-frame-alist |
| 5905 | "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") | 5905 | "use 2nd arg of `display-buffer' instead." "24.1") |
| 5906 | 5906 | ||
| 5907 | (defcustom pop-up-frame-function | 5907 | (defcustom pop-up-frame-function |
| 5908 | (lambda () (make-frame pop-up-frame-alist)) | 5908 | (lambda () (make-frame pop-up-frame-alist)) |
| @@ -5914,7 +5914,7 @@ frame. The default value calls `make-frame' with the argument | |||
| 5914 | :group 'frames) | 5914 | :group 'frames) |
| 5915 | (make-obsolete-variable | 5915 | (make-obsolete-variable |
| 5916 | 'pop-up-frame-function | 5916 | 'pop-up-frame-function |
| 5917 | "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") | 5917 | "use 2nd arg of `display-buffer' instead." "24.1") |
| 5918 | 5918 | ||
| 5919 | (defcustom pop-up-frames 'unset ; nil | 5919 | (defcustom pop-up-frames 'unset ; nil |
| 5920 | "Whether `display-buffer' should make a separate frame. | 5920 | "Whether `display-buffer' should make a separate frame. |
| @@ -5934,7 +5934,7 @@ Any other non-nil value means always make a separate frame." | |||
| 5934 | :group 'frames) | 5934 | :group 'frames) |
| 5935 | (make-obsolete-variable | 5935 | (make-obsolete-variable |
| 5936 | 'pop-up-frames | 5936 | 'pop-up-frames |
| 5937 | "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") | 5937 | "use 2nd arg of `display-buffer' instead." "24.1") |
| 5938 | 5938 | ||
| 5939 | (defcustom display-buffer-reuse-frames 'unset ; nil | 5939 | (defcustom display-buffer-reuse-frames 'unset ; nil |
| 5940 | "Set and non-nil means `display-buffer' should reuse frames. | 5940 | "Set and non-nil means `display-buffer' should reuse frames. |
| @@ -5946,7 +5946,7 @@ that frame." | |||
| 5946 | :group 'frames) | 5946 | :group 'frames) |
| 5947 | (make-obsolete-variable | 5947 | (make-obsolete-variable |
| 5948 | 'display-buffer-reuse-frames | 5948 | 'display-buffer-reuse-frames |
| 5949 | "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") | 5949 | "use 2nd arg of `display-buffer' instead." "24.1") |
| 5950 | 5950 | ||
| 5951 | (defcustom pop-up-windows 'unset ; t | 5951 | (defcustom pop-up-windows 'unset ; t |
| 5952 | "Set and non-nil means `display-buffer' should make a new window." | 5952 | "Set and non-nil means `display-buffer' should make a new window." |
| @@ -5955,7 +5955,7 @@ that frame." | |||
| 5955 | :group 'windows) | 5955 | :group 'windows) |
| 5956 | (make-obsolete-variable | 5956 | (make-obsolete-variable |
| 5957 | 'pop-up-windows | 5957 | 'pop-up-windows |
| 5958 | "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") | 5958 | "use 2nd arg of `display-buffer' instead." "24.1") |
| 5959 | 5959 | ||
| 5960 | (defcustom split-window-preferred-function 'split-window-sensibly | 5960 | (defcustom split-window-preferred-function 'split-window-sensibly |
| 5961 | "Function called by `display-buffer' to split a window. | 5961 | "Function called by `display-buffer' to split a window. |
| @@ -5984,7 +5984,7 @@ not want to split the selected window." | |||
| 5984 | :group 'windows) | 5984 | :group 'windows) |
| 5985 | (make-obsolete-variable | 5985 | (make-obsolete-variable |
| 5986 | 'split-window-preferred-function | 5986 | 'split-window-preferred-function |
| 5987 | "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") | 5987 | "use 2nd arg of `display-buffer' instead." "24.1") |
| 5988 | 5988 | ||
| 5989 | (defcustom split-height-threshold 80 | 5989 | (defcustom split-height-threshold 80 |
| 5990 | "Minimum height for splitting a window to display a buffer. | 5990 | "Minimum height for splitting a window to display a buffer. |
| @@ -5998,7 +5998,7 @@ split it vertically disregarding the value of this variable." | |||
| 5998 | :group 'windows) | 5998 | :group 'windows) |
| 5999 | (make-obsolete-variable | 5999 | (make-obsolete-variable |
| 6000 | 'split-height-threshold | 6000 | 'split-height-threshold |
| 6001 | "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") | 6001 | "use 2nd arg of `display-buffer' instead." "24.1") |
| 6002 | 6002 | ||
| 6003 | (defcustom split-width-threshold 160 | 6003 | (defcustom split-width-threshold 160 |
| 6004 | "Minimum width for splitting a window to display a buffer. | 6004 | "Minimum width for splitting a window to display a buffer. |
| @@ -6010,7 +6010,7 @@ is nil, `display-buffer' cannot split windows horizontally." | |||
| 6010 | :group 'windows) | 6010 | :group 'windows) |
| 6011 | (make-obsolete-variable | 6011 | (make-obsolete-variable |
| 6012 | 'split-width-threshold | 6012 | 'split-width-threshold |
| 6013 | "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") | 6013 | "use 2nd arg of `display-buffer' instead." "24.1") |
| 6014 | 6014 | ||
| 6015 | (defcustom even-window-heights t | 6015 | (defcustom even-window-heights t |
| 6016 | "If non-nil `display-buffer' will try to even window heights. | 6016 | "If non-nil `display-buffer' will try to even window heights. |
| @@ -6022,7 +6022,7 @@ window that appears above or below the selected window." | |||
| 6022 | :group 'windows) | 6022 | :group 'windows) |
| 6023 | (make-obsolete-variable | 6023 | (make-obsolete-variable |
| 6024 | 'even-window-heights | 6024 | 'even-window-heights |
| 6025 | "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") | 6025 | "use 2nd arg of `display-buffer' instead." "24.1") |
| 6026 | 6026 | ||
| 6027 | (defvar display-buffer-mark-dedicated 'unset ; nil | 6027 | (defvar display-buffer-mark-dedicated 'unset ; nil |
| 6028 | "Set and non-nil means `display-buffer' marks the windows it creates as dedicated. | 6028 | "Set and non-nil means `display-buffer' marks the windows it creates as dedicated. |
| @@ -6030,7 +6030,7 @@ The actual non-nil value of this variable will be copied to the | |||
| 6030 | `window-dedicated-p' flag.") | 6030 | `window-dedicated-p' flag.") |
| 6031 | (make-obsolete-variable | 6031 | (make-obsolete-variable |
| 6032 | 'display-buffer-mark-dedicated | 6032 | 'display-buffer-mark-dedicated |
| 6033 | "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") | 6033 | "use 2nd arg of `display-buffer' instead." "24.1") |
| 6034 | 6034 | ||
| 6035 | (defun window-splittable-p (window &optional horizontal) | 6035 | (defun window-splittable-p (window &optional horizontal) |
| 6036 | "Return non-nil if `split-window-sensibly' may split WINDOW. | 6036 | "Return non-nil if `split-window-sensibly' may split WINDOW. |