GNU bug report logs - #1806
dired-pop-to-buffer in wrong place

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> jurta.org>

Date: Tue, 6 Jan 2009 15:40:04 UTC

Severity: normal

Done: Juri Linkov <juri <at> jurta.org>

Bug is archived. No further changes may be made.

Full log


Message #588 received at 1806 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Juri Linkov <juri <at> jurta.org>, 1806 <at> debbugs.gnu.org
Subject: Re: bug#1806: dired-pop-to-buffer in wrong place
Date: Sun, 18 Oct 2009 12:24:43 +0200
> [ "yours truly" means something like "myself" rather than "you". ]

I must be suffering from a persecution complex.

> There are indeed two questions here:
> 1- in which area of which frame should the buffer be created.
> 2- should display-buffer create a new window for it, or should it use
>    an existing window.
> Maybe these two issues are really orthogonal so they deserve
> separate PARAMETERS.  I.e. one parameter about *where* to display the
> buffer (same-frame, same-window, near-minibuffer, nearby, ...), and the
> other about how to display it (reuse-window, create-new-window, or
> create-new-frame).

That's what I meant.  Currently these issues are conflated.

> Yes, such programming should be fixed.  Fixing requires making it
> possible for the application to say what it wants in some other way
> (more precise) than by rebinding those vars.  Things like `same-window'
> is precisely designed for such uses.

I suppose you mean 'same-window as possible value of NOT-THIS-WINDOW
here.  Overriding the values of customized variables is problematic.
Consider the (let ((window-min-height 1)) paradigm to make a one-line
window.  This is, inherently, disastrous because it implicitly lets the
window that shall be split shrink to one line while the binding is
effective although the clear intention of the programmer is to make this
affect only the window that shall be created.

I think that an application should never bind any variable guarding the
windows popup and resizing behavior.  For `display-buffer' this means
that the entire necessary information should be passed via the
NOT-THIS-WINDOW and FRAME arguments.  For `split-window' I suppose an
explicit size argument should allow to set the size of the respective
(old or new) window disregarding the actual `window-min-height' settings
and honor these settings for all other windows.

martin



This bug report was last modified 12 years and 236 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.