bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#3142: 23.0.92; split-window-prefered-function should be able to use


From: Juri Linkov
Subject: 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 12:59:52 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (x86_64-pc-linux-gnu)

> Remains the question whether `split-window-preferred-function' should
> always operate on the selected window or have a window argument.  AFAICT
> nothing speaks for the window argument but the fact that people may have
> customized this already.  Omitting the window argument would allow users
> to put `split-window-vertically' directly as value of
> `split-window-preferred-function' without having to delve any deeper.

How about adding two wrapper functions?

  (split-window-preferred-vertically &optional window)
  that calls split-window-vertically

  (split-window-preferred-horizontally &optional window)
  that calls split-window-horizontally

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






reply via email to

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