From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: master 9cef8fc: Ensure that new emacsclient frames has focus Date: Fri, 18 Dec 2020 09:39:00 +0100 Message-ID: <87y2hvjyor.fsf@gnus.org> References: <20201207132953.16701.29090@vcs0.savannah.gnu.org> <20201207132955.05FD720A1C@vcs0.savannah.gnu.org> <86lfdwkx5v.fsf@phe.ftfl.ca> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22972"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Joseph Mingrone Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 18 09:40:19 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kqBJ9-0005n3-Ag for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Dec 2020 09:40:15 +0100 Original-Received: from localhost ([::1]:56204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqBJ8-0006oA-Cb for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Dec 2020 03:40:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqBIC-0006HM-Ho for emacs-devel@gnu.org; Fri, 18 Dec 2020 03:39:16 -0500 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:51030) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqBIA-0003vE-MC for emacs-devel@gnu.org; Fri, 18 Dec 2020 03:39:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=fEykI4x15yml4idzeJtSK4GDNX/w4k+uWXvTAMPxmbA=; b=KlD6pOPmM1qLi4SbgTyB8MBRio kjj3KYbILTmyIriPEvRcslBGpaN2vE/4ZUy4Pxu9mu6EGdSszoL7mj62D6PyYJjv+QgdCH2AB4bgE 9jJlHPYVhjxdShnNvqB9CuCc5x7gDJWlbd1nTiSjqfEOxwtH9F8bNMPyC4qw3qFGUhsw=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kqBHx-000880-DJ; Fri, 18 Dec 2020 09:39:07 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEVBOC2umGywn33/ ///6R8N8AAAAAWJLR0QDEQxM8gAAAAd0SU1FB+QMEggfMwJ4vxEAAAGPSURBVCjPbZKxbtswEIaP gmggmShAChJvBTKkfgoqiAw0E1WIhqUpKZJBfAplaIdO8SAB1WQXVmDeU5Z3KjxFEO746X7dHY8E +OzRs3sgI3e8zu/JRj1byMldvekgvGC1eOVI+mJIC30Zx5D0L5REeGGuAYYtxcHn5ikkpYgBK3QX Fjb8H94cCL5wOWPYrbQKtpIMGx0+iq2Y+/HvAW7mVjfYMViC3Uj9tG3GkW8UQf9IuvZKg4oa37xR 0ZDUijU2PwPE16ClrRwnkLdCy1y5PwRuD9YmdfP7GOBvJ31VNuOwD9DB0pdrHPDAE1thv8BhCtMS Haz8k/A/djnD0h/ydninwQXA3nqkHRH474f6pDKWZbWO67tkgioKsz3K1n61H6AjDdIssHC+JJkS OsLBYUlFFYgIR4d8HKDifJwcnk/RTa+neVjCpO6Yqoghhmzc38Hiv8rWH77gfUNiqks8LQxfgEw/ SDwny0A4FMWc4FmDc2nJkA6FefRqViW/pJGVrBhkoStromkGab0t7vt/qotsNRY1pfcAAAAldEVY dGRhdGU6Y3JlYXRlADIwMjAtMTItMThUMDg6MzE6NTArMDA6MDCNOd9/AAAAJXRFWHRkYXRlOm1v ZGlmeQAyMDIwLTEyLTE4VDA4OjMxOjUwKzAwOjAw/GRnwwAAAABJRU5ErkJggg== X-Now-Playing: Kate Bush's _Remastered (3): Never For Ever_: "Delius (Song Of Summer)" In-Reply-To: <86lfdwkx5v.fsf@phe.ftfl.ca> (Joseph Mingrone's message of "Thu, 17 Dec 2020 16:14:20 -0400") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:261169 Archived-At: Joseph Mingrone writes: >> Ensure that new emacsclient frames has focus [...] > I'm seeing some new behaviour with this commit that I suspect was > unintended. > > Before this commit, calling emacsclient -n from a terminal > emulator caused the emacs frame to be raised. > > After this commit, the terminal emulator normally stays in focus. I > haven't figured out for certain when the emacs frame still gains focus, > but it seems to happen when does not exist on disk. I was afraid of something like that -- the code in this area has gotten a lot of tweaks over the years because the actions are a bit convoluted. I'm seeing the same behaviour with -n with both existing and non-existing files, though. (That is, that the Emacs frame doesn't get focus.) It'd be nice if you could figure out when the frame still gets focus, because that sounds like another wrinkle... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no