[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding with-editor to Emacs?
From: |
Eli Zaretskii |
Subject: |
Re: Adding with-editor to Emacs? |
Date: |
Mon, 04 Sep 2023 15:18:31 +0300 |
> From: Manuel Giraud <manuel@ledu-giraud.fr>
> Cc: jonas@bernoul.li, stefankangas@gmail.com, emacs-devel@gnu.org,
> rms@gnu.org
> Date: Mon, 04 Sep 2023 10:21:15 +0200
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> [...]
>
> >> Not really I guess. I don't know how to set EDITOR correctly to do the
> >> following:
> >>
> >> - M-x shell
> >> - ssh remote-server
> >> - su -l
> >> - vipw --> open a new buffer in *this* Emacs
> >>
> >> But, I could do this with with-editor and eshell (maybe it could work
> >> for M-x shell also, I don't know) as follow:
> >>
> >> - C-x C-f /ssh:remote-server|su::
> >> - M-x eshell
> >> - vipw --> and here it works, opening an Emacs buffer through
> >> emacsclient so I could edit and C-c C-c when done
> >
> > You've lost me here. You assume I know what with-editor does?
>
> Ok, I might be lost also (as I said I'm not an expert of everything
> with-editor does). I'll try to rephrase. with-editor is able to
> correctly set EDITOR to have any shell command that need editing appear
> into an Emacs buffer locally. Such command might be over a ssh session
> or into a sudo for instance.
And it provides a separate value for EDITOR to each one of these
cases?
> So I guess you're right it is just a matter of setting EDITOR after all.
> But I think that this is the hard part that with-editor does for you.
- Re: Adding with-editor to Emacs?, (continued)
- Re: Adding with-editor to Emacs?, Eli Zaretskii, 2023/09/03
- Re: Adding with-editor to Emacs?, Michael Albinus, 2023/09/02
- Re: Adding with-editor to Emacs?, Jonas Bernoulli, 2023/09/02
- Re: Adding with-editor to Emacs?, Manuel Giraud, 2023/09/03
- Re: Adding with-editor to Emacs?, Eli Zaretskii, 2023/09/03
- Re: Adding with-editor to Emacs?, Manuel Giraud, 2023/09/03
- Re: Adding with-editor to Emacs?, Eli Zaretskii, 2023/09/03
- Re: Adding with-editor to Emacs?, Manuel Giraud, 2023/09/04
- Re: Adding with-editor to Emacs?,
Eli Zaretskii <=
- Re: Adding with-editor to Emacs?, Manuel Giraud, 2023/09/04
- Re: Adding with-editor to Emacs?, Manuel Giraud, 2023/09/04
- Re: Adding with-editor to Emacs?, Richard Stallman, 2023/09/05
- Re: Adding with-editor to Emacs?, Richard Stallman, 2023/09/04
- Re: Adding with-editor to Emacs?, Björn Bidar, 2023/09/15
- Re: Adding with-editor to Emacs?, Richard Stallman, 2023/09/17
- Re: Adding with-editor to Emacs?, Philip Kaludercic, 2023/09/18
- Re: Adding with-editor to Emacs?, Richard Stallman, 2023/09/20