From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Can emacsclient send environment variables even if it doesn't create a frame? Date: Sat, 01 Apr 2023 18:10:51 +0300 Message-ID: <83pm8ny6x0.fsf@gnu.org> References: <83bkkb7e6s.fsf@gnu.org> <83ttxzyafp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18549"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yoichi Nakayama Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 01 17:11:23 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pict0-0004aT-42 for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Apr 2023 17:11:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1picsI-0004wS-6T; Sat, 01 Apr 2023 11:10:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1picsG-0004wC-FQ for emacs-devel@gnu.org; Sat, 01 Apr 2023 11:10:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1picsG-0002hL-7c; Sat, 01 Apr 2023 11:10:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=8v0+B+v7xMcd6uTvEBdCq2sdDF85hdxuErEmLYJvbBk=; b=YomuM3Vgx2Ix/ssjIY21 5t2SgDMp4Ugatsf01+7IewR0GTz+PlqmqW+YyHTfqzf2Wve4+yVrw6VE82P9kFL46eUkI52x/syjB xgnrlXfc07kEqXX6KZ3ecIMU9ipb7deiHtlOIqCvkO7DdxvbdWxRMSstCrl/B5iSy7kVsmvfB5/7r 6b6lycH9GJ9e0FVFdiCBiY1JfpQaVP5Nn+cq/D1+edlHPCQ/DrtK9S21O4UnB7WDHpj7hEjunpSlW aQKQX9JHpeD7myvjOu0248vGO45AFOuhhIiE304BM2EJYVnysLq5JL4XpMtW5HuT/O35v5NbsLGNW ccR2VpfFrHy+Yw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1picsF-0006X8-BN; Sat, 01 Apr 2023 11:10:35 -0400 In-Reply-To: (message from Yoichi Nakayama on Sat, 1 Apr 2023 23:28:12 +0900) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:305013 Archived-At: > From: Yoichi Nakayama > Date: Sat, 1 Apr 2023 23:28:12 +0900 > Cc: emacs-devel@gnu.org > > On Sat, Apr 1, 2023 at 10:54 PM Eli Zaretskii wrote: > > I asked why you cannot invoke emacsclient to create a frame, if that > > will solve your problem? Why do you have to insist on using an > > existing frame? What am I missing here? > > I'm using EDITOR='emacsclient -t'. I don't insist on using an existing frame. > > I asked this question because I wanted to avoid putting restrictions > on the fix I'm proposing to magit. Since emacsclient can either create > frames or not, I would prefer to have no restrictions in either case. > If emacsclient's limitation remains that there is no way to get the client's > environment variables when it doesn't create a frame, I think I'll have to > accept that my magit fix remains limited. I'd prefer not to pass environment variables unless a new frame is being created, yes.