diff options
| author | Martin Rudalics | 2011-08-31 11:27:49 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2011-08-31 11:27:49 +0200 |
| commit | f818cd2a398ced7776c91e41331afb51b00b471a (patch) | |
| tree | c5747b924ff5b8dee854eea20f28bc7d09495df4 /lisp/org | |
| parent | 5bc3b51d1ec7f6ff63e08d5e1c889a84a4eaf29c (diff) | |
| download | emacs-f818cd2a398ced7776c91e41331afb51b00b471a.tar.gz emacs-f818cd2a398ced7776c91e41331afb51b00b471a.zip | |
Restore Emacs 23 display-buffer functions and options.
* window.el (display-buffer-window): Rewrite doc-string.
(display-buffer-record-window): New function.
(display-buffer-macro-specifiers)
(display-buffer-even-window-sizes, display-buffer-set-height)
(display-buffer-set-width, display-buffer-in-window)
(display-buffer-reuse-window, display-buffer-split-specifiers)
(display-buffer-side-specifiers, display-buffer-split-window-1)
(display-buffer-split-window, display-buffer-split-atom-window)
(display-buffer-pop-up-window, display-buffer-pop-up-frame)
(display-buffer-pop-up-side-window, display-buffer-in-side-window)
(display-buffer-other-window-means-other-frame)
(display-buffer-normalize-special)
(display-buffer-normalize-default)
(display-buffer-normalize-argument)
(display-buffer-normalize-alist-1, display-buffer-normalize-alist)
(display-buffer-normalize-specifiers, display-buffer-frame)
(display-buffer-same-window, display-buffer-same-frame)
(display-buffer-other-window)
(display-buffer-same-frame-other-window)
(display-buffer-other-frame, pop-to-buffer-same-window)
(pop-to-buffer-same-frame, pop-to-buffer-other-window)
(pop-to-buffer-same-frame-other-window, pop-to-buffer-other-frame)
(switch-to-buffer-same-frame)
(switch-to-buffer-other-window-same-frame)
(display-buffer-alist-of-strings-p, display-buffer-alist-add)
(display-buffer-alist-set-1, display-buffer-alist-set-2)
(display-buffer-alist-set): Remove.
(display-buffer-function, special-display-buffer-names)
(special-display-regexps, special-display-function): In
doc-string refer to display-buffer-window and quit-restore
parameter.
(pop-up-frame-alist, pop-up-frame-function, special-display-p)
(special-display-frame-alist, special-display-popup-frame)
(same-window-buffer-names, same-window-regexps, same-window-p)
(pop-up-frames, display-buffer-reuse-frames, pop-up-windows)
(split-window-preferred-function, split-height-threshold)
(split-width-threshold, window-splittable-p)
(split-window-sensibly, window--try-to-split-window)
(window--frame-usable-p, even-window-heights)
(window--even-window-heights, window--display-buffer-1)
(window--display-buffer-2, display-buffer-other-frame): Restore
old Emacs 23 code, order and doc-strings where applicable.
(display-buffer-default, display-buffer-assq-regexp): New functions.
(display-buffer-alist): Rewrite doc-string.
(display-buffer-default-action)
(display-buffer-overriding-action): New variables.
(display-buffer, switch-to-buffer): Rewrite.
(pop-to-buffer): Restore Emacs 23 behavior but use
window-normalize-buffer-to-display.
(switch-to-buffer-other-window, switch-to-buffer-other-frame):
Restore Emacs 23 behavior but use
window-normalize-buffer-to-switch-to.
(pop-to-buffer-same-window): Rewrite.
(pop-to-buffer-other-window, pop-to-buffer-other-frame): Rewrite
using Emacs 23 options.
* org-compat.el (org-pop-to-buffer-same-window): Remove LABEL
argument from pop-to-buffer-same-window call.
Diffstat (limited to 'lisp/org')
| -rw-r--r-- | lisp/org/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/org/org-compat.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog index 1c58b8a9a7f..625e0926c52 100644 --- a/lisp/org/ChangeLog +++ b/lisp/org/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-08-31 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * org-compat.el (org-pop-to-buffer-same-window): Remove LABEL | ||
| 4 | argument from pop-to-buffer-same-window call. | ||
| 5 | |||
| 1 | 2011-07-30 Carsten Dominik <carsten.dominik@gmail.com> | 6 | 2011-07-30 Carsten Dominik <carsten.dominik@gmail.com> |
| 2 | 7 | ||
| 3 | * ob.el (org-babel-src-block-regexp): If a code block has a body, | 8 | * ob.el (org-babel-src-block-regexp): If a code block has a body, |
diff --git a/lisp/org/org-compat.el b/lisp/org/org-compat.el index edbfa6a1bae..9b0a935a515 100644 --- a/lisp/org/org-compat.el +++ b/lisp/org/org-compat.el | |||
| @@ -438,7 +438,7 @@ With two arguments, return floor and remainder of their quotient." | |||
| 438 | "Pop to buffer specified by BUFFER-OR-NAME in the selected window." | 438 | "Pop to buffer specified by BUFFER-OR-NAME in the selected window." |
| 439 | (if (fboundp 'pop-to-buffer-same-window) | 439 | (if (fboundp 'pop-to-buffer-same-window) |
| 440 | (funcall | 440 | (funcall |
| 441 | 'pop-to-buffer-same-window buffer-or-name norecord label) | 441 | 'pop-to-buffer-same-window buffer-or-name norecord) |
| 442 | (funcall 'switch-to-buffer buffer-or-name norecord))) | 442 | (funcall 'switch-to-buffer buffer-or-name norecord))) |
| 443 | 443 | ||
| 444 | (provide 'org-compat) | 444 | (provide 'org-compat) |