[Top][All Lists]

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

Re: want user option for pop-to-buffer to split window horizontally not

From: Juri Linkov
Subject: Re: want user option for pop-to-buffer to split window horizontally not vertically
Date: Fri, 16 Dec 2005 09:48:07 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

>     So now I see that not including it to the next release would be a big
>     mistake.  More and more people have wide-screen monitors, and hardwiring
>     the current default is very annoying for them.
> I really don't want to add new features.  Sometimes I agree to
> redesign new features so that don't get their first release in
> suboptimal form.  And sometimes I agree to fix a bug in a way that
> includes a new Lisp-level feature, because there's no other way.

Many users who have widescreen monitors or use small fonts prefer resizing
Emacs frames to more than 160 columns wide.  Usually text in Emacs buffers
is no longer than 80 columns, and not using remaining horizontal space is
suboptimal in this case.  So users are forced to repeatedly type `C-x 3'
before invoking every command that splits a window into two windows.
This is very annoying.  The worst fact is that it is impossible now to
change this default window splitting behavior at the Lisp level, because
there are two places in window.c where the `horflag' argument of
`split-window' is hardcoded to nil:

window.c:3583:  window = Fsplit_window (window, Qnil, Qnil);
window.c:3597:      window = Fsplit_window (window, Qnil, Qnil);

My patch replaces nil in these two places with the value of a new
user option which is nil by default.

Juri Linkov

reply via email to

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