Bug#985996: please support emacsclient as editor alternative
Package: emacs
Version: 1:27.1+1-3
Severity: wishlist
X-Debbugs-Cc: debian-emacsen@lists.debian.org
At the moment, it is possible to select emacs using the alternatives
system, select-editor, or sensible-editor, but not emacsclient.
I assume, that starting a new emacs instance for every editing task is
not desirable for most users.
Setting the EDITOR variable to emacsclient works for me, but in
some cases an "emacs-wrapper" might be better:
```
#!/usr/bin/bash
eval exec emacsclient --alternate-editor= --create-frame ${*@Q}
```
The switch --alternate-editor= with an empty argument lets
emacsclient start emacs, if no emacs server is found.
I'm not sure, whether --create-frame is a good idea or not.
I suggest to add such an emacs-wrapper to the package and
declare it as alternative editor.
Reply to: