Skip to content

focus-out-hook is obsolete variable as of 27.1 #8

@choffee

Description

@choffee

Hi,

Just to note that the focus in and out hooks seem to be depreciated in 27.1. I think that the after-focus-change-function was only introduced in 27.1 so might need an if on version number to support that.

Note that it still seems to work on 28 but just throws a warning.

New frame focus state inspection interface.
The hooks 'focus-in-hook' and 'focus-out-hook' are now obsolete.
Instead, attach to 'after-focus-change-function' using 'add-function'
and inspect the focus state of each frame using 'frame-focus-state'.
https://www.masteringemacs.org/article/whats-new-in-emacs-27-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions