From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Lisp code blocks fail Date: Wed, 13 Nov 2013 14:33:35 -0700 Message-ID: <87vbzv8vsp.fsf@gmail.com> References: <87wqkc9m43.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgoKH-0000l9-UL for emacs-orgmode@gnu.org; Wed, 13 Nov 2013 23:14:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VgoKD-0004lN-AO for emacs-orgmode@gnu.org; Wed, 13 Nov 2013 23:14:41 -0500 Received: from mail-pb0-x22e.google.com ([2607:f8b0:400e:c01::22e]:46483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgoKD-0004lH-39 for emacs-orgmode@gnu.org; Wed, 13 Nov 2013 23:14:37 -0500 Received: by mail-pb0-f46.google.com with SMTP id un15so1440455pbc.19 for ; Wed, 13 Nov 2013 20:14:36 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: Org-mode Hi Tom, That example works for me. Perhaps you could edebug (C-u C-M-x) the `org-babel-execute:lisp' function and then run that code block again to see at which statement the error is thrown. I'm not sure what the problem could be. Best, tsd@tsdye.com (Thomas S. Dye) writes: > Hi Eric, > > #+begin_src lisp > (+ 1 1) > #+end_src > > Debugger entered--Lisp error: (wrong-type-argument listp "2") > byte-code("\211A@)\207" [result x] 2) > org-babel-execute:lisp("(+ 1 1)" ((:comments . "") (:shebang . "") > (:cache . "no") (:padline . "") (:noweb . "yes") (:tangle . "no") > (:exports . "code") (:results . "replace") (:session . "none") > (:hlines . "no") (:result-type . value) (:result-params "replace") > (:rowname-names) (:colname-names))) > org-babel-execute-src-block(nil) > org-babel-execute-src-block-maybe() > org-babel-execute-maybe() > org-babel-execute-safely-maybe() > run-hook-with-args-until-success(org-babel-execute-safely-maybe) > org-ctrl-c-ctrl-c(nil) > ad-Orig-call-interactively(org-ctrl-c-ctrl-c nil nil) > (with-no-warnings (ad-Orig-call-interactively function record-flag keys)) > (setq ad-return-value (with-no-warnings (ad-Orig-call-interactively function record-flag keys))) > (let ((ido-ubiquitous-next-override > (ido-ubiquitous-get-command-override function))) (setq ad-return-value > (with-no-warnings (ad-Orig-call-interactively function record-flag > keys)))) > (ido-ubiquitous-with-override (ido-ubiquitous-get-command-override > function) (setq ad-return-value (with-no-warnings > (ad-Orig-call-interactively function record-flag keys)))) > (let (ad-return-value) (ido-ubiquitous-with-override > (ido-ubiquitous-get-command-override function) (setq ad-return-value > (with-no-warnings (ad-Orig-call-interactively function record-flag > keys)))) ad-return-value) > call-interactively(org-ctrl-c-ctrl-c nil nil) > > Org-mode version 8.2.3b (release_8.2.3b-200-gb6522a @ /Users/dk/.emacs.d/src/org-mode/lisp/) > > All the best, > Tom > > Eric Schulte writes: > >> Hi Tom, >> >> Could you provide a minimal example? I'm unable to debug from the stack >> trace alone. -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D