From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: emacser via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#45844: 27.1; unwanted raising of other frame when emacs is in the backgound and switch-to-buffer is used in a dedicated frame Date: Thu, 14 Jan 2021 08:20:55 +0000 Message-ID: References: <698ea7a3-c2b2-7705-3fc4-16d52c8a7acd@gmx.at> <7420050f-39bc-61ce-5f04-706f0b63e3e8@gmx.at> Reply-To: emacser , emacser 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="25476"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "45844@debbugs.gnu.org" <45844@debbugs.gnu.org> To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 14 09:22:09 2021 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 1kzxtR-0006Vm-G0 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jan 2021 09:22:09 +0100 Original-Received: from localhost ([::1]:40582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzxtQ-0001vv-DN for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jan 2021 03:22:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzxtK-0001vm-GX for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2021 03:22:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzxtK-0004Cb-99 for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2021 03:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kzxtK-0003yh-2h for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2021 03:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: emacser Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jan 2021 08:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45844 X-GNU-PR-Package: emacs Original-Received: via spool by 45844-submit@debbugs.gnu.org id=B45844.161061246715223 (code B ref 45844); Thu, 14 Jan 2021 08:22:02 +0000 Original-Received: (at 45844) by debbugs.gnu.org; 14 Jan 2021 08:21:07 +0000 Original-Received: from localhost ([127.0.0.1]:37111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzxsR-0003xT-He for submit@debbugs.gnu.org; Thu, 14 Jan 2021 03:21:07 -0500 Original-Received: from mail4.protonmail.ch ([185.70.40.27]:57296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzxsO-0003wc-UU for 45844@debbugs.gnu.org; Thu, 14 Jan 2021 03:21:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1610612458; bh=BHkUv06Y7Q6k0etxiwBu76qghmZv8O4JV2gAQ10RDe8=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=ETBwDEc8MO8ZILnjAGXxBFU75raRTVcpYdS6U/fNtmWLzIJT+ymFj1YbJ8zhmZNTj aWRCnvCAIuZWNqO8tAuffniaL2sS3LapwRHZy+bp056CU5sU7xOWphmAf9FDuEeVT9 Z3ZO/fAwYKGaJasqrr/rct67KlFcZMS3duX5Ldow= In-Reply-To: <7420050f-39bc-61ce-5f04-706f0b63e3e8@gmx.at> 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:197931 Archived-At: On Thursday, January 14, 2021 8:40 AM, martin rudalics wr= ote: > > Sorry but we can't do that.`switch-to-buffer' has to provide the window t= he next keystroke will be addressed to. That is carved in stone. I still do= n't understand why you insist on using`switch-to-buffer' > here. Why don't you just call `display-buffer' if you don't want to > edit that buffer anyway? > I'll try that, I only found it strange that if a background timer uses switch-to-buffer and the frame is in in the background then why the frame is raised. If it's not triggered by a user interaction then there is no practical reason to bring the frame into the foreground, because the user is using an other app, so he doesn't want to type into that frame at that point. The frame should only switch to the buffer and remain in the background, so when the user get backs to emacs then he can see the result of the background process presented to him. It sounds like a bug to me, but I accept if you say it's hard to implement for some reason and I'll change my code to use an other method.