• Martin Rudalics's avatar
    Restore Emacs 23 display-buffer functions and options. · f818cd2a
    Martin Rudalics authored
    * 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.
    f818cd2a
window.el 221 KB