From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "John Wiegley" Newsgroups: gmane.emacs.devel Subject: Re: We should decouple focus and frame switching Date: Sun, 10 Jun 2018 16:16:01 -0700 Message-ID: References: <6d1bc582-29be-5df7-56b1-e82305ee477f@dancol.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1528672507 28740 195.159.176.226 (10 Jun 2018 23:15:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 10 Jun 2018 23:15:07 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) Cc: Emacs developers To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 11 01:15:03 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fS9Y6-0007Ne-Iy for ged-emacs-devel@m.gmane.org; Mon, 11 Jun 2018 01:15:02 +0200 Original-Received: from localhost ([::1]:45462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fS9aD-0002iN-Hn for ged-emacs-devel@m.gmane.org; Sun, 10 Jun 2018 19:17:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fS9ZM-0002iG-Ev for emacs-devel@gnu.org; Sun, 10 Jun 2018 19:16:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fS9ZJ-0006MS-9A for emacs-devel@gnu.org; Sun, 10 Jun 2018 19:16:20 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fS9Z7-0006G1-UN; Sun, 10 Jun 2018 19:16:05 -0400 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:42779) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1fS9Z7-0006r3-Gy; Sun, 10 Jun 2018 19:16:05 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 084D021B87; Sun, 10 Jun 2018 19:16:05 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 10 Jun 2018 19:16:05 -0400 X-ME-Sender: Original-Received: from localhost (76-234-69-149.lightspeed.frokca.sbcglobal.net [76.234.69.149]) by mail.messagingengine.com (Postfix) with ESMTPA id A45C610255; Sun, 10 Jun 2018 19:16:04 -0400 (EDT) In-Reply-To: <6d1bc582-29be-5df7-56b1-e82305ee477f@dancol.org> (Daniel Colascione's message of "Sun, 10 Jun 2018 11:07:09 -0700") Mail-Followup-To: Daniel Colascione , Emacs developers X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:226172 Archived-At: >>>>> "DC" == Daniel Colascione writes: DC> How about this? We'll add a frame-focused-p function that returns nil, t, DC> or 'unknown, and wire up focus-in-hook and focus-out-hook to run only when DC> we actually observe a window system focus change, letting the frame switch DC> stuff run completely independently. This way, we'll be able to write lisp DC> (as I've been trying to do) that reflects the real window system focus. DC> Sound good? Why might we not want this? -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2