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: Adding with-editor to Emacs? Date: Fri, 01 Sep 2023 19:12:26 +0300 Message-ID: <83bkelc1p1.fsf@gnu.org> References: <85msy98sni.fsf@elpa.gnu.org> <87r0nidkmt.fsf@bernoul.li> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34971"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, rms@gnu.org To: Jonas Bernoulli , Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 01 18:14:07 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 1qc6ma-0008m9-Qg for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Sep 2023 18:14:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qc6la-0001dF-LT; Fri, 01 Sep 2023 12:13:03 -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 1qc6lU-0001cu-P1 for emacs-devel@gnu.org; Fri, 01 Sep 2023 12:12:56 -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 1qc6lT-000412-Bg; Fri, 01 Sep 2023 12:12:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=B0EorrJMNpwyxq3gIQVvy+3veKiUQPoJw11ZlqipLcY=; b=lGpOVqhbIby6 WVbVPLw55OPyalW9+dWyD6xXvdGWUcMTUvyvORzu3Ez6UXYrEPhVRMTEKuhDwQE4TdcCxkmgyu8z2 9qR9odcRVPdjJlEVqYD1bYpT3zG8C7pSBmnLL8hqjqYLqQQpazH98n4ZoUscpetW1medXNUE5v6bV 4RpViRHZnlx1eNnY+40s4Lzu2rvG3AZ7xeKHLiy8ce2LtjNdfymmYdesxjKjhehI+jtbJAwIsnAU+ gAUKYR8hDtz3b38bdsyEvAUYgPfNQ/0Oh5fe7vABjuQtOyizQcONso0NCyGs6WLYxXYQeOG/xqWaJ qKT4AV4VA87i8VMkdLP7Uw==; In-Reply-To: <87r0nidkmt.fsf@bernoul.li> (message from Jonas Bernoulli on Fri, 01 Sep 2023 16:38:02 +0200) 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:309815 Archived-At: > 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? > As far as adding `server-window-alist' goes, that would certainly be > a win. If we want to extend server-window in some ways, that could be a separate change. It sounds like its utility is not necessarily specific to with-editor or to its main feature of allowing sub-processes use the parent Emacs as their editor. (I couldn't find the beginning of this discussion, so maybe I missed some of the relevant context, in which case I apologize.)