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 7608807
In Process

The Archive Base Latest Questions

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

Can anyone give examples of using the sbe function in ob-table.el ? I must

  • 0

Can anyone give examples of using the sbe function in ob-table.el? I must be missing something because I haven’t been able to get it to work with straight-up elisp.

#+name: add1(x=1) :results silent
#+begin_src python
return x + 1
#+end_src

This works:

| 1 | 2 | 3 | 4 |
#+TBLFM: @1$4='(sbe add1 (x $3))

But this does not:

#+begin_src emacs-lisp
(sbe add1 (x 2))
#+end_src

error: Wrong type argument: sequencep, 2

Changing 2 to a list just aggravates it further:

#+begin_src emacs-lisp
(sbe add1 (x (list 2))
#+end_src

error: Wrong type argument: buffer-or-string-p, 2

  • 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-31T01:00:55+00:00Added an answer on May 31, 2026 at 1:00 am

    If I’m understanding your question correctly you’re trying to use your named source block outside of tables to call for results.

    First of all, your :results silent belongs on the #+begin_src line and not the #+name (only relevant if you ever evaluate that block directly). I’m switching to emacs-lisp from python simply because I don’t have python on this machine so can’t evaluate the block otherwise, the function remains equivalent.

    #+name: add1(x=1)
    #+begin_src emacs-lisp :results silent
      (+ x 1)
    #+end_src
    

    In Org Tables the proper command is the one you used: #+tblfm: @1$4='(sbe add1 (x $3))

    When using code blocks outside of tables you have to use #+CALL: instead (see Evaluating Code Blocks).

    For example:

    #+CALL: add1(x=2)
    
    #+RESULTS: add1(x=2)
    : 3
    
    #+CALL: add1(4)
    
    #+RESULTS: add1(4)
    : 5
    
    #+call: add1(add1(2))
    
    #+RESULTS: add1(add1(2)
    : 4
    

    Edit (Adding in answer from comment):

    If you simply want to clean up your formulas and be better able to read through them to make changes, the formula editor C-c ' will let you see them more clearly as well as highlight cell references to ensure you’re selecting the right regions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone give me a complete list of string manipulation function in Microsoft SQL
Can anyone give a simple example of a DB transaction using an Intentional Shared
Trying to understand free-identifier=? and bound-identifier=?. Can anyone give me equivalent code examples where
Can anyone give me an example of how I can consume the following web
Can anyone tell or define more what is ancestor and give an example on
Can anyone give me pointers to good books or web sites that teach how
Can anyone give me details of runtime error 3734 in Access vba. For reference
Can anyone give a concise set of real-world considerations that would drive the choice
Can anyone give me a scenario where they think busy cursors are justified? I
Can anyone give me an idea how can we show or embed a YouTube

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.