From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#29518: 27.0.50; Compilation errors grab frame focus Date: Sun, 14 Jan 2018 20:40:19 -0800 Message-ID: <87h8rnpwek.fsf@ericabrahamsen.net> References: <87609rs323.fsf@ericabrahamsen.net> <87po6nqbwo.fsf@users.sourceforge.net> <877esun3t3.fsf@ericabrahamsen.net> <87mv1qraoq.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515991164 4109 195.159.176.226 (15 Jan 2018 04:39:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Jan 2018 04:39:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 29518@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 15 05:39:20 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1eawY9-0008K6-TT for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jan 2018 05:39:10 +0100 Original-Received: from localhost ([::1]:35438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eawa9-0006Jn-F6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Jan 2018 23:41:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eawa3-0006JJ-FY for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2018 23:41:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eawZy-00052I-I4 for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2018 23:41:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48676) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eawZy-00051u-B5 for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2018 23:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eawZx-00072v-US for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2018 23:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Jan 2018 04:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29518 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible Original-Received: via spool by 29518-submit@debbugs.gnu.org id=B29518.151599122327027 (code B ref 29518); Mon, 15 Jan 2018 04:41:01 +0000 Original-Received: (at 29518) by debbugs.gnu.org; 15 Jan 2018 04:40:23 +0000 Original-Received: from localhost ([127.0.0.1]:56573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eawZL-00071r-Db for submit@debbugs.gnu.org; Sun, 14 Jan 2018 23:40:23 -0500 Original-Received: from mail.ericabrahamsen.net ([50.56.99.223]:48710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eawZJ-00071j-KS for 29518@debbugs.gnu.org; Sun, 14 Jan 2018 23:40:21 -0500 Original-Received: from localhost (71-212-75-109.tukw.qwest.net [71.212.75.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 751AFC0113; Mon, 15 Jan 2018 04:40:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ericabrahamsen.net; s=mail; t=1515991220; bh=Aop2bgWJh3b36UtLP6pZPajEXwscASZVLzN0+6Y74hI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=s0slkq7Mxp50KXnwxbx0adykvNWB1M+LzPBJ3mskaFvCBeT2prXbO1GtRfejNqg0C ZDyZbhWj4xCxPIKJFCeguJCzyxxbsWrv+NzENViWrkMS8Uj1z73W/39wONI94JpYxe /aJys7pyhPPbwG7CtsRRxu+bznW3rM0hJTrlpDhw= In-Reply-To: <87mv1qraoq.fsf@users.sourceforge.net> (Noam Postavsky's message of "Sat, 06 Jan 2018 15:31:33 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142163 Archived-At: On 01/06/18 15:31 PM, Noam Postavsky wrote: > Eric Abrahamsen writes: > >> Thanks for the test! That triggers the same focus-grabbing behavior for >> me -- from other Emacs frames, and other applications' frames, using >> "emacs -Q". >> >> You tried this also with switching to a different workspace? And it >> didn't turn the workspace's tab red? > > I tried now switching to a different workspace after starting the > compile, the tab did not turn red. > >> Perhaps something's configured differently on my system (though I don't >> know why it would be, I didn't customize anything). Is there anything I >> might be looking for in config.log? > > I can't think of anything. If you M-x debug-on-error RET x-focus-frame > RET do you get any hits? Sorry about the slow response... That was an odd recipe, but turning on debug-on-error, then running several varieties of (x-focus-frame (window-frame)), including focusing the current frame or other frames, never did anything other than what I would expect it to -- returning nil when the frame was already focused, and focusing the frame when it wasn't. >>> There have been some changes to the way timeouts are handles, which >>> could affect frame/focusing stuff (see #24091, #25521, and #29095), but >>> I don't think it should cause what you are seeing. >> >> I fooled with `x-wait-for-event-timeout' but that didn't do anything. I >> suppose 6a788d2fc18c23dcfc5d0352649b2f690e9cbff7 could be related >> (FRAME_VISIBLE_P certainly sounds relevant) but I don't actually >> understand what's happening in there. Should I try just reverting the >> commit and re-building? > > I don't expect it to affect this, but since we have no other leads, I > suppose you may as well try it. You would probably need to revert [1: > e1f6e3127a] first. > > [1: e1f6e3127a]: 2017-09-29 18:40:06 -0400 > Bring back the busy wait after x_make_frame_visible (Bug#25521) > https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=e1f6e3127a292e6ba66d27c49ddda4fe949569f5 I wasn't able to revert those commits cleanly, and I guess I don't really think that's the issue. I suspect this is a change in X behavior (Arch has xorg-server 1.19), and maybe it's not worth chasing after at this point. Maybe it's enough just to leave this report hanging here, and see if anyone else runs into it? Eric