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#67993: Selecting buffer automatically Date: Mon, 15 Jan 2024 19:56:18 +0200 Organization: LINKOV.NET Message-ID: <8634uyy8n0.fsf@mail.linkov.net> References: <86zfy0g641.fsf@mail.linkov.net> <865y09nmp0.fsf@mail.linkov.net> <4659812e-c023-492a-b810-d9d3cada1ade@gmx.at> <861qauxswd.fsf@mail.linkov.net> <86cyudjdmb.fsf@mail.linkov.net> <1ea06837-0d7e-46ba-849c-a4bf42929c40@gmx.at> <86frz6o832.fsf@mail.linkov.net> <942ced7b-53f8-4b33-9280-6cdba4b6ed6b@gmx.at> <867ckhqgqp.fsf@mail.linkov.net> <86y1cvkpm3.fsf@mail.linkov.net> <2edb97dc-bbf6-4020-b4ae-8188082c80c6@gmx.at> <8634uzg6zc.fsf@mail.linkov.net> <49754b09-624a-42d7-a4c6-060d562b5700@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21223"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 67993@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 15 18:58:21 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 1rPRE3-0005Ii-Fa for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Jan 2024 18:58:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPRDp-0000rz-5G; Mon, 15 Jan 2024 12:58:05 -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 1rPRDm-0000qY-RE for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2024 12:58:02 -0500 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 1rPRDm-0002l0-JB for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2024 12:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rPRDm-00052N-EV for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2024 12: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: Mon, 15 Jan 2024 17:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67993 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 67993-submit@debbugs.gnu.org id=B67993.170534144819319 (code B ref 67993); Mon, 15 Jan 2024 17:58:02 +0000 Original-Received: (at 67993) by debbugs.gnu.org; 15 Jan 2024 17:57:28 +0000 Original-Received: from localhost ([127.0.0.1]:46803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPRDD-00051W-N2 for submit@debbugs.gnu.org; Mon, 15 Jan 2024 12:57:27 -0500 Original-Received: from relay5-d.mail.gandi.net ([2001:4b98:dc4:8::225]:60015) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPRD9-000512-RV for 67993@debbugs.gnu.org; Mon, 15 Jan 2024 12:57:24 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 453531C0006; Mon, 15 Jan 2024 17:57:14 +0000 (UTC) In-Reply-To: <49754b09-624a-42d7-a4c6-060d562b5700@gmx.at> (martin rudalics's message of "Mon, 15 Jan 2024 11:23:14 +0100") X-GND-Sasl: juri@linkov.net 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:278294 Archived-At: > + `post-command-select-window' -- A non-nil value means that after the > + current command is executed and the hook `post-command-hook' is called, > + the window displayed by this function will be selected. A nil value > + means that if functions like `pop-to-buffer' selected another window, > + at the end of this command that window will be deselected, and the > + window that was selected before calling this function will remain > + selected. > > I'd say "will be usually selected" and "will be usually deselected". > For example, (post-command-select-window . nil) will effectively select > the window that was selected before 'display-buffer' was called, The docstring above says the same: "the window that was selected before calling this function will remain selected" > regardless of which other window were selected after the > 'display-buffer'. These clarifications could be added to the docstring as well: "the window that was selected before calling this function will remain selected regardless of which other windows were selected later with other calls of 'display-buffer'."