From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] frame.c: focus hooks Date: Mon, 18 Nov 2013 08:32:35 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1384781576 28139 80.91.229.3 (18 Nov 2013 13:32:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Nov 2013 13:32:56 +0000 (UTC) Cc: Brian Jenkins , emacs-devel To: Bozhidar Batsov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 18 14:32:56 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ViOwh-0000UA-Mv for ged-emacs-devel@m.gmane.org; Mon, 18 Nov 2013 14:32:55 +0100 Original-Received: from localhost ([::1]:43294 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViOwh-0005iq-8D for ged-emacs-devel@m.gmane.org; Mon, 18 Nov 2013 08:32:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViOwW-0005Z4-Bo for emacs-devel@gnu.org; Mon, 18 Nov 2013 08:32:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ViOwO-0002XC-3j for emacs-devel@gnu.org; Mon, 18 Nov 2013 08:32:44 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:32159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViOwN-0002X6-Vr for emacs-devel@gnu.org; Mon, 18 Nov 2013 08:32:36 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFMCovV/2dsb2JhbABEvw4Xc4IeAQEEAVYWCgMFCws0EhQYDSSIHgbBLZEKA4hhnBmBXoMV X-IPAS-Result: Av4EABK/CFFMCovV/2dsb2JhbABEvw4Xc4IeAQEEAVYWCgMFCws0EhQYDSSIHgbBLZEKA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="38497043" Original-Received: from 76-10-139-213.dsl.teksavvy.com (HELO pastel.home) ([76.10.139.213]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 18 Nov 2013 08:32:35 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 15B5D6338E; Mon, 18 Nov 2013 08:32:35 -0500 (EST) In-Reply-To: (Bozhidar Batsov's message of "Sun, 17 Nov 2013 20:29:52 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:165322 Archived-At: > I welcome your idea! In fact I've been thinking for quite some time we > needed something like this. I don't like the names of the hooks, however, > since they don't seem particularly standard - usually the terminology used > with focus is "focus gained" and "focus lost" (or "on focus" and "on lose > focus"). I've never heard "gain focus". I think focus-in-hook and focus-out-hook look fine to me. At least, "FocusIn" and "FocusOut" are the terms used by the X library, and so far Emacs has followed this naming convention. Stefan