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: Sat, 06 Jan 2018 12:13:44 -0800 Message-ID: <877esun3t3.fsf@ericabrahamsen.net> References: <87609rs323.fsf@ericabrahamsen.net> <87po6nqbwo.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515269536 15500 195.159.176.226 (6 Jan 2018 20:12:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Jan 2018 20:12:16 +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 Sat Jan 06 21:12:11 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 1eXup8-0003Vx-5u for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Jan 2018 21:12:10 +0100 Original-Received: from localhost ([::1]:48634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXur5-0005hM-RE for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Jan 2018 15:14:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXuqz-0005h3-Np for bug-gnu-emacs@gnu.org; Sat, 06 Jan 2018 15:14:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXuqw-0003c2-Ds for bug-gnu-emacs@gnu.org; Sat, 06 Jan 2018 15:14:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58015) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eXuqw-0003bm-8m for bug-gnu-emacs@gnu.org; Sat, 06 Jan 2018 15:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eXuqw-0005zY-3E for bug-gnu-emacs@gnu.org; Sat, 06 Jan 2018 15:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Jan 2018 20:14:02 +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.151526962923007 (code B ref 29518); Sat, 06 Jan 2018 20:14:02 +0000 Original-Received: (at 29518) by debbugs.gnu.org; 6 Jan 2018 20:13:49 +0000 Original-Received: from localhost ([127.0.0.1]:38463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXuqj-0005z1-4e for submit@debbugs.gnu.org; Sat, 06 Jan 2018 15:13:49 -0500 Original-Received: from mail.ericabrahamsen.net ([50.56.99.223]:44616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXuqh-0005yt-2o for 29518@debbugs.gnu.org; Sat, 06 Jan 2018 15:13:47 -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 43547BFE1C; Sat, 6 Jan 2018 20:13:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ericabrahamsen.net; s=mail; t=1515269626; bh=QCdUGTUgvB+E7EhKYoh9VpqH6sdsc2F1hnxJRryfvTg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=wg47RDEUCsqf4WU7vKmDyfanEA1Mau6AkRWAicEemnR76iXR+QMPyIMtD4/qUR57k pmhBXnlgBhDD19e7c+74UbEuRczjvvFdubd9I53R0hwbWxD/WGRvsqvAGX9dpu0ne2 Vq8+4k03ILfL/6NdTJFNBZ7pmRHwQ1BbiDzF1jW8= In-Reply-To: <87po6nqbwo.fsf@users.sourceforge.net> (Noam Postavsky's message of "Sat, 06 Jan 2018 09:50:31 -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:141849 Archived-At: On 01/06/18 09:50 AM, Noam Postavsky wrote: > tags 29518 + unreproducible > quit > > Eric Abrahamsen writes: > >> I've noticed over the past few weeks (couple of months?) that, while >> updating packages, any compilation errors result in the *Package List* >> frame grabbing focus. >> >> I start a package upgrade, switch to some other program, and then (some >> packages produce a lot of errors!) start a focus tug-of-war with the >> Emacs frame where the compilation is going on. >> >> I am on arch linux, with no DE, running i3 directly on X. I note that if >> I move to a different workspace, compilation errors cause the workspace >> where the frame lives to turn red (which seems to be the i3 behavior for >> frames with warnings or notifications or whatever the X terminology is), >> but I'm not yanked back there. If I'm in that workspace, however, the >> Emacs frame keeps jumping to the fore. >> >> I've looked through the Emacs git log to see if anything jumps out as >> having been changed, but most of the frame/focus stuff seems NS-related. >> But I'm pretty sure this is new behavior. >> >> >> In GNU Emacs 27.0.50 (build 13, x86_64-pc-linux-gnu, GTK+ Version 3.22.26) >> of 2017-11-30 built on slip >> Repository revision: 3f3d98ee5851840228786390ee7dbf851d144eb8 >> Windowing system distributor 'The X.Org Foundation', version 11.0.11905000 > > I can't reproduce this. I'm also running i3 directly on X (Debian > stable though). I tried M-x package-install-file RET some-errors.el RET > (see the attached file) then switch focus to a nearby terminal window. > The compile error did not trigger a change in focus. 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? 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? > 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? Thanks, Eric