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: Fri, 19 Nov 2010 09:30:47 +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> <4CE52824.4050304@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1290149079 29338 80.91.229.12 (19 Nov 2010 06:44:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 19 Nov 2010 06:44:39 +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 Fri Nov 19 07:44:35 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 1PJKi3-0000kq-2V for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Nov 2010 07:44:35 +0100 Original-Received: from localhost ([127.0.0.1]:43581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJKi2-0004Ap-8V for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Nov 2010 01:44:34 -0500 Original-Received: from [140.186.70.92] (port=58463 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJKhr-00049h-0k for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2010 01:44:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJKhp-00018B-Nr for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2010 01:44:22 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJKhp-000186-JT for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2010 01:44:21 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PJKR3-0002Bb-UU; Fri, 19 Nov 2010 01:27:01 -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: Fri, 19 Nov 2010 06:27:01 +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.12901479848395 (code B ref 7368); Fri, 19 Nov 2010 06:27:01 +0000 Original-Received: (at 7368) by debbugs.gnu.org; 19 Nov 2010 06:26:24 +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 1PJKQS-0002BK-4B for submit@debbugs.gnu.org; Fri, 19 Nov 2010 01:26:24 -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 1PJKQQ-0002BE-5h for 7368@debbugs.gnu.org; Fri, 19 Nov 2010 01:26:22 -0500 Original-Received: by bwz12 with SMTP id 12so3655947bwz.3 for <7368@debbugs.gnu.org>; Thu, 18 Nov 2010 22:31:27 -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; bh=it8cx2Kl628xvKO0PCszHMhXPMJsqnbPwyvhLZpuz6E=; b=I4oLsqA2jQDFFUOoeQkdab1Pp3TVFtby/VQZ5+s9Zx0arfSuIxk8a+XIHcgAbwFR72 9zxVZaAAVcv/9MqfPutbniarZ7ghPEPYllYgXAL1RvzSz9h5NFCdofOjOV/3bsG2CwUW vhbeRq4wLwLJZRirDK8a31fyMmI622xGKjoQs= 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; b=ktpFqNRfAV/1saElWhcYXOIEDoh5nD09Ki2IHgRQx3tv/0htwR4Y3v1AarzPsOXz3f r/S3W1MOxrThuzWea7IFY+bqpoYO9VZkpbMQ+bJLLJCbXoKkusTjLfix4ulAJK8jsF+d rbA8eVHJAToGN1/oRBlR+wXpBLTR+TwxM32bU= Original-Received: by 10.204.55.140 with SMTP id u12mr1620648bkg.155.1290148287862; Thu, 18 Nov 2010 22:31:27 -0800 (PST) Original-Received: by 10.204.49.208 with HTTP; Thu, 18 Nov 2010 22:30:47 -0800 (PST) In-Reply-To: <4CE52824.4050304@gmx.at> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 19 Nov 2010 01:27:01 -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:41747 Archived-At: I've checked out window-pub and played with it bit. Basically, everything worked great for me so far (note: I use default window options). Didn't notice any regressions. The problem with *Completions* is gone because in window-pub *Completions* is not dedicated :-) Also, I liked that many functions moved from C to Lisp (one can explore and tweak them much easier). As a temporary solution to the bug I now use the following code. It has some minor issues (i.e. if *Completions* is above code buffer, and I switch to interpreter, code buffer would come above and interpreter buffer would come below), but I can definitely live with it. However, proper upstream fix would still be very welcome. (defun my-display-buffer (buffer flag) (when (not (eq (buffer-name buffer) "*Completions*")) (let ((completions-window (get-buffer-window "*Completions*"))) (when completions-window (quit-window nil completions-window)))) (let (display-buffer-function) (display-buffer buffer flag))) (setq display-buffer-function 'my-display-buffer) Thanks for your support, Andrey Paramonov