How can I convert a list to string so I can call insert or message with it? I need to display c-offsets-alist but I got Wrong type a
insert
message
c-offsets-alist
Wrong type a
(format) will embed parentheses in the string, e.g.:
(format)
ELISP> (format "%s" '("foo" "bar")) "(foo bar)"
Thus if you need an analogue to Ruby/JavaScript-like join(), there is (mapconcat):
join()
(mapconcat)
ELISP> (mapconcat 'identity '("foo" "bar") " ") "foo bar"