eldev icon indicating copy to clipboard operation
eldev copied to clipboard

Two problems with eldev emacs --fg-daemon

Open pidu opened this issue 2 years ago • 1 comments

Trying to run eldev emacs --fg-daemon I notice two problems compared to running same emacs command without eldev.

  1. Ctrl-c will leave the emacs process running
  2. The output is not relayed to STDOUT

pidu avatar Mar 09 '22 21:03 pidu

It's a problem with Elisp, it doesn't really allow precise control over child processes. E.g. this is a trivial wrapper over cat in shellscript:

#!/bin/sh
cat
echo done

It "parrots" all the text lines you enter and prints "done" at the end, if you terminate it with C-d (i.e. make stdin close). You can also abort it with C-c. But I don't know if it is possible to reproduce this in Elisp anyhow, e.g. with emacs --batch --load some-script.el. At least I didn't find any way when trying ideas from #25.

doublep avatar Mar 10 '22 17:03 doublep

Fixed in Eldev 1.2.

doublep avatar Aug 17 '22 08:08 doublep