From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#45688: 28.0.50; New action for display-buffer? Date: Thu, 28 Jan 2021 20:46:45 +0200 Organization: LINKOV.NET Message-ID: <87v9bhar96.fsf@mail.linkov.net> References: <87im8a1dff.fsf@gnus.org> <83y2h6133r.fsf@gnu.org> <8735ze0yp7.fsf@gnus.org> <83o8i20w1f.fsf@gnu.org> <87lfd5yny9.fsf@gnus.org> <87ft3cpoy9.fsf@mail.linkov.net> <6859d73c-da77-af77-481f-3046d5195d53@gmx.at> <87pn2dvxqi.fsf@gnus.org> <87v9c2rpfi.fsf@mail.linkov.net> <87mtx4c04z.fsf@mail.linkov.net> <87eei8srpk.fsf@mail.linkov.net> <81573b87-1867-f147-a6d3-2abce816e9dd@gmx.at> <878s8e90yk.fsf@mail.linkov.net> <83d32898-50dd-f481-8ff6-b78f012bb81d@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3840"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: Lars Ingebrigtsen , 45688@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 28 20:00:23 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5CWk-0000rI-Ps for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Jan 2021 20:00:22 +0100 Original-Received: from localhost ([::1]:41448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5CWf-0004xU-Sa for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Jan 2021 14:00:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5CUW-0002QD-Sc for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 13:58:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38627) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5CUU-00026e-0P for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 13:58:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l5CUU-0007iJ-0A for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 13:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Jan 2021 18:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45688 X-GNU-PR-Package: emacs Original-Received: via spool by 45688-submit@debbugs.gnu.org id=B45688.161186023929593 (code B ref 45688); Thu, 28 Jan 2021 18:58:01 +0000 Original-Received: (at 45688) by debbugs.gnu.org; 28 Jan 2021 18:57:19 +0000 Original-Received: from localhost ([127.0.0.1]:50172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5CTn-0007hF-HH for submit@debbugs.gnu.org; Thu, 28 Jan 2021 13:57:19 -0500 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:33749) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5CTh-0007gk-H4 for 45688@debbugs.gnu.org; Thu, 28 Jan 2021 13:57:14 -0500 X-Originating-IP: 91.129.98.64 Original-Received: from mail.gandi.net (m91-129-98-64.cust.tele2.ee [91.129.98.64]) (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 8E171FF80C; Thu, 28 Jan 2021 18:57:04 +0000 (UTC) In-Reply-To: <83d32898-50dd-f481-8ff6-b78f012bb81d@gmx.at> (martin rudalics's message of "Thu, 28 Jan 2021 10:40:38 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198815 Archived-At: > Thanks. This strongly needs an example in the Elisp manual somewhere in > the "Handle subsequent invocations of ‘display-buffer’" area. Could you > polish up the one using 'display-buffer-reuse-previous-window', > explaining how it is "more deterministic" in flavor? And in a way that > makes it directly executable by the reader? Then we could also try to > add the more chaotic approach Lars takes via 'get-lru-window' there. Maybe something: diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index f305d1a8ee..60f1cc1bc5 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi @@ -3840,6 +3840,9 @@ The Zen of Buffer Display popping up a new window. You have to make sure that another window in the same combination can be shrunk instead, though. +@item +Using @code{previous-window} will try to display the buffer more deterministically. + @item Side windows (@pxref{Side Windows}) can be used for displaying specific buffers always in a window at the same position of a frame.