emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: split-window-preferred-function


From: martin rudalics
Subject: Re: split-window-preferred-function
Date: Fri, 28 Mar 2008 20:50:15 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Wouldn't it be nicer to use something like

(or (get-lru-window nil nil)
    ;; Try visible frames first.
    (get-buffer-window (current-buffer) 'visible)
    (get-largest-window 'visible)
    ;; If that didn't work, try iconified frames.
    (get-buffer-window (current-buffer) 0)
    (get-largest-window 0)
    ;; As a last resort, make a new frame.
    (frame-selected-window (funcall pop-up-frame-function)))

at the end of `split-window-preferred-horizontally'?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]