all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: lxsameer <lxsameer@lxsameer.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Michael Heerdegen <michael_heerdegen@web.de>,
	"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: Window focus event
Date: Fri, 17 Dec 2021 10:28:59 +0000	[thread overview]
Message-ID: <aP2Gb1GTGygdjLpnkfZ7L3W2Bp3_QyLdlCiaRgmmoe-Jfj5aFen7Lhs5ZLGf1uidpCPKRzh0ad5LhdyujusiFB_OImP4HFg2Roen4D26AaQ=@lxsameer.com> (raw)
In-Reply-To: <jwvo85gk4hq.fsf-monnier+emacs@gnu.org>


[-- Attachment #1.1: Type: text/plain, Size: 908 bytes --]



‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Thursday, December 16th, 2021 at 3:30 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

> > Regarding the question: I would say `window-configuration-change-hook'
> 

> > or `window-state-change-hook' are the best fitting hooks for the task.
> > 

> > May depend on your use case.
> 

> Indeed.
> 

> > Note that Emacs sometimes internally selects windows temporarily
> > 

> > (`with-selected-window'), so doing something for every window selection
> > 

> > is most of the time not what you want.
> 

> Note that neither of the above two hooks are run during
> 

> `with-selected-window`, AFAIK.
> 

> Stefan

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?

[-- Attachment #1.2: publickey - lxsameer@lxsameer.com - 0x037C595D.asc --]
[-- Type: application/pgp-keys, Size: 671 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

  reply	other threads:[~2021-12-17 10:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-14 20:31 Window focus event lxsameer
2021-12-16  8:08 ` Michael Heerdegen
2021-12-16 14:30   ` Stefan Monnier
2021-12-17 10:28     ` lxsameer [this message]
2021-12-17 13:43       ` Michael Heerdegen
2021-12-17 14:28         ` lxsameer
2021-12-17 19:51       ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='aP2Gb1GTGygdjLpnkfZ7L3W2Bp3_QyLdlCiaRgmmoe-Jfj5aFen7Lhs5ZLGf1uidpCPKRzh0ad5LhdyujusiFB_OImP4HFg2Roen4D26AaQ=@lxsameer.com' \
    --to=lxsameer@lxsameer.com \
    --cc=emacs-devel@gnu.org \
    --cc=michael_heerdegen@web.de \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.