2

When I execute a babel src block with add-to-list function like this:

#+begin_src emacs-lisp 
(add-to-list 'org-src-lang-modes (quote ("plantuml" . fundamental)))
#+end_src

I will get this error message:

executing Emacs-Lisp code block...
orgtbl-format-line: Wrong type argument: listp, fundamental

The syntax is correct, as I can evaluate it on .emacs buffer without a problem.

The org-mode version is 8.2.10 if it helps.

0

1 Answer 1

3

When evaluating the code, Org-mode takes the return value of add-to-list, which is the list with the new element added, and tries to display it. Lists are displayed as tables, but apparently it doesn't like symbols in the list. (I'm inclined to think that this is a bug in Org-mode.)

You can work around it by asking Org-mode not to display the return value of the code block:

#+BEGIN_SRC emacs-lisp :results silent
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.