From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#35592: Use display-buffer-in-direction for completion-like windows Date: Tue, 21 May 2019 23:18:30 +0300 Organization: LINKOV.NET Message-ID: <87ef4ry31l.fsf@mail.linkov.net> References: <87woj4r5xx.fsf@mail.linkov.net> <6d8899a4-18be-56cb-d820-7906d7ed0ee9@gmx.at> <8736lq54wf.fsf@mail.linkov.net> <52083e2f-6320-a39c-feda-352d414f4690@gmx.at> <87d0kswz0t.fsf@mail.linkov.net> <44dbff2a-8683-455e-84d7-e9202ef58056@gmx.at> <878svfjtke.fsf@mail.linkov.net> <83woiyg9ek.fsf@gnu.org> <87lfzcbtue.fsf@mail.linkov.net> <838svccsk0.fsf@gnu.org> <87pnonwstv.fsf@mail.linkov.net> <87pnoeqo68.fsf@mail.linkov.net> <557b5314-7d7a-5375-0829-1975393b1e7e@gmx.at> <871s0samni.fsf@mail.linkov.net> <2ab60f7d-764b-3d14-ba6a-c53e712ed71e@gmx.at> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="111192"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 35592@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 21 22:21:15 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTBG6-000SmF-KN for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 May 2019 22:21:15 +0200 Original-Received: from localhost ([127.0.0.1]:59015 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTBG5-0005GT-JD for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 May 2019 16:21:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTBFv-0005Fo-Po for bug-gnu-emacs@gnu.org; Tue, 21 May 2019 16:21:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hTBFu-0007kn-IG for bug-gnu-emacs@gnu.org; Tue, 21 May 2019 16:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55767) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hTBFu-0007jo-EL for bug-gnu-emacs@gnu.org; Tue, 21 May 2019 16:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hTBFu-0001fj-8n for bug-gnu-emacs@gnu.org; Tue, 21 May 2019 16:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 May 2019 20:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35592 X-GNU-PR-Package: emacs Original-Received: via spool by 35592-submit@debbugs.gnu.org id=B35592.15584700326368 (code B ref 35592); Tue, 21 May 2019 20:21:02 +0000 Original-Received: (at 35592) by debbugs.gnu.org; 21 May 2019 20:20:32 +0000 Original-Received: from localhost ([127.0.0.1]:41078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hTBFQ-0001ee-HQ for submit@debbugs.gnu.org; Tue, 21 May 2019 16:20:32 -0400 Original-Received: from common.maple.relay.mailchannels.net ([23.83.214.38]:40415) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hTBFM-0001eQ-Tw for 35592@debbugs.gnu.org; Tue, 21 May 2019 16:20:29 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id CC659501F5F; Tue, 21 May 2019 20:20:27 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a9.g.dreamhost.com (100-96-14-60.trex.outbound.svc.cluster.local [100.96.14.60]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id BACE6502A15; Tue, 21 May 2019 20:20:26 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a9.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Tue, 21 May 2019 20:20:27 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Cooperative-Unite: 0e55307729eea373_1558470027099_96017372 X-MC-Loop-Signature: 1558470027098:1347015704 X-MC-Ingress-Time: 1558470027098 Original-Received: from pdx1-sub0-mail-a9.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a9.g.dreamhost.com (Postfix) with ESMTP id 4BC908046F; Tue, 21 May 2019 13:20:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=pcdib135eJW6fdQzIN83Sk1ebwY=; b= olUNb0SY55IXsfcAmS72/BNAL9YSERA9QCpIdzLsVJKLQ3I51V4Oat2gB8MCoKDv /AFAtGE84FRDvzpAM/1pzWMTzRqhs9/GxOz7fPi4j29v97pktitArIurfRMqEAAI 0etq7sgtdrt07fM6Afv6o4WNdVo05+m334cLmcHhaEM= Original-Received: from mail.jurta.org (m91-129-96-230.cust.tele2.ee [91.129.96.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a9.g.dreamhost.com (Postfix) with ESMTPSA id 5709C80468; Tue, 21 May 2019 13:20:15 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a9 In-Reply-To: <2ab60f7d-764b-3d14-ba6a-c53e712ed71e@gmx.at> (martin rudalics's message of "Tue, 21 May 2019 09:32:43 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddruddutddgudeglecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehmtderredtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledrleeirddvfedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledrleeirddvfedtpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrthenucevlhhushhtvghrufhiiigvpedt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159616 Archived-At: --=-=-= Content-Type: text/plain > 'display-buffer-in-direction' doesn't yet process 'window-min-height' > (and 'window-min-width') entries correctly. I still have to set up > semantics for these ... Meanwhile I'm trying to use the new function and it works fine: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=display-buffer-in-direction-use.patch diff --git a/lisp/proced.el b/lisp/proced.el index ce379a7c6a..b05046bfbd 100644 --- a/lisp/proced.el +++ b/lisp/proced.el @@ -1744,9 +1744,10 @@ proced-with-processes-buffer (save-window-excursion ;; Analogous to `dired-pop-to-buffer' ;; Don't split window horizontally. (Bug#1806) - (let (split-width-threshold) - (pop-to-buffer (current-buffer))) - (fit-window-to-buffer (get-buffer-window) nil 1) + (display-buffer (current-buffer) + '(display-buffer-in-direction + (direction . bottom) + (window-height . fit-window-to-buffer))) ,@body)))) (defun proced-send-signal (&optional signal process-alist) diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index 713c8575c7..a6420c42c0 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el @@ -251,7 +251,10 @@ widget-choose (define-key map [?\M--] 'negative-argument) (save-window-excursion (let ((buf (get-buffer " widget-choose"))) - (fit-window-to-buffer (display-buffer buf)) + (display-buffer buf + '(display-buffer-in-direction + (direction . bottom) + (window-height . fit-window-to-buffer))) (let ((cursor-in-echo-area t) (arg 1)) (while (not value) --=-=-=--