From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mike Kupfer Newsgroups: gmane.emacs.bugs Subject: bug#50743: Emacsclient not tested vs. Local Variables prompt Date: Sun, 26 Sep 2021 10:51:52 -0700 Message-ID: <16835.1632678712@alto> References: <8735pwpdrm.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19827"; mail-complaints-to="usenet@ciao.gmane.io" Cc: psainty@orcon.net.nz, larsi@gnus.org, 50743@debbugs.gnu.org, jidanni@jidanni.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 26 19:53:32 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 1mUYLE-0004yk-0Y for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Sep 2021 19:53:32 +0200 Original-Received: from localhost ([::1]:51188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUYLB-0000nh-5l for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Sep 2021 13:53:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUYKk-0000l8-KU for bug-gnu-emacs@gnu.org; Sun, 26 Sep 2021 13:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55394) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUYKk-0003uR-Bg for bug-gnu-emacs@gnu.org; Sun, 26 Sep 2021 13:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUYKk-0000V4-9j for bug-gnu-emacs@gnu.org; Sun, 26 Sep 2021 13:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mike Kupfer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Sep 2021 17:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50743 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 50743-submit@debbugs.gnu.org id=B50743.16326787221856 (code B ref 50743); Sun, 26 Sep 2021 17:53:02 +0000 Original-Received: (at 50743) by debbugs.gnu.org; 26 Sep 2021 17:52:02 +0000 Original-Received: from localhost ([127.0.0.1]:38707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUYJm-0000Tr-Ce for submit@debbugs.gnu.org; Sun, 26 Sep 2021 13:52:02 -0400 Original-Received: from shell1.rawbw.com ([198.144.192.42]:36071 ident=root) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUYJj-0000TP-Px for 50743@debbugs.gnu.org; Sun, 26 Sep 2021 13:52:00 -0400 Original-Received: from alto (96-95-200-133-static.hfc.comcastbusiness.net [96.95.200.133]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id 18QHpqJq088547 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 26 Sep 2021 10:51:58 -0700 (PDT) (envelope-from mkupfer@alum.berkeley.edu) X-Authentication-Warning: shell1.rawbw.com: Host 96-95-200-133-static.hfc.comcastbusiness.net [96.95.200.133] claimed to be alto In-Reply-To: Your message of "Sun, 26 Sep 2021 14:03:40 +0300." <83ee9boayb.fsf@gnu.org> X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.2 Content-ID: <16834.1632678712.1@alto> 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:215612 Archived-At: Eli Zaretskii wrote: > > From: martin rudalics > > Date: Sun, 26 Sep 2021 11:59:42 +0200 > > IIUC this issue is about a frame displayed on top of the terminal > > window. > > Is it? That's not my understanding. My understanding is that this > happens when the client frame already exists when emacsclient is > invoked, so it's probably elsewhere. It could be elsewhere, but in Dan's scenario, the terminal window and Emacs frame are over each other. And the exact behavior in that situation varies depending on the window manager. If I run the experiment in MATE, with Emacs behind mate-terminal, and run "emacsclient /tmp/m" (from Phil's example) in mate-terminal, the mate-terminal window stays on top and retains the input focus. But if I repeat the experiment in KDE, with Emacs behind mate-terminal (or Konsole), Emacs is brought to the top, hiding the terminal emulator, even though the terminal emulator still has the input focus. But even that depends on what settings I have in KDE. The behavior I just described is with "focus stealing prevention" set to None. If I set it to Low, the terminal emulator window remains in top (and retains the focus). Still, if I have "focus stealing prevention" set to None, the Emacs frame is raised in both the prompting case and the non-prompting case, but the input focus is handled differently in the two cases. Raising the frame but not getting the input focus doesn't seem right to me. mike