From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Daniel Colascione <dancol@dancol.org>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master 6fdc3fa: Support terminal focus notifications
Date: Sat, 09 Jun 2018 11:33:20 -0400 [thread overview]
Message-ID: <jwvfu1wm10t.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <20180609055213.B7E0920498@vcs0.savannah.gnu.org> (Daniel Colascione's message of "Sat, 9 Jun 2018 01:52:13 -0400 (EDT)")
> +(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
next parent reply other threads:[~2018-06-09 15:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20180609055212.3056.85949@vcs0.savannah.gnu.org>
[not found] ` <20180609055213.B7E0920498@vcs0.savannah.gnu.org>
2018-06-09 15:33 ` Stefan Monnier [this message]
2018-06-09 15:49 ` [Emacs-diffs] master 6fdc3fa: Support terminal focus notifications dancol
2018-06-09 19:05 ` Stefan Monnier
2018-06-09 20:19 ` dancol
2018-06-09 23:10 ` Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvfu1wm10t.fsf-monnier+emacsdiffs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=dancol@dancol.org \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).