all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Андрей Парамонов" <cmr.pent@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: 7368@debbugs.gnu.org
Subject: bug#7368: Testcase
Date: Sat, 13 Nov 2010 11:47:19 +0300	[thread overview]
Message-ID: <AANLkTint9xas4wGrzd6CkAdLDNaeNJ55ruaQLCCyFMMq@mail.gmail.com> (raw)
In-Reply-To: <4CDE4D2D.2000304@gmx.at>

2010/11/13 martin rudalics <rudalics@gmx.at>:
> On my trunk Emacs your code produces a new window on the selected frame.

Ah, sorry. Here is the modified version which I've actually checked ;-)

(let ((foo (get-buffer-create "foo.el"))
      (bar (get-buffer-create "bar.el")))
  (switch-to-buffer foo)
  (delete-other-windows)
  (emacs-lisp-mode)
  (insert "(a")
  (completion-at-point)
  (display-buffer bar t))

> So `display-buffer' simply has no other choice but
> making a new frame.

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.

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

> 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.

Thanks for your support,
Andrey Paramonov





  reply	other threads:[~2010-11-13  8:47 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     ` Андрей Парамонов [this message]
2010-11-13  9:55       ` martin rudalics
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

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

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