From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: We should decouple focus and frame switching Date: Mon, 11 Jun 2018 09:00:52 -0400 Message-ID: References: <6d1bc582-29be-5df7-56b1-e82305ee477f@dancol.org> <726a268360567d598996f0080b71c0f8.squirrel@dancol.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1528721943 12893 195.159.176.226 (11 Jun 2018 12:59:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 11 Jun 2018 12:59:03 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 11 14:58:59 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 1fSMPS-0003EB-3i for ged-emacs-devel@m.gmane.org; Mon, 11 Jun 2018 14:58:58 +0200 Original-Received: from localhost ([::1]:48714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSMRZ-0003ve-56 for ged-emacs-devel@m.gmane.org; Mon, 11 Jun 2018 09:01:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSMRQ-0003vM-9n for emacs-devel@gnu.org; Mon, 11 Jun 2018 09:01:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSMRL-0008LI-N9 for emacs-devel@gnu.org; Mon, 11 Jun 2018 09:01:00 -0400 Original-Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]:33077) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSMRL-0008L0-It for emacs-devel@gnu.org; Mon, 11 Jun 2018 09:00:55 -0400 Original-Received: by mail-qk0-x22f.google.com with SMTP id c131-v6so4246253qkb.0 for ; Mon, 11 Jun 2018 06:00:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=TaawhUlTH/EJDZGzXEgU1SQy36GAWkLOJNeLlTD4hs4=; b=fso0Nc4lb0p3SFdYT39Pda+clHcsNy5PPe7Gj3l/6Iv2VkkAFI7+BTdFPFRdS8DUxD LGtFR3x+Fn8Uk2tHx/3Ltr5JYKhB7EFn7tQ7KgR4jwESHxhs914/rhSDm3ngsNnkxZUa T3cw8io+ewn2cLBsLiifeSxf9EdPKun//PQFRZDC6pkq24YPpwmntSMBFro3U2sTRefu Mfda6KsaA10zq7bvYHv07+2wZveteUKSHoswXZBYDLI0qO5ng1pjB/fQdA0Ji5xLfuDv rfXdxVJmUiXjAmnwq7hLXy5RObFpZY/NmMxCkrawBzP5s/XfURMxkBXRsn0Hey7Kv/cn LvGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=TaawhUlTH/EJDZGzXEgU1SQy36GAWkLOJNeLlTD4hs4=; b=svfASgeR5FpsDmqQunLOsvq8Slg4+EurmfogoHri8uIXdmp+R5kEdH00JDL4BrHRm+ CVnHlUa7j4p4yPfSuBcLAbUGSopGJY9/q0qAApZ8OKIEGdUrX3Z3knClFcJhXfEWHV+m gYfppgT3RU/48yE7RLwtJsppJr73/+MnLQTQyixWprIrtioILIo3BlEh1RNcWXqXAN9x yTQwb950uyY2wV1LvsJTzD8qxFJz+WnhdlG5k4br7+xr2SV8SdwjeO5kCIlEGy0YXR+e G3xD9fpsTBTE4ysT/9dEqbMMMVcCiVyfhdviNN4Mi0fdItR8/rz0oPu5U6PTzIm+pDvA uu3Q== X-Gm-Message-State: APt69E3ngxB8yTb9ZKQrG3TU4cKMlwiEcpRnAWWJK2/B/4nySxzElm6p j3P0natiKEiXXIYiIUX+xi+G1/fZ X-Google-Smtp-Source: ADUXVKLSIIV7NS5rz3gwZ5eWvJ3X5HjY5rCTc09VUmDL2bvccsoldgxADZGSgv17GJOzn5nk4wkjnA== X-Received: by 2002:a37:f59:: with SMTP id z86-v6mr14077208qkg.234.1528722054531; Mon, 11 Jun 2018 06:00:54 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:66e7:543d:e155:4a97:f2c9? ([2601:184:4180:66e7:543d:e155:4a97:f2c9]) by smtp.gmail.com with ESMTPSA id v22-v6sm28742131qtg.46.2018.06.11.06.00.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jun 2018 06:00:53 -0700 (PDT) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::22f 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:226205 Archived-At: On 2018-06-10 21:07, T.V Raman wrote: > Deprecating focus-in-hook/focus-out-hook is fine by me, I was merely > pointing out that not only are they not used, any usage is hopelessly > broken anyway. That's an overstatement. It's broken for some uses, perhaps, but it works mostly fine for other uses. For example, I have a package that shows a notification when a process completes while emacs is in the background. This works OK by capturing focus-in and focus-out and toggling a boolean. This example also sounds like it would be feasible with Daniel's new API, so it sounds pretty good too :)