From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yoichi Nakayama Newsgroups: gmane.emacs.devel Subject: Re: Can emacsclient send environment variables even if it doesn't create a frame? Date: Sat, 1 Apr 2023 23:54:05 +0900 Message-ID: References: <83bkkb7e6s.fsf@gnu.org> <83ttxzyafp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18629"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 01 17:11:27 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 1pict5-0004hP-Ir for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Apr 2023 17:11:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1picsV-0004zr-Sa; Sat, 01 Apr 2023 11:10:52 -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 1piccW-0001oQ-Hg for emacs-devel@gnu.org; Sat, 01 Apr 2023 10:54:20 -0400 Original-Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1piccV-0008GK-0l; Sat, 01 Apr 2023 10:54:20 -0400 Original-Received: by mail-pg1-x536.google.com with SMTP id y19so15094934pgk.5; Sat, 01 Apr 2023 07:54:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680360856; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=E3HSvzmKL2d49lB83dhnihrclrebNECeWSy8ZfqjGxw=; b=fOLOc8h927GCL0hQ6p9X5ZhLngngaQ3WK8Y3hQRse/J/qAclSwKua3bGlM4QC3n1qi EMvDi8cQsHKLbX1Siikm3Tlt7fP3sh9MkviaqfSY7fdfk8Gi9FwSulj8AEpt6tDR5nIk D29I7eUtgTBM/WVmZ+A3uXYspqncdAXt7SRJzRL3XCIua4VUF5qFGw4+5g0Sv/Fx1RQE JhkIXV+4M0JLGQVPnfzmVyxXO3li/aqjPNGPDvZSBlI3JdaUqGZQUZnKT1kJ8oFq5iYG dgFoN0hBQTk14u3xnxQD4xU9Uk5uac/wluk8C+Rqs5H3VODfMw3RbhQ/onTPSJr47bmz XL+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680360856; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=E3HSvzmKL2d49lB83dhnihrclrebNECeWSy8ZfqjGxw=; b=WSMN1oHWC3UffpZqDW5OExNXjh/vOHmFQSGHRUvLGE9Uq2J5PxthdKxRjhh8c/C1yw W9tmhAH2bUgKtwAliJS2KCn6yys5iaLQAxA5gC0Svc6NooWWz6khCaYKKYXuHC6nOwRr JRO5PsENXDwUzJwJq3tlz3+cpTB75QItha6JUzC0JTUwWk/OvVstvWYOr2SCuDZfLd+3 62vlG8wB/gXoOjU+2uZkriNgvEHxFtLNcBraoqejvKpZ1XQT+cXG7lMuuxEsPWcm6Wsx Uw6PkWvIqJzbPCttXOnpgiZp/6FVW4qYU7YD4GJItadkVZHe1k73ES7FMwpT9xr3dLPN 7JIg== X-Gm-Message-State: AAQBX9chjDBhGU26reLP3fRqMGpBdCzPAiy4EBameVak9hC6Zjod+G7+ 75V705s2xsNkBN794pf9KpCMn7ZS/fdcK0X4OXn6MTjn9KQ= X-Google-Smtp-Source: AKy350Ymx9lsm21WDrJ1t8kTaRc4a/yjhZ4UU5tDZLNylFUDMt8KeO5Qx4WSD5rS2i8TIO7u//j8BxW8sH8p6UOxVA0= X-Received: by 2002:a05:6a00:84d:b0:625:644c:65f2 with SMTP id q13-20020a056a00084d00b00625644c65f2mr15919421pfk.3.1680360856449; Sat, 01 Apr 2023 07:54:16 -0700 (PDT) In-Reply-To: <83ttxzyafp.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=yoichi.nakayama@gmail.com; helo=mail-pg1-x536.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 01 Apr 2023 11:10:48 -0400 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:305014 Archived-At: On Sat, Apr 1, 2023 at 10:54=E2=80=AFPM Eli Zaretskii wrote: > > > From: Yoichi Nakayama > > Date: Sat, 1 Apr 2023 22:37:30 +0900 > > Cc: emacs-devel@gnu.org > > > > No, it will not update the frame-parameter of the existing frame. > > I=E2=80=99ve confirmed > > (frame-parameter nil 'environment) =3D> nil > > on the window/buffer created by the modified emacsclient, while > > (process-get (car server-buffer-clients) 'env) > > returns environment variables on it. > > That's because we currently refrain from changing the 'environment' > frame parameter -- we tried at some point, and it caused problems we > decided to defer to later. But it is still an option to do that at > some point, and so I don't want to block that possibility for trhe > benefit of this use case. I understand the situation. However, I would like there to be a way to propagate the client's environment variables without updating the frame's environment. Because users of emacsclient don't necessarily want to affect the entire frame. The server-buffer-clients element has a 1:1 correspondence with clients, so I think it makes sense to always store client information there. I find it strange that the server-buffer-clients element doesn't have environment variables when we don't create a frame. --=20 Yoichi NAKAYAMA