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 #22 received at 3142 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Juri Linkov <juri <at> jurta.org>
To: Jared Finder <jfinder <at> crypticstudios.com>
Cc: 3142 <at> debbugs.gnu.org, martin rudalics <rudalics <at> gmx.at>
Subject: Re: bug#3142: 23.0.92; split-window-prefered-function should be able to use split-window-horizontally/split-window-vertically
Date: Wed, 29 Apr 2009 01:48:21 +0300
> That's not obvious!  I like the idea of the split window thresholds,
> but it needs to be a lot more obvious how to use them.  What's wrong
> with my suggestion to change the customize interface to have two more
> options "Always split vertical" and "Always split horizontal" that
> calls the appropriate functions?

I remember we once considered creating a default function with
"intelligently splitting" logic (IOW, moving the `else' part of `if'
in `window--try-to-split-window' to a separate function)
and setting the default value of `split-window-preferred-function'
to the name of this function.

This will allow defining three const values in defcustom:
- the default function name;
- vertically splitting function;
- horizontally splitting function;

- and user-defined function's name.

-- 
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.