all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Tassilo Horn <tassilo@member.fsf.org>
Cc: emacs-devel@gnu.org
Subject: Re: Patch: prefer-window-split-horizontally
Date: Thu, 16 Aug 2007 09:11:04 -0400	[thread overview]
Message-ID: <jwvps1nzkw5.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <873ayk0z9b.fsf@baldur.tsdh.de> (Tassilo Horn's message of "Thu\, 16 Aug 2007 08\:28\:16 +0200")

>>>> Just for the record: we're talking about something used only in
>>>> display-buffer so a name like `split-window-function' doesn't seem
>>>> right.
>> 
>>> The suggested variable's function could be used in `split-window',
>>> couldn't it?
>> 
>> Sounds more delicate: split-window is a lower-level function used by
>> several other pieces of code that want to have precise control over
>> the layout of windows inside a frame (e.g. Gnus).

> Since `split-window-function' would default to `split-window-vertically'
> it shouldn't make a difference.  And of course `split-window-function'
> may only be used in `split-window' if its parameters SIZE and HORFLAG
> are omitted.

> Do you think there are packages that would still be break on this?  If
> yes, then maybe the packages should be adapted to the new behavior (by
> adding the required params to `split-window' if they need fine grained
> control) and not the other way around.

Changing the behavior of split-window so that it uses something like
split-window-function only makes sense if we want to change the behavior
seen by current callers of this function.  If all/most current callers of
this function would rather have it stay the way it is and if all callers
that want it changed do not call it directly (or call it interactively),
then we're better off changing the other place where split-window is called
(i.e. display-buffer) or creating a new function.


        Stefan

  reply	other threads:[~2007-08-16 13:11 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-14 16:34 Patch: prefer-window-split-horizontally Tassilo Horn
2007-08-14 16:51 ` Tassilo Horn
2007-08-15 18:22   ` Richard Stallman
2007-08-15 18:47     ` Tassilo Horn
2007-08-16  2:42       ` Richard Stallman
2007-08-16  5:52         ` Tassilo Horn
2007-08-14 20:47 ` Juri Linkov
2007-08-15  5:35   ` Tassilo Horn
2007-08-15 15:24     ` Davis Herring
2007-08-15 15:49       ` Tassilo Horn
2007-08-15 18:22   ` Richard Stallman
2007-08-15 18:57     ` Tassilo Horn
2007-08-15 19:35   ` Stefan Monnier
2007-08-15 19:53     ` Tassilo Horn
2007-08-15 20:31       ` Stefan Monnier
2007-08-16  6:28         ` Tassilo Horn
2007-08-16 13:11           ` Stefan Monnier [this message]
2007-08-16 13:38             ` Tassilo Horn
2007-08-16 14:00               ` klaus.berndl
2007-08-16 14:37                 ` Tassilo Horn
2007-08-16 14:34               ` Stefan Monnier
2007-08-16 14:52                 ` Tassilo Horn
2007-08-16 15:46                   ` klaus.berndl
2007-08-15 23:36     ` Juri Linkov
2007-08-16  0:45       ` Stefan Monnier
2007-08-16 20:21         ` Juri Linkov
2007-08-16  2:42       ` Richard Stallman
2007-08-16 20:23         ` Juri Linkov
2007-08-15  5:52 ` Dieter Wilhelm
2007-08-15  6:27   ` Tassilo Horn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvps1nzkw5.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=tassilo@member.fsf.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.