all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 3366@emacsbugs.donarmstrong.com
Subject: bug#3366: 23.0.94; doc of split-window-preferred-function, display-buffer, etc.
Date: Tue, 26 May 2009 11:28:57 +0200	[thread overview]
Message-ID: <4A1BB659.30003@gmx.at> (raw)
In-Reply-To: <jwvvdnpqkbi.fsf-monnier+emacsbugreports@gnu.org>

 > We're talking about `display-buffer', which is a function that provides
 > no guarantee about where the window gets displayed, so code that uses it
 > should be prepared for surprises.  If you argue that code should have
 > more control over it, I agree.

IMHO `display-buffer' has to follow (a) changes in display technology
and (b) user preferences.  (a) implies that code cannot rely upon which
window gets split or how that window is split accross future versions of
Emacs.  (b) implies that code using `display-buffer' must be aware of
user preferences.

If coders want precise control, they should use `set-window-buffer'.

 > I suggested changing the `not-this-window' argument so it can have
 > a description of the recommended window to use (not a specific window,
 > but something that could specify whether it should be on the same-frame
 > or not, in an adjacent window or not, in a preferably tall/wide window,
 > in a window close to the minibuffer, ...).

The `not-this-window' argument should be used with caution because it
already now overrides user preferences wrt to `display-buffer'.  I think
that only if the user does not specify any preference in `pop-up-frames'
or `pop-up-windows', an application should be allowed to override that.
So we should enhance the semantics of these variables first.

In addition, I think `window-size-fixed' should be handled the way we
treat dedicated windows.  That is, when this is non-nil for a particular
window, it should inhibit that `display-buffer' splits that window.  But
only the value `t' should inhibit that the window can be resized
manually.  Thus an application can set `window-size-fixed' to some
non-nil, non-t value to avoid that the window gets split and/or resized
by `display-buffer'.

Also `display-buffer' should call `split-window-preferred-function' at
most once.  Calling it with the largest and the LRU window (which may
designate one and the same window) appears merely disconcerting.

martin





  reply	other threads:[~2009-05-26  9:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-24 17:01 bug#3366: 23.0.94; doc of split-window-preferred-function, display-buffer, etc Drew Adams
2009-05-25  7:04 ` martin rudalics
2009-05-25  8:42   ` Drew Adams
2009-05-25  9:40     ` martin rudalics
2009-05-25 15:27     ` Stefan Monnier
2009-05-26  9:28       ` martin rudalics [this message]
2009-05-26 13:47         ` Drew Adams
2009-05-26 17:12         ` Stefan Monnier
2009-05-27  6:53           ` martin rudalics
2009-05-27 14:39             ` Stefan Monnier
2009-05-27 14:47               ` Drew Adams
2009-05-27 17:03               ` martin rudalics
2009-05-27 17:54                 ` Stefan Monnier
2011-07-11 16:03                   ` Lars Magne Ingebrigtsen

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=4A1BB659.30003@gmx.at \
    --to=rudalics@gmx.at \
    --cc=3366@emacsbugs.donarmstrong.com \
    --cc=monnier@iro.umontreal.ca \
    /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.