From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70949: display-buffer-choose-some-window Date: Mon, 20 May 2024 10:01:13 +0200 Message-ID: <73251208-1e4c-4231-ae58-faf82363f241@gmx.at> References: <86jzjwqqmd.fsf@mail.linkov.net> <8d1947c7-a4d1-4920-8638-f8ae17acfe65@gmx.at> <86r0e32fnj.fsf@mail.linkov.net> <867cft0xt2.fsf@mail.linkov.net> <86ed9xvz3o.fsf@mail.linkov.net> Reply-To: martin rudalics Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23178"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 70949@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 20 10:03:25 2024 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 1s8xzQ-0005jd-9b for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 May 2024 10:03:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8xz6-0002yA-HR; Mon, 20 May 2024 04:03:04 -0400 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 1s8xy2-0002td-7T for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 04:01:58 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s8xy1-0004HZ-VK for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 04:01:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8xy6-0006CB-6d for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 04:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 May 2024 08:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70949 X-GNU-PR-Package: emacs Original-Received: via spool by 70949-submit@debbugs.gnu.org id=B70949.171619208823789 (code B ref 70949); Mon, 20 May 2024 08:02:02 +0000 Original-Received: (at 70949) by debbugs.gnu.org; 20 May 2024 08:01:28 +0000 Original-Received: from localhost ([127.0.0.1]:40814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8xxY-0006Bd-I8 for submit@debbugs.gnu.org; Mon, 20 May 2024 04:01:28 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:46245) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8xxV-0006BP-AX for 70949@debbugs.gnu.org; Mon, 20 May 2024 04:01:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1716192074; x=1716796874; i=rudalics@gmx.at; bh=Efqt9uidzkBRnAYdhrqrlJUxe3uxpPToysfbC46gd9c=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=DK8wXqLxLGOggu2/2iTza2YQMisclww6r+4h0ZbHaCUiv1atXra4Isvh4/YFK8VN zFTT9QF1nDajvcXEA84OIAwsA/mVcaYxQFA8S0x0x5JG2vf2/LLltyhWZjoLljkLU qwqc2uDMMZowg3xJa0RtvVNvg2+sj9lDiEmgcX25DXewBv4fdFxXYRcwyX/GNXTNw clYE9EGc6Hm/ojAABvFZ0R6ifDZHeG6ZcYCr9NKIuJ0UTb2BMfIsLNUvCgT5OJumm zo5WapIpAIM0iNbHxTvmwEk2zzGR9q9rG2GT0lKuraQ3MEXHdyEjGwQv6ZtHLYVOK 7jXcaZMhucz2b1/nqA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([213.142.97.251]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N8GMk-1se1Ri0cDo-017TTN; Mon, 20 May 2024 10:01:14 +0200 Content-Language: en-US In-Reply-To: <86ed9xvz3o.fsf@mail.linkov.net> X-Provags-ID: V03:K1:x31SpU2t0BaCi+z5+yP8ZqLwgI59Hi8BruMKTl9zpe3iFFRi3a3 MGgpMrwuSgETyptcJGNp5dW1aTW86fW2kHEnOEVkqyFLwLgGe3ZDFs8dXuBialqvj4eGuP7 LW7cFinxxaVY8959eCB87Hh5bJugGnMBZ+15YZIzaYBv7j9BaYYDAhVxBPIDX2RMu9PQ3Ll OkkwwkgCycF9F5MeeXcCA== UI-OutboundReport: notjunk:1;M01:P0:2d9FGBpnnvc=;O44XHnNfIYBI7La9SqT3QqOSxTt Z3BXofan+5O9wJOfHhfkHPdkY0IO8/PZB3JR9JzR8GThVCI0VbW4iOgPHT+sfbs6tcXOvxNsk 5ABdBTNbiLlUdih9/0UVEibRRTWt2eURqxVU2GHUACg+b3lYsHXFq/NGn4nb+fgJ73jOLed4D 7QRBHlnLYxlwVJNGjQq6juSjRR3dTYm+p5GEULNJa6zvJR9YDzgDFbuyqym6QM/mcx8wGDC+m UPZxfzkkCJg/+AaKVO2hwZPGOhvcjqwoW+FYHPP5W0+sAl8K++HKUfPTxKuD+IEBowgjwu6Af /SDyZEdgB9htC0KwQ5UiVWQSY2q6PYWgp48NRwQ3drRdQ7BP0wHgs7LubAbSFKlsQW35DVNAe SAlA3UBPS4YWhKj76ZbsJbPj0lFjZCGfJbsiP3hrjGPMu/y+oTmw7puytWYuArRgF+j4ZXHEW LOAN6MNoUiCryJIZpEBuF1JvHgZSPAfdAuO0aANqIKNuFIaEi2uKpt5ZHtGWWLc5oYlALII8f BfmifGQvPNvyz0cp3whCd0oeG94hkYYDJG6ObhDs+KGJgnRe54Hbq5n5DPx+TwdClaHLm4bCd 8y5PCF36q4KtclCYbgeC7+vzHTPgQpYlvndmlJOMTI1qrjErUAzQWJg6dIlI2XK1NLzrEJEQ8 uB74EhwC1OuW8oYggKYIkdoNZVzWiOKkXyfHB91hQXWA5Gga7uL/rDobZTuG8cAOD6xf2ng47 jF3eVA5kYaYcPEPA0bmv97a8gCADb+ByWiDVn5eukKjy3DAEk3MASry1tS8ttsn6DRc7eLik 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285466 Archived-At: > + `display-buffer-use-some-window' should choose. The possible choices > + are `lru' or nil (the default) to select the least recently used window, > + and `mru' to select the most recently used window . When a function, it I'd say "It can also be a function that takes two arguments ..." > + takes two arguments: a buffer and an alist, and should return the window > + where to display the buffer. When the value is `lru', it avoids > + selecting windows that are not full-width and windows on another frame. > + When the value is `mru', it avoids selecting an already selected window > + and windows on another frame. I'd say "..., it does not consider the selected window and windows on any frame but the selected one." But the more important thing is to tell users how this can help to fix problems like the one that triggered this thread. A short description in the doc-string and a more elaborated one with an example in the Elisp manual in the description of 'display-buffer-use-some-window' and in the "Action Alists for Buffer Display" section. martin