GNU bug report logs - #3142
23.0.92; split-window-prefered-function should be able to use split-window-horizontally/split-window-vertically

Previous Next

Package: emacs;

Reported by: Jared Finder <jfinder <at> crypticstudios.com>

Date: Tue, 28 Apr 2009 01:45:03 UTC

Severity: wishlist

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #67 received at 3142 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Juri Linkov <juri <at> jurta.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 3142 <at> debbugs.gnu.org,
        Jared Finder <jfinder <at> crypticstudios.com>
Subject: Re: bug#3142: 23.0.92; split-window-prefered-function should be able to use split-window-horizontally/split-window-vertically
Date: Thu, 30 Apr 2009 14:47:27 +0300
> + (defcustom split-window-preferred-function 'split-selected-window
> +   "Function called by `display-buffer' to split a window.
> + The window that shall be split is selected when this function is
> + called.  The function is supposed to either return the new window
> + or nil if the window can (or shall) not be split."
> +   :type 'function
> +   :version "23.1"
> +   :group 'windows)

If setting this option to `split-window-horizontally' and
`split-window-vertically' is possible and it works correctly
with these value, then I suggest adding them as constants,
e.g. "Always split horizontally" and "Always split vertically".

Also I suggest keeping the common function name prefix "split-window-",
i.e. instead of `split-selected-window' to name it something like
"split-window-sensibly" or "split-window-with-thresholds".

-- 
Juri Linkov
http://www.jurta.org/emacs/




This bug report was last modified 13 years and 291 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.