GNU bug report logs - #29518
27.0.50; Compilation errors grab frame focus

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Eric Abrahamsen <eric@HIDDEN>; Keywords: unreproducible; dated Fri, 1 Dec 2017 15:52:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) unreproducible. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 29518 <at> debbugs.gnu.org:


Received: (at 29518) by debbugs.gnu.org; 6 Jan 2018 14:50:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 06 09:50:43 2018
Received: from localhost ([127.0.0.1]:37668 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eXpo2-0002jn-Uw
	for submit <at> debbugs.gnu.org; Sat, 06 Jan 2018 09:50:43 -0500
Received: from mail-io0-f174.google.com ([209.85.223.174]:36135)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1eXpo1-0002jV-7w; Sat, 06 Jan 2018 09:50:41 -0500
Received: by mail-io0-f174.google.com with SMTP id i143so8674217ioa.3;
 Sat, 06 Jan 2018 06:50:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=H6xeQQScITC6+rFjTkUcJ9Ni391dpn1y+dlTBa0IMOM=;
 b=IIpYGyPro6YpoL9jOSeLVbk57UNcoddIki8jTB4SW6LYFl2DbfuTj9WdMSqnN+46y+
 QpGz+kcE+vyeYTDN+yrQcO1JoPyd/rkbpNrF4C4v0AkTPn2qFwfCFS+mSBv1gCZHd2N7
 Br+AyHm6D27RNsiCLa0/O5rYMgnEQS/iyHPP5BqHc/v39aY+0l34Vx3VXCi/6t79kXCp
 mZzGZ67lgtIhyrTnHGwEmcIuFqlMXxrmvCBoaSJh50MJd7jPifzi328OfY3BpuuTq91U
 Y+NA/MKa7wqqvvNE8HyKSlJj7+/1OCm0APAji0V4XlPisOAPihZPA6YktglGWaAvVdu1
 2QXQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:from:to:cc:subject:references:date
 :in-reply-to:message-id:user-agent:mime-version;
 bh=H6xeQQScITC6+rFjTkUcJ9Ni391dpn1y+dlTBa0IMOM=;
 b=iVGbJF5g6ADxeaQ7GqTHEl+ZFXbWFG0z1FUmk0DwrPey6LP6f68OnUkB0VeEZtF8IV
 v4yFiZMXbTO2+gJFVLZQ7iemWErHmfoj4u0UxtBYvN0CL4dD+jziRfeHn3tX4LzTMtY7
 e4YkD5/yCwQ3PivjJakxmXZzo+5LhLoRrtwzUqfv8Y2Iwn67Ka8z3qpN+ikamJ4iq6NF
 s+l+ytbxLa+XtAZjIlO4j5yYJ0EOPxZXNu6XfXTshkJwA2ivmwqBqsjgyyLx2p+qoERw
 L0np6vgZ/5jUz2p0+oV3xMEmu9fmB9lPDCiltaff/M/KnP3IYCa0r0U74N435Ot2J42o
 pwDA==
X-Gm-Message-State: AKGB3mKHX0amAVlgG3k3LtDDAN89HzWaDs8EoQUx+cbWm44UxI+4hWtL
 /a0mmvs71Bs5fVBEU+zzAKV4kA==
X-Google-Smtp-Source: ACJfBot9zNRfMfVDGiifeykbPZyPO+QXuaOSXkDvBnZycy8AUFvDIhaBJgSmdunHIFdCbzP2iWhnbw==
X-Received: by 10.107.62.194 with SMTP id l185mr6466500ioa.200.1515250235101; 
 Sat, 06 Jan 2018 06:50:35 -0800 (PST)
Received: from zebian ([45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id w69sm4731799itb.35.2018.01.06.06.50.32
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sat, 06 Jan 2018 06:50:33 -0800 (PST)
From: Noam Postavsky <npostavs@HIDDEN>
To: Eric Abrahamsen <eric@HIDDEN>
Subject: Re: bug#29518: 27.0.50; Compilation errors grab frame focus
References: <87609rs323.fsf@HIDDEN>
Date: Sat, 06 Jan 2018 09:50:31 -0500
In-Reply-To: <87609rs323.fsf@HIDDEN> (Eric Abrahamsen's message of
 "Thu, 30 Nov 2017 16:29:56 -0800")
Message-ID: <87po6nqbwo.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 29518
Cc: 29518 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)

--=-=-=
Content-Type: text/plain

tags 29518 + unreproducible
quit

Eric Abrahamsen <eric@HIDDEN> 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.


--=-=-=
Content-Type: text/plain
Content-Disposition: attachment; filename=some-errors.el
Content-Description: elisp triggering compile error

;;; some-errors.el --- while ocmpiling

;; Copyright (C) 2008-2017 Free Software Foundation, Inc.
;; Version: 0.1
;; Package-Requires: ((cl-lib "0.5"))


(eval-when-compile
  (sleep-for 1))
(eval-when-compile
  (error "foo"))

;;; some-errors.el ends here

--=-=-=
Content-Type: text/plain


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.

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#29518; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Dec 2017 15:51:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 01 10:51:39 2017
Received: from localhost ([127.0.0.1]:40170 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eKnbH-0001nB-AQ
	for submit <at> debbugs.gnu.org; Fri, 01 Dec 2017 10:51:39 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35114)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eric@HIDDEN>) id 1eKnbG-0001my-4u
 for submit <at> debbugs.gnu.org; Fri, 01 Dec 2017 10:51:38 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eric@HIDDEN>) id 1eKna9-0004Pt-Ks
 for submit <at> debbugs.gnu.org; Fri, 01 Dec 2017 10:51:32 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:56589)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <eric@HIDDEN>)
 id 1eKna9-0004P7-86
 for submit <at> debbugs.gnu.org; Fri, 01 Dec 2017 10:50:29 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51346)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <eric@HIDDEN>) id 1eKnZK-000378-Gx
 for bug-gnu-emacs@HIDDEN; Fri, 01 Dec 2017 10:50:28 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eric@HIDDEN>) id 1eKnYd-0002si-GT
 for bug-gnu-emacs@HIDDEN; Fri, 01 Dec 2017 10:49:38 -0500
Received: from mail.ericabrahamsen.net ([50.56.99.223]:45594)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <eric@HIDDEN>)
 id 1eKnYd-0002bo-9W
 for bug-gnu-emacs@HIDDEN; Fri, 01 Dec 2017 10:48:55 -0500
Received: from localhost (c-73-19-4-181.hsd1.wa.comcast.net [73.19.4.181])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 (Authenticated sender: eric@HIDDEN)
 by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 8565AC049A
 for <bug-gnu-emacs@HIDDEN>; Fri,  1 Dec 2017 00:31:54 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=mail.ericabrahamsen.net; s=mail; t=1512088314;
 bh=5aUVnsNdKMt/CaMjQ9mBiJPFzDJqnM9HdV5qJojs5Ko=;
 h=From:To:Subject:Date:From;
 b=N/04kKmcpH1nz5BMJqf0TYI9buSYrABhDxgj8xUJiAcAkdv4naciF61MbDnK/rwM6
 kB6nksWK4oTfwB7Ec8qmSOFKFtf3EboW4ZiCY9g6LxwxXgrf0+SVHlMKfkqs3Loy5A
 DSQBJukvhxeezjHoroSNBWvdhGVVAfZiQ96r4UxY=
From: Eric Abrahamsen <eric@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; Compilation errors grab frame focus
Date: Thu, 30 Nov 2017 16:29:56 -0800
Message-ID: <87609rs323.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)


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




Acknowledgement sent to Eric Abrahamsen <eric@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#29518; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 6 Jan 2018 15:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.