Fork me on GitHub
#emacs
<
2017-02-04
>
statonjr03:02:24

@ag What version of Emacs and org-mode are you using? I’m on 25.1 and 9.0.4. I upgraded to 9.0.4 and ran into the same issue as you. I changed some code in ob-clojure.el and now I see results in the #+RESULTS block.

hlolli14:02:22

What would be a smart way to wrap messaging buffer sending to stdout and/or to api endpoint. In short I have logs arriving from an app, and I want to print them into emacs buffer in the same way as nrepl or Message buffers are printing logs. I'm tempted to use some async libs to ask if the buffer-queue has any logs, then print the log and pop the buffer. But somethign tells me there must be a way to redirect stdout into emacs (though I cant start the process with sentiel as I'm using emacs modules). Well, can't get my question out probably, but any reading material on logging would be also appreachiated.

cmack14:02:57

@hlolli are the logs only going to stdout or are they going to a file? I’ve not tried it, but here is a snippet where someone uses emacs in place of tail -f : http://www.commandlinefu.com/commands/view/11556/use-emacs-in-place-of-tail-f

hlolli14:02:18

yes, its going to stdout if I want. Very cool hack there, did consider using emacsclient and start server and do emacsclient --eval. Maybe I should reconsider that. Another way Im considering is to somehow connect two processes togeather. Because Im using comnit mode buffer, and to get it started Im starting a noop emacs process called "hexl" which has TTY: /dev/pts/0, maybe its possible to set stdout from my logs into stdin of /dev/pts/0?

hlolli14:02:33

bamm echo "olafur" > /dev/pts/0 prins the string in the emacs buffer.

cmack14:02:14

if you don’t want to lose stdout you could use tee too

cmack14:02:01

echo “olafur” | tee /dev/pts/0

hlolli14:02:54

ah yes I see the difference.

hlolli14:02:59

thanks, Im a noob in this area.

cmack14:02:26

no problem. I hope it works out. 🙂