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.bugs Subject: bug#15469: 24.3; emacsclient -c fails to grab focus when asking =?UTF-8?Q?=E2=80=9CRevert?= buffer from =?UTF-8?Q?file=3F=E2=80=9D?= Date: Sun, 06 Dec 2020 16:27:30 +0100 Message-ID: <87h7oz9cpp.fsf@gnus.org> References: <5244CACB.3030805@mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8795"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 15469@debbugs.gnu.org To: Anders Kaseorg Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 06 16:28:48 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1klvxw-0002Cg-K0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 16:28:48 +0100 Original-Received: from localhost ([::1]:53124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klvxt-0001kv-Qi for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 10:28:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klvxC-0001jH-FG for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 10:28:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39228) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klvxB-000886-Pv for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 10:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klvxB-0004cH-NI for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 10:28:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Dec 2020 15:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15469 X-GNU-PR-Package: emacs Original-Received: via spool by 15469-submit@debbugs.gnu.org id=B15469.160726846317708 (code B ref 15469); Sun, 06 Dec 2020 15:28:01 +0000 Original-Received: (at 15469) by debbugs.gnu.org; 6 Dec 2020 15:27:43 +0000 Original-Received: from localhost ([127.0.0.1]:50771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klvwt-0004bX-Ay for submit@debbugs.gnu.org; Sun, 06 Dec 2020 10:27:43 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:54180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klvwq-0004bG-VV for 15469@debbugs.gnu.org; Sun, 06 Dec 2020 10:27:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=LewzROk+qKoBEDwEHopmPgWfPbNYMECUw12VVXpbYTo=; b=n7WEhOywzuluEfJd9Oq6MN0VZr mLo+Zw9UyCfN6d+WgLhGACiFVqEid1N+/Ty4y311bawiqFiW8S42gcXK9NS0zmXgp7aa1ukNbwVT0 VRWuJhXfS8PO0Nd74fdZaMHETKUBiXCsoe9UfOO2yVXKds4fYc1JZHxG/er8sNlXeCuk=; 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 1klvwh-0005VX-Hq; Sun, 06 Dec 2020 16:27:35 +0100 X-Now-Playing: Krew's _Pres Rebooted_: "Utrata" In-Reply-To: <5244CACB.3030805@mit.edu> (Anders Kaseorg's message of "Thu, 26 Sep 2013 20:01:15 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195115 Archived-At: Anders Kaseorg writes: > When using Emacs in server mode and =E2=80=98emacsclient -c=E2=80=99 as m= y preferred > editor, new windows opened by emacsclient often fail to grab keyboard > focus, correlated with Emacs asking minibuffer questions like =E2=80=9CRe= vert > buffer from file?=E2=80=9D as the file is opened (e.g. on .git/COMMIT_EDI= TMSG > which is frequently modified both inside and outside Emacs). I can > reproduce this reliably as follows: > > 1. emacs -Q /tmp/foo > 2. M-x server-start > 3. Type some text into the buffer; do not save. > 4. Click outside the Emacs window to unfocus it. > 5. Click inside the Emacs window to focus it. > 6. Click outside the Emacs window to unfocus it. > 7. Modify /tmp/foo outside Emacs. > 8. emacsclient -c /tmp/foo > 9. An _unfocused_ Emacs window pops up to ask =E2=80=9CRevert buffer from= file > /tmp/foo?=E2=80=9D. (This bug report unfortunately got no response at the time.) I can confirm that this bug is still present in Emacs 28, but I have not tried to debug it. Anybody with a guess at what's going on? The new frame that's popped up does have focus, as expected, if the "revert buffer" query isn't done. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no