The With-Editor User Manual describes how to use the With-Editor package.
This manual documents the With-Editor Emacs package, version 3.0.4, written by Jonas Bernoulli. The package is used internally by Magit when editing commit messages and rebase sequences, and also provides commands and features that are useful on their own, such as running shell commands with the current Emacs instance exported as $EDITOR.
The manual explains how to configure With-Editor, including how it locates a suitable emacsclient executable and the "sleeping editor" fallback used for remote processes. It also describes using With-Editor as a library from other packages via the with-editor macro, and gives debugging guidance, including the M-x with-editor-debug command and the issue tracker at github.com/magit/with-editor.
It is used internally by Magit when editing commit messages and rebase sequences, and it also provides commands and features that are useful by themselves, even without Magit.
Open a new issue at https://github.com/magit/with-editor/issues and provide information about your Emacs installation, including the output of M-x with-editor-debug RET.
Either remap async-shell-command and shell-command to with-editor-async-shell-command and with-editor-shell-command in your init file, or use the global shell-command-with-editor-mode.
It is a shell script used as the editor of child processes when the emacsclient executable cannot be used, for example for processes running on a remote machine via Tramp.