I'm trying to run emacsclient -e
with an expression that evaluates to a string containing newlines, and I'd like those newlines to be rendered on the console as newlines rather than \n
.
Unfortunately, every attempt I've made so far prints the escaped newline:
$ emacsclient -e '(string-join (list "a" "b" "c") "\n")'
"a\nb\nc"
$ emacsclient -e '(print (string-join (list "a" "b" "c") "\n"))'
"a\nb\nc"
$ emacsclient -e '(message (string-join (list "a" "b" "c") "\n"))'
"a\nb\nc"
$ emacsclient -e '(string-join (list "a" "b" "c") "
> "))'
"a\nb\nc"
What am I missing? Bonus points if the quotation marks can also be removed from the output. Intended output:
$ emacsclient -e '(somefunction (list "a" "b" "c"))'
a
b
c