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: Sun, 03 Sep 2023 18:34:55 +0300 Message-ID: <83ledn6zj4.fsf@gnu.org> References: <85msy98sni.fsf@elpa.gnu.org> <87r0nidkmt.fsf@bernoul.li> <83bkelc1p1.fsf@gnu.org> <87fs3xwzxm.fsf@bernoul.li> <837cp9bur7.fsf@gnu.org> <87zg23tjby.fsf@ledu-giraud.fr> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10304"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jonas@bernoul.li, stefankangas@gmail.com, emacs-devel@gnu.org, rms@gnu.org To: Manuel Giraud Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 03 17:36:06 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 1qcp8v-0002QI-FQ for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Sep 2023 17:36:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcp8I-0001uV-Je; Sun, 03 Sep 2023 11:35:26 -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 1qcp8H-0001u9-1c for emacs-devel@gnu.org; Sun, 03 Sep 2023 11:35:25 -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 1qcp8F-00011s-Bv; Sun, 03 Sep 2023 11:35:23 -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=IqXaHk97BiysX7uBTtVxCwu8ZctPN5PYxtBC3k4RjM4=; b=SRDA/JC6LW1d K3+ZsH1n5cdJaj7dfvy3AuRksOyjXL+ZZrM1AqqDYdpeUFD35xzn2Tx/ne/HkX/rlO59l0Ll6FBD7 Q/7vpPWYTmkWK3bILPcnPSdpjn07BRLfN93LJbmR1rFxzzuq2h1eNzP4C65jOjhtph8294dQUto5a /ixfS8uvFUSN03EIRhFIjRjK6bqSCaP6AAqSBwpkUBlAA9ebNKewK0kn1+K0bGqTILpMi3U3W3ygD VIgKbBsk5spA2otZxGhLlbwm2yYudNAehHe7xTjAWTGjGIAm3zUbKFVKERmwCwtQne99LEcUJ74Pb 0Z5kEcDF1Cxp0mT1rQAbeA==; In-Reply-To: <87zg23tjby.fsf@ledu-giraud.fr> (message from Manuel Giraud on Sun, 03 Sep 2023 16:36:17 +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:309987 Archived-At: > From: Manuel Giraud > Cc: Jonas Bernoulli , stefankangas@gmail.com, > emacs-devel@gnu.org, rms@gnu.org > Date: Sun, 03 Sep 2023 16:36:17 +0200 > > >> - It provides some convenience functionality to use this from various > >> shells running inside Emacs. > > > > Can you provide details? The above is too terse for me to understand > > the functionality. > > Just my one 2 cents datapoint: > > I have this line in my init.el > (add-hook 'eshell-mode-hook 'with-editor-export-editor) > > and now, I can do a standard Unix "crontab -e" or "vipw" to edit those > special files from a remote eshell (be it via sudo, ssh whatever). So we are talking about EDITOR settings missing from the shell init files? (I believe "M-x shell" does read the shell's init file, doesn't it?)