From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#45688: 28.0.50; New action for display-buffer? Date: Thu, 07 Jan 2021 12:45:46 +0100 Message-ID: <87h7ntynpx.fsf@gnus.org> References: <87im8a1dff.fsf@gnus.org> <6d33f679-925e-78ee-2055-0520538f48f5@gmx.at> <87ble217jy.fsf@gnus.org> <8bc28c07-a4af-f58d-97f5-9d0a89ff58fe@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15929"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 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 07 12:47:27 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 1kxTlH-0003rI-2k for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Jan 2021 12:47:27 +0100 Original-Received: from localhost ([::1]:46736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxTlF-0005F7-Tw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Jan 2021 06:47:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxTks-0005DL-Dw for bug-gnu-emacs@gnu.org; Thu, 07 Jan 2021 06:47:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35154) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxTks-0004Xk-5O for bug-gnu-emacs@gnu.org; Thu, 07 Jan 2021 06:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kxTks-0008Pv-22 for bug-gnu-emacs@gnu.org; Thu, 07 Jan 2021 06:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Jan 2021 11:47:02 +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.161001996332271 (code B ref 45688); Thu, 07 Jan 2021 11:47:02 +0000 Original-Received: (at 45688) by debbugs.gnu.org; 7 Jan 2021 11:46:03 +0000 Original-Received: from localhost ([127.0.0.1]:46699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxTju-0008ON-U6 for submit@debbugs.gnu.org; Thu, 07 Jan 2021 06:46:03 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:36640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxTjt-0008Ni-3l for 45688@debbugs.gnu.org; Thu, 07 Jan 2021 06:46:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=PbkqLwMabPp3nCEkNlQ55SZnbWlmKpJPqCzBevq6zuw=; b=GFa7/qyHJ2/fRgRRAT+s7CEkPU dRg/8R1cHnR0wt4BvDKX1uDekDBDyMwL5msSbstGbVjk/UDyd9tyRm6TXl9AiFmi/FRZBMZMXEmSL MWOAUwxWpPfJw4yGxyAXZkxORj320FrdrXICiw7Hs0XYIJG4hOPL4q+wabc8oe3iglC8=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxTjf-000205-Ox; Thu, 07 Jan 2021 12:45:54 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEX03LSVgWXr2rwU DgheTjv////FslQwAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UBBwsVA4gDadcAAAGSSURBVDjLfZSL ba0wDIah6gC1yQBNYIEce4HE3n+m2uYQ0it6LUUR+cjvJyzLn7ZCBvC1Anz9Rh/ftpbvh0t240kL M5lhmS1A2RzU8+QAvIE44DjPDO0GRENrr5NUPkH3A2H8DZQDZFIoOID50PQGUHKfnDeAAAdpOXCS 6keJqHYL7ph9VCgRzmbpjHDXZElAPoMizq8BItZQzkr16EPKK8Lqj6BS97sku50LRz1UmvQ8AY1S baIta4cbsAQgA0XB6/v2oQF2FuUJrJY4eY02NsmiaYDohiiwbQZae4PPANqS+g6cFPEGppVFSCwM SAinlAZgEK+NmDfUE0Ail4dmO3trGp/AmuHvYknUvGdyAVXLgyyWjVLEofUCPj/N5+4cJKp3Htar ttNlrykPae0YoM8JYsEBKk43sNSYYYicpszxiJikC6Wab8CweZp02At98mHTcV70ofuniNfM7zam M7gC+gu8TKo8AYaij4BsdFN/ArUAJnwADPZ5pqtRbgrDlvVr/DNK8XUN5//tozz9XpYf84OP1yk2 CiQAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDEtMDdUMTE6MjE6MDIrMDA6MDBRB4E6AAAAJXRF WHRkYXRlOm1vZGlmeQAyMDIxLTAxLTA3VDExOjIxOjAyKzAwOjAwIFo5hgAAAABJRU5ErkJggg== X-Now-Playing: Jon Eberson Group's _Stories_: "So Much Better" In-Reply-To: <8bc28c07-a4af-f58d-97f5-9d0a89ff58fe@gmx.at> (martin rudalics's message of "Wed, 6 Jan 2021 16:52:58 +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:197472 Archived-At: martin rudalics writes: > You really have to "use" such a window which means selecting it. Just > displaying a buffer in a window does not count as using it. Ah, thanks. That makes sense; I'll try playing around with a new action that calls display-buffer-use-some-window, but marks the window as having been used. I've never actually encountered this bit of Emacs before -- I'm just using the defaults for all the window stuff. :-) I think the doc string for `display-buffer' is pretty intimidating now, and seems more geared towards programmers than usage now. Would it make sense to rearrange it a bit? That is, start off with something like: ----- Display BUFFER-OR-NAME in some window, without selecting it. To change what window is used, set `display-buffer-overriding-action' to a list containing one or more of the following functions: Action functions and the action they try to perform are: =E2=80=98display-buffer-same-window=E2=80=99 -- Use the selected window. =E2=80=98display-buffer-reuse-window=E2=80=99 -- Use a window already show= ing the buffer. =E2=80=98display-buffer-in-previous-window=E2=80=99 -- Use a window that d= id show the buffer before. etc etc, and then give the details about ACTION and the rest? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no