How to convert list to string in Emacs Lisp

前端 未结 4 665
悲&欢浪女
悲&欢浪女 2021-02-01 02:52

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

4条回答
  •  你的背包
    2021-02-01 03:28

    I am not sure of what you are trying to achieve, but format converts "stuff" to strings. For instance:

    (format "%s" your-list)
    

    will return a representation of your list. message uses format internally, so

    (message "%s" your-list)
    

    will print it

提交回复
热议问题