GNU bug report logs - #20189
25.0.50; Feature request: Alternative split-window-sensibly functions

Previous Next

Package: emacs;

Reported by: Tassilo Horn <tsdh <at> gnu.org>

Date: Tue, 24 Mar 2015 09:19:01 UTC

Severity: wishlist

Found in version 25.0.50

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 20189 <at> debbugs.gnu.org, Tassilo Horn <tsdh <at> gnu.org>
Subject: bug#20189: 25.0.50; Feature request: Alternative split-window-sensibly functions
Date: Thu, 26 Mar 2015 15:31:37 +0100
>> If the last form gets executed, you reuse a window.  Suppose it's reused
>> for showing completions.  Then selecting a completion will, as a
>> side-effect, delete that window instead of showing the previously shown
>> buffer in it.  You probably won't like that.
>
> Sounds like a bug.  Why would the window be deleted?

Because, as I explained two mails ago, `split-window-preferred-function'
has a doc-string which explicitly says:

  This function is called with a window as single argument and is
  supposed to split that window and return the new window.  If the
  window can (or shall) not be split, it is supposed to return nil.

This function is not supposed to reuse a window or create a new frame.
If it does so, the result of quitting the window will be to delete the
window, if possible.

martin




This bug report was last modified 10 years and 83 days ago.

Previous Next


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