Creating a new buffer with text using EmacsClient

Posted by User1 on Stack Overflow See other posts from Stack Overflow or by User1
Published on 2010-03-17T18:50:30Z Indexed on 2010/03/17 19:11 UTC
Read the original article Hit count: 241

Filed under:
|

I have a program that can send text to any other program for further analysis (eg sed, grep, etc). I would like it to send the data to Emacs and do analysis there. How would I do that? EmacsClient takes a filename by default, this is a data string not a file and I really don't want to create and delete files just to send data to Emacs.

EmacsClient has an "eval" command-line option that let's you execute lisp code instead of open files. Is there a simple lisp function that will open a new buffer with the given text?

© Stack Overflow or respective owner

Related posts about emacs

Related posts about elisp