unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: "Андрей Парамонов" <cmr.pent@gmail.com>
Cc: 7368@debbugs.gnu.org
Subject: bug#7368: Testcase
Date: Sat, 13 Nov 2010 10:55:22 +0100	[thread overview]
Message-ID: <4CDE608A.8040003@gmx.at> (raw)
In-Reply-To: <AANLkTint9xas4wGrzd6CkAdLDNaeNJ55ruaQLCCyFMMq@mail.gmail.com>

 > In principle, in this very awkward situation display-buffer has 3 options:
 >
 > 1) To display buffer in selected window -- but not-in-this-window=t.
 >
 > 2) To display buffer in a new frame -- but pop-up-frames says we
 > *never* make a separate frame.
 >
 > 3) To display buffer in place of completions window -- but that window
 > is "dedicated".
 >
 > To me option 3 seems the least unexpected.

Anything can happen here.  If `display-buffer' doesn't find a better
window "the normal way", it may use the selected or the dedicated window
as well.

 > Anyway, something needs to be fixed, as current documentation for
 > pop-up-frames is wrong.

Most `display-buffer' related doc-strings are "wrong" in this regard.
They are based on behaviors where at least one approach gets through
"the normal way".  Note that `display-buffer' is supposed to _always_
return a window although you can easily set up options in a way that do
not allow to do that (as in your example).

We would have to introduce some sort of priority telling Emacs which
option is allowed to violate which restriction in which order, document
that, and confuse people even more.

BTW, you might want to have a look at my window-pub branch where all
`display-buffer' related options are combined in two almost identic
options called `display-buffer-names' and `display-buffer-regexps'.  The
doc-string of the former and its documentation are formulated in less
stringent terms.

 >> BTW, the snippet
 >>
 >> (progn
 >>  (delete-other-windows)
 >>  (display-buffer (other-buffer) t))
 >>
 >> should be sufficient for exhibiting the behavior you observe.
 >
 > No, the completions buffer plays important role.

Make your frame small enough and you can see the problem here too.

martin





  reply	other threads:[~2010-11-13  9:55 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-10 21:59 bug#7368: 23.2; Python interpreter buffer should never appear in separate frame Andrey Paramonov
2010-11-13  6:36 ` bug#7368: Testcase Андрей Парамонов
2010-11-13  8:32   ` martin rudalics
2010-11-13  8:47     ` Андрей Парамонов
2010-11-13  9:55       ` martin rudalics [this message]
2010-11-15 22:42       ` Stefan Monnier
2010-11-16 20:19         ` Андрей Парамонов
2010-11-16 21:25           ` Stefan Monnier
2010-11-17  9:46           ` martin rudalics
2010-11-17  8:57 ` bug#7368: display-buffer a softly dedicated window Андрей Парамонов
2010-11-17  9:46   ` martin rudalics
2010-11-17  9:58     ` Андрей Парамонов
2010-11-17 14:16       ` martin rudalics
2010-11-17 15:09         ` Андрей Парамонов
2010-11-17 17:13           ` martin rudalics
2010-11-17 18:55             ` Андрей Парамонов
2010-11-18  8:03               ` martin rudalics
2010-11-18  8:32                 ` Андрей Парамонов
2010-11-18  9:07                   ` martin rudalics
2010-11-18  9:40                     ` Андрей Парамонов
2010-11-18 10:27                       ` martin rudalics
2010-11-18 10:36                         ` Андрей Парамонов
2010-11-18 13:20                           ` martin rudalics
2010-11-19  6:30                             ` Андрей Парамонов
2011-07-13  2:07                               ` Glenn Morris
2011-07-13  6:24                                 ` martin rudalics
2011-07-13  6:45                                   ` Glenn Morris
2011-07-13  8:37                                     ` martin rudalics
2011-07-13 16:07                                       ` Glenn Morris
2014-12-25 10:55                                         ` martin rudalics
2010-11-18 14:18                   ` Stefan Monnier
2010-11-17 13:10   ` Stefan Monnier
2010-11-18 20:56     ` Lennart Borgman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=4CDE608A.8040003@gmx.at \
    --to=rudalics@gmx.at \
    --cc=7368@debbugs.gnu.org \
    --cc=cmr.pent@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).