emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master 6fdc3fa: Support terminal focus notifications


From: Stefan Monnier
Subject: Re: [Emacs-diffs] master 6fdc3fa: Support terminal focus notifications
Date: Sat, 09 Jun 2018 11:33:20 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> +(defun xterm-handle-focus-in ()
> +  (interactive)
> +  (handle-focus-in))
> +(defun xterm-handle-focus-out ()
> +  (interactive)
> +  (handle-focus-out))

Aka

    (defalias 'xterm-handle-focus-in  #'handle-focus-in)
    (defalias 'xterm-handle-focus-out #'handle-focus-out)

right?

> +(define-key global-map [xterm-focus-in] #'xterm-handle-focus-in)
> +(define-key global-map [xterm-focus-out] #'xterm-handle-focus-out)

I think this deserves a comment explaining why we don't use the
pre-existing `focus-in` and `focus-out` events and why we bind our
events in global-map rather than in special-map (as is done for
`focus-in/out` events).


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]