all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Manuel Giraud via "Emacs development discussions." <emacs-devel@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: rms@gnu.org,  emacs-devel@gnu.org
Subject: Re: with-editor seems like a bug fix
Date: Thu, 27 Jun 2024 11:44:54 +0200	[thread overview]
Message-ID: <87o77miusp.fsf@ledu-giraud.fr> (raw)
In-Reply-To: <86frsz6i6v.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 27 Jun 2024 08:58:00 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Richard Stallman <rms@gnu.org>
>> Date: Wed, 26 Jun 2024 23:07:14 -0400
>> 
>> What with-editor does seems like a bug fix to me, not like a feature.
>> It really ought to be standardly enabled in Emacs whenever the Emacs
>> client is.
>
> If someone can explain what is/are the bug(s) and show a recipe for
> reproducing it/them, we will fix it, yes.

I said it in september 2023 and I don't know if it's a bug that needs a
fix but here is recipe of what 'with-editor' does well and could be
useful:

   - 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

Note that:
   - EDITOR is set to "emacsclient" on the localhost
   - Emacs/emacsclient is not installed on remote-server

It seems that 'with-editor' does that with the following shell hackery
into $EDITOR on the remote server:

sh -c 'printf "\nWITH-EDITOR: $$ OPEN $0\037$1\037 IN $(pwd)\n"; sleep
604800 & sleep=$!; trap "kill $sleep; exit 0" USR1; trap "kill $sleep;
exit 1" USR2; wait $sleep'

So maybe that is what we need in Emacs if we want this feature.
-- 
Manuel Giraud



  parent reply	other threads:[~2024-06-27  9:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-27  3:07 with-editor seems like a bug fix Richard Stallman
2024-06-27  5:58 ` Eli Zaretskii
2024-06-27  6:14   ` Po Lu
2024-06-27  9:44   ` Manuel Giraud via Emacs development discussions. [this message]
2024-06-27 10:29     ` Eli Zaretskii
2024-06-27 10:58       ` Michael Albinus
2024-06-29 11:06       ` Michael Albinus
2024-06-29 12:38         ` Eli Zaretskii
2024-06-29 12:47           ` Michael Albinus
2024-06-29 12:58             ` Eli Zaretskii
2024-06-29 14:39               ` Michael Albinus
2024-06-29 15:58                 ` Eli Zaretskii
2024-06-29 16:08                   ` Michael Albinus
2024-07-02 19:43                     ` Jonas Bernoulli
2024-07-06 11:15                       ` Michael Albinus
2024-06-30 11:51               ` Manuel Giraud via Emacs development discussions.
2024-07-01  1:52                 ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o77miusp.fsf@ledu-giraud.fr \
    --to=emacs-devel@gnu.org \
    --cc=eliz@gnu.org \
    --cc=manuel@ledu-giraud.fr \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.