From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.devel Subject: Fwd: [PATCH] frame.c: focus hooks Date: Mon, 18 Nov 2013 16:20:27 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b2e4edae9041004eb743f5c X-Trace: ger.gmane.org 1384784432 31353 80.91.229.3 (18 Nov 2013 14:20:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Nov 2013 14:20:32 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 18 15:20:38 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 1ViPgr-0005i3-Lu for ged-emacs-devel@m.gmane.org; Mon, 18 Nov 2013 15:20:37 +0100 Original-Received: from localhost ([::1]:44066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViPgq-0003Sx-UM for ged-emacs-devel@m.gmane.org; Mon, 18 Nov 2013 09:20:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViPgk-0003Sr-A8 for emacs-devel@gnu.org; Mon, 18 Nov 2013 09:20:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ViPgi-0003RS-MB for emacs-devel@gnu.org; Mon, 18 Nov 2013 09:20:30 -0500 Original-Received: from mail-oa0-x22d.google.com ([2607:f8b0:4003:c02::22d]:39553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViPgi-0003RN-G0 for emacs-devel@gnu.org; Mon, 18 Nov 2013 09:20:28 -0500 Original-Received: by mail-oa0-f45.google.com with SMTP id o6so733578oag.18 for ; Mon, 18 Nov 2013 06:20:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=/6Xha5b4F5lspqudn86kp63V2kt/PAYDhOjERDHD3nI=; b=NX8Yo4TNqEINCqHlbXWrmtECbYtZp3d1frzk7UaTXIkqUDTmpVNjnrpZt1IEeBmg1h 5D69zaopKp9Akqx375fX9BuudakVgncI0j52w5YAK0TLw4e7j5+hgJulfrGJjF1hHA2z ru2XGtlq2ZzEhZ+87WN7fepib4j/W/T1+KxEK8Wqugg9EqtGP0vuAYa9J73BnuygLoJ3 E1+AB3q6o6kxgszCgtUtisO/MOWMxB8tDqz2IAuXTHpkBowaqPCfrL4BBIMG9YllUfZc bq9HFpAFtLjYW6p0hzSeisUtbTDHQQdzC8EG+XNoC2gCIcreOvY1ZEdT0klp1j8Z09We DLsw== X-Received: by 10.182.80.196 with SMTP id t4mr20403452obx.1.1384784427810; Mon, 18 Nov 2013 06:20:27 -0800 (PST) Original-Received: by 10.76.21.207 with HTTP; Mon, 18 Nov 2013 06:20:27 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: yiWhiJU0H1BNzaNol-S_35h79P8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c02::22d 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:165326 Archived-At: --047d7b2e4edae9041004eb743f5c Content-Type: text/plain; charset=UTF-8 That's the terminology used in several GUI libraries (and in client-side web) when you want to listen for focus events. Anyways, the name is not particularly important - if X is using "FocusIn" and "FocusOut" and Emacs uses the X terminology that's fine. On 18 November 2013 15:32, Stefan Monnier wrote: > > 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 > --047d7b2e4edae9041004eb743f5c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
That's the terminology used in several GUI libraries (= and in client-side web) when you want to listen for focus events. Anyways, = the name is not particularly important - if X is using "FocusIn" = and "FocusOut" and Emacs uses the X terminology that's fine.<= br>


On 18 Novembe= r 2013 15:32, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> 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, h= owever,
> since they don't seem particularly standard - usually the terminol= ogy used
> with focus is "focus gained" and "focus lost" (or = "on focus" and "on lose
> focus").

I've never heard "gain focus". =C2=A0I think focus-in-h= ook and focus-out-hook
look fine to me. =C2=A0At least, "FocusIn" and "FocusOut&quo= t; are the terms used
by the X library, and so far Emacs has followed this naming convention.


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan


--047d7b2e4edae9041004eb743f5c--