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: display-buffer a softly dedicated window Date: Thu, 18 Nov 2010 13:36:59 +0300 Message-ID: References: <4CE3A46C.6080605@gmx.at> <4CE3E3C4.6060201@gmx.at> <4CE40D45.8080004@gmx.at> <4CE4DDD8.8000105@gmx.at> <4CE4ECEA.8030602@gmx.at> <4CE4FF80.4080404@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 1290077076 7763 80.91.229.12 (18 Nov 2010 10:44:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Nov 2010 10:44:36 +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 Thu Nov 18 11:44:32 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 1PJ1yg-0006FF-AL for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Nov 2010 11:44:30 +0100 Original-Received: from localhost ([127.0.0.1]:52541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJ1yf-00011s-8o for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Nov 2010 05:44:29 -0500 Original-Received: from [140.186.70.92] (port=34407 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJ1yV-00011i-Rr for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2010 05:44:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJ1yU-0007oo-1O for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2010 05:44:19 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJ1yT-0007ok-W7 for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2010 05:44:18 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PJ1na-0001pD-7p; Thu, 18 Nov 2010 05:33: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: Thu, 18 Nov 2010 10:33: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.12900763587008 (code B ref 7368); Thu, 18 Nov 2010 10:33:02 +0000 Original-Received: (at 7368) by debbugs.gnu.org; 18 Nov 2010 10:32:38 +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 1PJ1nC-0001oz-0w for submit@debbugs.gnu.org; Thu, 18 Nov 2010 05:32:38 -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 1PJ1nA-0001ou-81 for 7368@debbugs.gnu.org; Thu, 18 Nov 2010 05:32:36 -0500 Original-Received: by bwz12 with SMTP id 12so2655711bwz.3 for <7368@debbugs.gnu.org>; Thu, 18 Nov 2010 02:37:39 -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=KZrU932tcm4ctMANCwmFTvFNc409rojbt/0uqezhakE=; b=Kf+qDRY68LqjzY55KhUjAN17Uc81gpIsE/8hQ2VoZX+XFIhmw7Z0YJA4o36l9ApzUQ 33TALmKrEGBYcFr2P9xLipkCnB+CbBRPWuKmpgRET7j6TKVyx0CZbpn3yrDbc/+OqdzV gcOH+pYvpYuz37WAcHchb+aNzVEMLDklb7TSg= 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=PHL3xdvgq313ACw/Epq/QKGpugM4PYjgSAVOU+5RRZaQ1tcAWaMb72vZvSmnSz0N6a 5nu63RfPeEU550v/0M5xU6S2I3QYzk1IeBN1myiZJf80YvXxj/rfklZluqSOQt4bL42b 6xtu9kaAYm8jQFjc1uKFDre+LJXdFTwn55Z4s= Original-Received: by 10.204.100.206 with SMTP id z14mr375871bkn.209.1290076659688; Thu, 18 Nov 2010 02:37:39 -0800 (PST) Original-Received: by 10.204.49.208 with HTTP; Thu, 18 Nov 2010 02:36:59 -0800 (PST) In-Reply-To: <4CE4FF80.4080404@gmx.at> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 18 Nov 2010 05:33: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:41729 Archived-At: 2010/11/18 martin rudalics : >> comint.el forces *Completions* to close and shows the interpreter >> immediately, in its place. That's what I want, exactly. Showing the >> interpreter in place of *Completions* would have the same effect, so >> it's what I want, too. > > I've looked into comint.el. =C2=A0It's apparently based on window > configurations and restores the old configuration when you do > `choose-completion' or type SPACE. =C2=A0I don't see where it deletes the > window when you do something else. =C2=A0Very contrived code. If you are interested you may check the example I provided in my recent emacs.devel thread. *Completions* is somehow closed before comint-dynamic-list-completions is finished (comint-dynamic-list-completions doesn't exit immediately upon showing *Completions*). > Hm... =C2=A0What about setting `display-buffer-function' to something lik= e: > > (defun my-display-buffer (buffer flag) > =C2=A0(let (window display-buffer-function) > =C2=A0 =C2=A0(when (and (=3D (length (window-list)) 2) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (setq window (get-buffer= -window "*Completions*"))) > =C2=A0 =C2=A0 =C2=A0(set-window-dedicated-p window nil)) > =C2=A0 =C2=A0(display-buffer buffer flag))) > Hm, nice idea. But isn't display-buffer-function called from display-buffer (infinite recursion)? I'll check it when I get to my Emacs box. Best wishes, Andrey Paramonov