From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE=D0=BD=D0=BE=D0=B2?= Newsgroups: gmane.emacs.bugs Subject: bug#7368: Testcase Date: Sat, 13 Nov 2010 11:47:19 +0300 Message-ID: References: <87y690q1qa.fsf@neo.paramonovs> <4CDE4D2D.2000304@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1289639658 19154 80.91.229.12 (13 Nov 2010 09:14:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 13 Nov 2010 09:14:18 +0000 (UTC) Cc: 7368@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 13 10:14:14 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PHCBY-0000Ce-3Q for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Nov 2010 10:14:12 +0100 Original-Received: from localhost ([127.0.0.1]:40928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHCBW-0004rS-DN for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Nov 2010 04:14:10 -0500 Original-Received: from [140.186.70.92] (port=42048 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHCBQ-0004p9-JR for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2010 04:14:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHCBM-0002Xm-I1 for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2010 04:14:04 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHCBM-0002Xi-FE for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2010 04:14:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PHBiM-0007Cj-AB; Sat, 13 Nov 2010 03:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE=D0=BD=D0=BE=D0=B2?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Nov 2010 08:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7368 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7368-submit@debbugs.gnu.org id=B7368.128963779227677 (code B ref 7368); Sat, 13 Nov 2010 08:44:02 +0000 Original-Received: (at 7368) by debbugs.gnu.org; 13 Nov 2010 08:43:12 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PHBhX-0007CM-V1 for submit@debbugs.gnu.org; Sat, 13 Nov 2010 03:43:12 -0500 Original-Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PHBhV-0007CH-Ip for 7368@debbugs.gnu.org; Sat, 13 Nov 2010 03:43:10 -0500 Original-Received: by bwz12 with SMTP id 12so3830912bwz.3 for <7368@debbugs.gnu.org>; Sat, 13 Nov 2010 00:47:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=E6tyyWBESCvx6Mk7QEqfbYqSjizAVAf39S4JGeUQFgw=; b=TRyj1KjqpHyD8//MypdtLlGOcmM8no1IodO84tyQLS4CeoIciyTZksTDloyb+mUrxp RbNkHPwpyG0Xbvjh4atoiG6OBN+B7Ict6Y01YwyfvIYpcELdITLDLUGGVBJjVju/t6Vw UaRP5XxgYIkAn5OcHGWyLVa8f5wCkI73RfmuU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=qBambFNCx2+AP/PQEfYyoUNf17nMObDdnl3p58HCxFIpR+9UHMucf/s7lzxEt/iJTt 9RAblbaifk3/vxgSVuujIFgC/D94RQSsOf+ZOWE9N23gPqF50plSF1mcNMFkEKRW/Or9 hqkbTanIBD5VzNw1C7qSzIjMP279YNsb99QBY= Original-Received: by 10.204.104.5 with SMTP id m5mr3799537bko.47.1289638079800; Sat, 13 Nov 2010 00:47:59 -0800 (PST) Original-Received: by 10.204.49.208 with HTTP; Sat, 13 Nov 2010 00:47:19 -0800 (PST) In-Reply-To: <4CDE4D2D.2000304@gmx.at> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 13 Nov 2010 03:44:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41544 Archived-At: 2010/11/13 martin rudalics : > 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=3Dt. 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 > =C2=A0(delete-other-windows) > =C2=A0(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