-1

What am I missing?

As they say: In every program is a bug.

(defun test-test ()
    (interactive)
    (let ((lll (list "a" "b")))
        (message (concat "<" (car lll) ":" (cdar lll) ">"))
))

Error:

concat: Wrong type argument: listp, "a"
4

2 回答 2

1

你拼错了你的cadr:)。

(defun test-test ()
  (let ((lll (list "a" "b")))
    (message (concat "<" (car lll) ":" (cadr lll) ">"))))

另外,如果您不打算用它来调用它,则不需要交互式M-x

于 2013-08-09T07:17:04.023 回答
0

在菜单中启用“Options => Enter Debugger on Error”,您将获得一个可以澄清问题的回溯。

于 2013-08-09T13:15:11.640 回答