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: Sat, 25 Sep 2021 17:07:10 +1200 Message-ID: <2bb3741071370ba88a1421263ccdbb44@webmail.orcon.net.nz> References: <8735pwpdrm.5.fsf@jidanni.org> <875yustkd1.fsf@gnus.org> <87ilyr978n.5.fsf@jidanni.org> <2b911a49a1a8575e03facf44e76ba0eb@webmail.orcon.net.nz> <87h7ea8285.5.fsf@jidanni.org> <92e14cf18362d4ecbd0d8fc250d25a8e@webmail.orcon.net.nz> <87o88hthj6.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6688"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail Cc: Lars Ingebrigtsen , 50743@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 25 07:08:16 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 1mTzv6-0001eI-1K for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Sep 2021 07:08:16 +0200 Original-Received: from localhost ([::1]:43346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTzv4-0000y4-Tn for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Sep 2021 01:08:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTzus-0000xs-Lf for bug-gnu-emacs@gnu.org; Sat, 25 Sep 2021 01:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48520) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTzus-00083N-EL for bug-gnu-emacs@gnu.org; Sat, 25 Sep 2021 01:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTzus-0002kn-0I for bug-gnu-emacs@gnu.org; Sat, 25 Sep 2021 01:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Sep 2021 05:08: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.163254643910523 (code B ref 50743); Sat, 25 Sep 2021 05:08:01 +0000 Original-Received: (at 50743) by debbugs.gnu.org; 25 Sep 2021 05:07:19 +0000 Original-Received: from localhost ([127.0.0.1]:60066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTzuB-0002je-Fa for submit@debbugs.gnu.org; Sat, 25 Sep 2021 01:07:19 -0400 Original-Received: from smtp-2.orcon.net.nz ([60.234.4.43]:54809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTzu7-0002jR-Be for 50743@debbugs.gnu.org; Sat, 25 Sep 2021 01:07:18 -0400 Original-Received: from [10.253.37.70] (port=55095 helo=webmail.orcon.net.nz) by smtp-2.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1mTzu2-00023t-8F; Sat, 25 Sep 2021 17:07:10 +1200 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); Sat, 25 Sep 2021 17:07:10 +1200 In-Reply-To: <87o88hthj6.5.fsf@jidanni.org> 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:215411 Archived-At: On 2021-09-25 16:18, 積丹尼 Dan Jacobson wrote: > Anyway, normally if we type abcefg... it goes right into the file, > where > it belongs. > > However if we boobytrap the file with -*- foo: bar; -*-, > now suddenly emacs is asking us questions, but our answers are hijacked > elsewhere! Are you saying that if you create a second file, /tmp/m2 which does *not* have any file-local variables, and you go to your terminal and run "emacsclient /tmp/m2" and type "y" that it inserts the character "y" into the "m2" buffer; but if you run "emacsclient /tmp/m" which has the file-local var and you type "y" it gets inserted into the terminal window? And you are doing everything else exactly the same way, so that the sole difference between the two tests is that whether or not the file has a file-local variable? To me it still sounds like a matter of OS window focus, but I can't fathom why those two tests would result in different windows being focused by the window manager. To be clear, I've already tried and failed to reproduce your problem, so not everyone is seeing the same thing as yourself. It would be easier to understand what's happening if you could confirm whether of not the Emacs window actually has focus (which is why I tried to get that information via a more-detailed recipe a in an earlier message). -Phil