From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#50743: Emacsclient not tested vs. Local Variables prompt Date: Fri, 24 Sep 2021 22:42:02 +0800 Message-ID: <87h7ea8285.5.fsf@jidanni.org> References: <8735pwpdrm.5.fsf@jidanni.org> <875yustkd1.fsf@gnus.org> <87ilyr978n.5.fsf@jidanni.org> <2b911a49a1a8575e03facf44e76ba0eb@webmail.orcon.net.nz> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21770"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 50743@debbugs.gnu.org To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 24 16:43:15 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 1mTmPy-0005SH-3Z for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Sep 2021 16:43:14 +0200 Original-Received: from localhost ([::1]:33540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTmPv-0007UW-Q2 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Sep 2021 10:43:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTmPm-0007Sg-P1 for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2021 10:43:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47469) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTmPm-0006iz-GR for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2021 10:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTmPm-0001bm-8d for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2021 10:43:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <8735pwpdrm.5.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Sep 2021 14:43: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.16324945426108 (code B ref 50743); Fri, 24 Sep 2021 14:43:02 +0000 Original-Received: (at 50743) by debbugs.gnu.org; 24 Sep 2021 14:42:22 +0000 Original-Received: from localhost ([127.0.0.1]:59015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTmP8-0001aS-B9 for submit@debbugs.gnu.org; Fri, 24 Sep 2021 10:42:22 -0400 Original-Received: from purple.birch.relay.mailchannels.net ([23.83.209.150]:34313) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTmP5-0001aF-A0 for 50743@debbugs.gnu.org; Fri, 24 Sep 2021 10:42:21 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id F1488760A72; Fri, 24 Sep 2021 14:42:17 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a55.g.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id F408D760D0B; Fri, 24 Sep 2021 14:42:06 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a55.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.112.83.63 (trex/6.4.3); Fri, 24 Sep 2021 14:42:17 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Wide-Eyed-Rock: 21a44748588342d6_1632494527798_3907259450 X-MC-Loop-Signature: 1632494527798:3216980328 X-MC-Ingress-Time: 1632494527798 Original-Received: from pdx1-sub0-mail-a55.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a55.g.dreamhost.com (Postfix) with ESMTP id 9CB6E870F3; Fri, 24 Sep 2021 07:42:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=TxYgXBwu/mJgUJaFP9lXUAwNYLc=; b=pO2RkT2ysQSgs vnqRPkUISoL7jl1tEDLNPFFiIwcHGeNdxVgu3/GVom5op5zjtAm51E2ePfPbGcU3 JlIm1TqZXVjbnrhoNIbUQhvG4yxxDqZeeqkcmScelHiEe7OtMB5Fir9rzwscUHoH t+aocmc3kIgMGtPWvOHZ6jo+C314eM= Original-Received: from jidanni.org (36-234-98-48.dynamic-ip.hinet.net [36.234.98.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a55.g.dreamhost.com (Postfix) with ESMTPSA id B4A2786420; Fri, 24 Sep 2021 07:42:05 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a55 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:215312 Archived-At: >>>>> "PS" == Phil Sainty writes: PS> Ok, so is this the recipe? Yes. PS> $ emacs -Q -f server-start & PS> $ cat /tmp/m PS> ## -- -*- foo: bar; -*- PS> $ emacsclient /tmp/m PS> See the "local variables may not be safe" prompt in the client frame. Stop right there. Emacs is asking the user a question. The user types an answer. The answer doesn't go to emacs. That's the problem. About this frame and that frame, this focus and that focus, that is all beyond the user's comprehension. PS> Focus on the emacsclient frame in your window manager. PS> Respond to the prompt (e.g. with "y"). PS> And your keystrokes go to the original terminal, even though the PS> emacsclient frame has the window manager focus?