From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames Date: Sun, 29 Jan 2023 20:48:23 +0200 Message-ID: <83357t6utk.fsf@gnu.org> References: <834jsccepb.fsf@gnu.org> <867cx5cksc.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8994"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudalics@gmx.at, tgbugs@gmail.com, emacs-devel@gnu.org, larsi@gnus.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 29 19:49:10 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pMCjl-00026y-Lq for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Jan 2023 19:49:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMCjF-0007W8-K7; Sun, 29 Jan 2023 13:48:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMCjB-0007Vq-GS for emacs-devel@gnu.org; Sun, 29 Jan 2023 13:48:34 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMCjA-00015r-Gn; Sun, 29 Jan 2023 13:48:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=gwNRX8P5uzuHtubYO3ejFP8AD3wF1FLatNVvhmftw6E=; b=naxBHU+XO4Y9 fXqnJHJ7sC3ou2HRkfJVJDp5t9PGzvd915FCxie5tAaCjZ1+BaR+2kNgE5GmDpyY64U/KQSFXmBJk C7A22jBg5IZMBIAl3t8RX2QkJbEStV/y+2zWJjZzEpquh1MGEPT0N7oGMFYeC3WPv5MSxEyNORKBr vv+TED9u2dlInTBshx/cQVYO6GVkN+QGDpeqUC1P0QI855AAVLwsgkqj0YM7fKNqAWs6ckV/Vu15T EBJdmD0dZ/TEA8sh9JapjZBEMRAAoHrWZKkZXSFWaXRCouFcRaypIk5L1qx896p9NXHOQWmSEggjT v88OxCt0HTRw+Tz8wV+ytw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMCj9-00047h-OZ; Sun, 29 Jan 2023 13:48:32 -0500 In-Reply-To: <867cx5cksc.fsf@mail.linkov.net> (message from Juri Linkov on Sun, 29 Jan 2023 19:48:35 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302757 Archived-At: > From: Juri Linkov > Cc: Eli Zaretskii , Tom Gillespie , > emacs-devel@gnu.org, larsi@gnus.org > Date: Sun, 29 Jan 2023 19:48:35 +0200 > > > One thing we could do is to add a new action alist entry say > > 'bump-use-time'. People could use this to indicate that they want to > > display several buffers in a row. 'window--display-buffer' would then > > bump the use time of the window it uses when ALIST contains that entry. > > I have no idea how this would work in practice. > > I think this is a nice idea. Another action alist entry could > also define whether to use 'lru' or 'mru', thus obsoleting > display-buffer-use-least-recent-window and avoiding > other code duplication. Rather than obsoleting it, I prefer to remove it. The problems pointed out by Martin quite clearly mean that no one uses it seriously. But I still hope we could change the implementation to avoid the problems and keep the name, so solutions which do that are better IMO.