From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: Adding with-editor to Emacs? Date: Fri, 1 Sep 2023 10:25:59 -0700 Message-ID: <776424a5-4754-2d30-9bfa-1c25d9be451d@gmail.com> References: <85msy98sni.fsf@elpa.gnu.org> <87r0nidkmt.fsf@bernoul.li> <83bkelc1p1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13058"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, rms@gnu.org To: Eli Zaretskii , Jonas Bernoulli , Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 01 19:27:17 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 1qc7vR-0003Bn-Mt for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Sep 2023 19:27:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qc7uW-0002a2-Th; Fri, 01 Sep 2023 13:26:21 -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 1qc7uM-0002Z6-4e for emacs-devel@gnu.org; Fri, 01 Sep 2023 13:26:12 -0400 Original-Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qc7uG-0001Fo-Qu; Fri, 01 Sep 2023 13:26:09 -0400 Original-Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-564b8e60ce9so1574902a12.2; Fri, 01 Sep 2023 10:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693589160; x=1694193960; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=sOkHWspC+MBZ2KZvejqjqjB8j/6aLLwvTmXh/3MiUxo=; b=lVn7UBiSMhrAjOdGRsYGfODuouz0P8bIWiRzSrW1GlMv/nOFxIlUTB6NkerPfkZPZD cOBEozKlNs7uMFZsNp0uLFkoPqsiDLA3S073U2eaC9odKdRYO7TfVs9W0HeYtgyCE+g+ yTSnuls0L0g99aIxX5QscAbJGaDpVVhNHfq7nZldDw63/IbwxnLFzatGrveWd+Ldlzdp jvcb6Z4UmLNS0UXqKevUHh2ZZcLxDU6UqVrF9h2jtYR3MX3SrYTuAG/DsQ/7FT4llx+L 4K00GoqfvT6wXCpsV/oGbqRBQzP52W8xRSNCzspMkvcIDU+1he7RG0do+RGNkAC6Vn6o 3maA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693589160; x=1694193960; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sOkHWspC+MBZ2KZvejqjqjB8j/6aLLwvTmXh/3MiUxo=; b=b3H/2hFx+xqHwN2uAyxE1XyQZIsZBdADkENX7Osd8/dM0OItZmc1TeFVN6JfWavkAB gKJF7x54wQgmw9xdVwputvRStJzMSLrPHxDmwdzLEEw72BZ+Vl+5p3Ai3dwzsZJp0yir 28xsyZBuM1OrNJ2IEhNy0qdTRh3SaM6ipj3ywpfIWZolaeikzzOWaZtUT6Un8TB5tvt/ d7cnX14YDGEqut8bgmbONzC/0LJ8fhGvKnxl5ErWOlT8mIW3szGJ/ON5rXfKhHz+g6xF FE3K2h/3h3hn62KtN6bRbGO6MCNU2zDLd55k03HdyNmnnD8ycR/pKeMoSJYqeQGK/1ku 1JMA== X-Gm-Message-State: AOJu0YwXfy+9YlzaadIRseGCCnF4bvxX9pe+K2+hSqsM2lE2Gu0t5HaJ OdEgm9Tusf0fdI/1YSA7Jw9YZOWhpns= X-Google-Smtp-Source: AGHT+IEzgk0V5ag46a81mE35pk8ubKni+8hwUzhX8JeReAhcZTHQPN1G6/CkuatqdruiWCC8V5HWNQ== X-Received: by 2002:a17:90a:6d62:b0:263:9e9b:5586 with SMTP id z89-20020a17090a6d6200b002639e9b5586mr2888666pjj.44.1693589160132; Fri, 01 Sep 2023 10:26:00 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id a12-20020a17090a740c00b00262fc3d911esm4847934pjg.28.2023.09.01.10.25.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Sep 2023 10:25:59 -0700 (PDT) Content-Language: en-US In-Reply-To: <83bkelc1p1.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=jporterbugs@gmail.com; helo=mail-pg1-x534.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-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:309823 Archived-At: On 9/1/2023 9:12 AM, Eli Zaretskii wrote: >> From: Jonas Bernoulli >> Cc: rms@gnu.org >> Date: Fri, 01 Sep 2023 16:38:02 +0200 >> >> I think the next step is to ask Eli and others, how they would want to >> integrate the library / the functionality it provides. > > I'm probably missing something because if all we want is to allow > child processes to use the current Emacs session as their editor, we > just need to inject some environment variables into > process-environment when running those child processes, and start the > server. Emacs knows very well where to find its corresponding > emacsclient. Why is there a need for a separate library? I'm not totally sure *all* of what with-editor does, but it does let you do this over Tramp too (still using your local emacsclient). That requires a bit more magic to get it work.