[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch: prefer-window-split-horizontally
From: |
Davis Herring |
Subject: |
Re: Patch: prefer-window-split-horizontally |
Date: |
Wed, 15 Aug 2007 08:24:08 -0700 (PDT) |
User-agent: |
SquirrelMail/1.4.8-6.el3.2lanl |
> I think your approach would do that. This example function would split
> horizontally as long as all windows are 80 or more columns wide.
>
> --8<---------------cut here---------------start------------->8---
> (defun th-split-window-function ()
> (save-window-excursion
> (save-excursion
> (split-window-horizontally)
> (balance-windows)
> (if (>= (let ((edges (window-edges))) (- (nth 2 edges) (nth 0
> edges))) 80)
> 'split-window-horizontally
> 'split-window-vertically))))
> --8<---------------cut here---------------end--------------->8---
>
> Would you try to implement that?
Splitting one window should not involve destroying all Lisp references to
existing windows (as `save-window-excursion' must). Unless redisplay
would somehow be supressed here (I'm not sure), this would also involve
calling `window-size-change-functions' twice for each split, which would
be wasteful and perhaps confusing.
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
Re: Patch: prefer-window-split-horizontally, Juri Linkov, 2007/08/14
Re: Patch: prefer-window-split-horizontally, Richard Stallman, 2007/08/15
Re: Patch: prefer-window-split-horizontally, Stefan Monnier, 2007/08/15
- Re: Patch: prefer-window-split-horizontally, Tassilo Horn, 2007/08/15
- Re: Patch: prefer-window-split-horizontally, Stefan Monnier, 2007/08/15
- Re: Patch: prefer-window-split-horizontally, Tassilo Horn, 2007/08/16
- Re: Patch: prefer-window-split-horizontally, Stefan Monnier, 2007/08/16
- Re: Patch: prefer-window-split-horizontally, Tassilo Horn, 2007/08/16
- RE: Patch: prefer-window-split-horizontally, klaus.berndl, 2007/08/16