From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#50743: Emacsclient not tested vs. Local Variables prompt Date: Sun, 26 Sep 2021 13:34:11 +1300 Message-ID: References: <25731.1632610542@alto> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30566"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail Cc: Lars Ingebrigtsen , 50743@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson To: Mike Kupfer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 26 02:35:23 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 1mUI8Y-0007j5-Sa for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Sep 2021 02:35:22 +0200 Original-Received: from localhost ([::1]:45230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUI8W-0001EC-Vg for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Sep 2021 20:35:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUI8E-0001Dz-76 for bug-gnu-emacs@gnu.org; Sat, 25 Sep 2021 20:35:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51846) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUI8D-0006Nt-Vc for bug-gnu-emacs@gnu.org; Sat, 25 Sep 2021 20:35:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUI8D-00048c-T7 for bug-gnu-emacs@gnu.org; Sat, 25 Sep 2021 20:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Sep 2021 00:35:01 +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.163261646015851 (code B ref 50743); Sun, 26 Sep 2021 00:35:01 +0000 Original-Received: (at 50743) by debbugs.gnu.org; 26 Sep 2021 00:34:20 +0000 Original-Received: from localhost ([127.0.0.1]:35159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUI7Y-00047b-IY for submit@debbugs.gnu.org; Sat, 25 Sep 2021 20:34:20 -0400 Original-Received: from smtp-4.orcon.net.nz ([60.234.4.59]:38503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUI7X-00047T-8B for 50743@debbugs.gnu.org; Sat, 25 Sep 2021 20:34:19 -0400 Original-Received: from [10.253.37.70] (port=46862 helo=webmail.orcon.net.nz) by smtp-4.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1mUI7P-0000RG-E2; Sun, 26 Sep 2021 13:34:11 +1300 Original-Received: from ip-203-94-48-127.kinect.net.nz ([203.94.48.127]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Sun, 26 Sep 2021 13:34:11 +1300 In-Reply-To: <25731.1632610542@alto> X-Sender: psainty@orcon.net.nz X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- 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:215541 Archived-At: On 2021-09-26 11:55, Mike Kupfer wrote: > I don't use icewm, but I can reproduce the problem with MATE, > using either the marco window manager or Openbox, on Debian 10. Thanks for confirming Mike. I can now reproduce this as well. (In fact I'd failed to follow the correct recipe previously, and was side-stepping the issue.) The key appears to be whether or not we're using a pre-existing client frame. If a new frame is created, the problem does not occur (for me). If we're switching to a pre-existing frame, then I can reproduce the problem. Here's an alternative recipe: emacs -Q --daemon=bug50743 # start a new server emacsclient -sbug50743 -c & # create a GUI frame emacsclient -sbug50743 If contains file-local variables then the pre-existing client frame does not get focus; but otherwise it does. I tested with both: M-x add-file-local-variable M-x add-file-local-variable-prop-line -Phil