From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: Window focus event Date: Fri, 17 Dec 2021 14:43:18 +0100 Message-ID: <87pmpve495.fsf@web.de> References: <874k79q8ej.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28065"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Stefan Monnier , "emacs-devel@gnu.org" To: lxsameer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 17 14:50:22 2021 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 1myDcs-00078m-2r for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Dec 2021 14:50:22 +0100 Original-Received: from localhost ([::1]:43400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myDcp-0000o2-K2 for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Dec 2021 08:50:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myDWI-0002Q2-Uf for emacs-devel@gnu.org; Fri, 17 Dec 2021 08:43:35 -0500 Original-Received: from mout.web.de ([212.227.15.4]:38275) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myDWG-0005mz-Vs for emacs-devel@gnu.org; Fri, 17 Dec 2021 08:43:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1639748600; bh=yoPib6jVHUHrD1YbK6x3Q5cIBUIimVVJle8wP0gaH48=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=SBEfB8CcDgIVY7ubB0Hzy82JvNmU1qudIBN6ZS5ugbkOVkAheuNSciA6fwvnVK2cd +PckcFY2JASV9l3bd/ZxwJMDYU4Ito58jkF6kbTxwqMEw2Uaidzaflz17gMc8QH+0/ EsfEszHGqBh5Txg0B1VbQNOG57LcR9llPe4cDe2Q= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([92.208.225.87]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MVrbl-1n6IV83xdV-00Rh5s; Fri, 17 Dec 2021 14:43:20 +0100 In-Reply-To: (lxsameer@lxsameer.com's message of "Fri, 17 Dec 2021 10:28:59 +0000") X-Provags-ID: V03:K1:FyIUgSXeB05tSLqHkTFQ69aJhWd9bOY/rAOtUECafRnQtQlbt1J 8AdK9GSsXh7sU7BPhIN5reZAiKBV8CVEFWpoyDyx2suZVC4BOE25cN7FJAtrLjPupyCHQxM cHBgNHV/0ooNKWfzdYn9Nw+BWMXbEYKN9qJ1plfxQ2/PC2uZfZqGbTGvP8dc4XEvTGvde+c 7Lz/FjyOI5Hj7pfjFXF+g== X-UI-Out-Filterresults: notjunk:1;V03:K0:pyj08UejRPI=:eRMh0qQgwGHRi3VLtnYKY8 8+EKqEtIWelLM5gI+RVL6apI1k5vhkd/hpxhOODsUIVduMeaAykkELAoYrWkBjQ/BNnwLn1wW SiP1SC//0S38ZmRx6agV12Hzxqx9rmTkzgAno0X4fphiN3P4I5B9SOGP/sDcTZxL2vAShagD8 /qjGR51pZkUUcxzSH42lbT3zhhlwzgaqxw7RJEbQvjND+y0GMcM5GdLmkiDlQ52baJg+T6BEM 9n6hdTZ1NtscDtrIHzWyBpuG20ee1CG58II/BsOV3LLeIx1JRCsfrWqvycQZ4zyu/0w/JPc0M XSW+WH7GQOTVqL6sf0qsIyI+t0KDTJ5ZhpsrX/nEYyADzvjxCCctsNFG/NqvjRM098xn2s5G6 uy8h3/IPIlFO7TonOFm7pzr4cm9UA104OgKaXfX2+qlCJauf/H8KBYK2c3ZxGt/NX7N+NH7dB 9PAta/8Q1iOO/4MqbsDra9S1yvgiHK339bYqR8A/n0OgTzmitwU8Z1Vyp/wtZoCKnchV14Fvt BcYDpN74HmIhjaaBd8v/0SJ2igF9REChSBb7a8i5SosIEI4ZIvlAjtgtqnLQ58JGWM2YPVxLT Lm7iRuRmL0oHgx6twk6373jbSNaM09knGBjlHn2VczGIb1vWDRGQAcYEckul7DTAN17pSyJpk 9d/aDhSdk/oYDnnKYvvYhGKr9CVPmUEV6ecVRF/EuHszpL7fDmxKuhWG32dF68jKqSschSuE3 AQd5uCGkEAXR7ZfSe12fovURwxYFdv2gfbHtqj3CLhcw2O+9CH7QURrtAqrTSfAIl+SvPfyB Received-SPF: pass client-ip=212.227.15.4; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.devel:282216 Archived-At: lxsameer writes: > Thanks folks, In the deprecation message of the `focus-in-hook` > family, it refers to `after-focus-change-function`. Isn't it better to > change that message to include these two hooks as well? AFAIU, input focus is a per frame concept. Window selection is something different. There are overlaps (the selected window is typically in the frame that has input focus), but I don't see that `window-configuration-change-hook' is a replacement for `focus-in-hook' like `after-focus-change-function' is. You can change the selected window without changing focus. It can be that no frame has input focus. If a frame gets focus, that doesn't necessarily change the window configuration, etc. I hope my mental model is correct. Is there anything you could do using `focus-in-hook' that you can't do with `after-focus-change-function'? Michael.