Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7560395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:53:31+00:00 2026-05-30T12:53:31+00:00

When passing arguments to code block that exports results Org-mode fails to export with

  • 0

When passing arguments to code block that exports results Org-mode fails to export with the error “Wrong type argument: listp”. How can I fix this?

Here is an example. When it is exported it gives the error ‘Wrong type argument: listp, “bar”‘.

#+TITLE: Example

#+SOURCE: example-one
#+BEGIN_SRC emacs-lisp :exports results
(setq foo "bar")
#+END_SRC

#+SOURCE: example-two
#+BEGIN_SRC emacs-lisp :exports results :var x=example-one
(setq foo (concat x x))
#+END_SRC

I am running Org-mode 7.6 in Emacs 23.3.1.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:53:33+00:00Added an answer on May 30, 2026 at 12:53 pm

    This issue might simply be with the older copy of Org that you’re running. Tested it today with a recent git pull and get the results below. As pmr suggested, you might have better luck asking on the mailing list ( emacs-orgmode@gnu.org ) since there might be someone there who would know what caused this issue and what might have been changed to resolve it in later versions.

    The features and examples discussed in the manual are based on the current release version (7.8.03 in this case) so they will not always be compatible with older versions. Does the info-node in your version indicate that it should work?

    These 2 commands will show you the associated info-nodes for that section of the Org Manual

    ; The node itself
    (Info-goto-node "(org) var") 
    ; Parent node, in case the first node isn't present
    (Info-goto-node "(org) Working With Source Code") 
    

    Test Results

    Org

    * Test variable passing
    Headlines are created to split the code blocks apart.  When trying to eval on export I'm getting a syntax read error which was reported here: http://lists.gnu.org/archive/html/emacs-orgmode/2012-01/msg00993.html 
    
    ** Ex 1
    #+name: example-one
    #+BEGIN_SRC emacs-lisp :exports results
    (setq foo "bar")
    #+END_SRC
    
    ** Ex 2
    
    #+name: example-two
    #+BEGIN_SRC emacs-lisp :exports results :var x=example-one
    (setq foo (concat x x))
    #+END_SRC
    

    Latex

    \vspace*{1cm}
    Headlines are created to split the code blocks apart.  When trying to eval on export I'm getting a syntax read error which was reported here: \href{http://lists.gnu.org/archive/html/emacs-orgmode/2012-01/msg00993.html}{http://lists.gnu.org/archive/html/emacs-orgmode/2012-01/msg00993.html} 
    
    \section{Ex 1}
    \label{sec-1}
    
    
    
    \begin{verbatim}
     bar
    \end{verbatim}
    \section{Ex 2}
    \label{sec-2}
    
    
    
    
    \begin{verbatim}
     barbar
    \end{verbatim}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So my code isn't working... test.c:27: warning: passing argument 1 of ‘search’ from incompatible
I understand that I can specify system properties to Tomcat by passing arguments with
getting this error: C:\CodeBlocks\kool\praks3\vector.h|62|error: passing 'const Vector<2u>' as 'this' argument of 'std::string Vector::toString() [with
Is it somehow possible? I want that to enable compile-time passing of arguments. Suppose
I'm working with a method that takes a block as an argument. I'm new
I'm having issues passing arguments through run to the windows side To demonstrate, it
How do you decide between passing arguments to a method versus simply declaring them
Total noobie question here. I'm just learning Java, and studying passing arguments to functions.
I'm passing some numeric arguments while creating a process (in VC++) I'm stuck at
It seems like g++ ignores difference in array sizes when passing arrays as arguments.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.