From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Alexiev Subject: [BUG] org-babel-tangle causes "Wrong type argument: sequencep, hline" Date: Sun, 27 Feb 2011 13:57:47 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=42060 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pth8U-0004Cd-J1 for emacs-orgmode@gnu.org; Sun, 27 Feb 2011 08:58:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pth8T-0000ML-IO for emacs-orgmode@gnu.org; Sun, 27 Feb 2011 08:58:10 -0500 Received: from lo.gmane.org ([80.91.229.12]:60307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pth8T-0000MA-65 for emacs-orgmode@gnu.org; Sun, 27 Feb 2011 08:58:09 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pth8P-0006Dx-7Y for emacs-orgmode@gnu.org; Sun, 27 Feb 2011 14:58:05 +0100 Received: from 85.239.150.142 ([85.239.150.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Feb 2011 14:58:05 +0100 Received: from vladimir by 85.239.150.142 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Feb 2011 14:58:05 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org When I try to tangle the simple file shown below, I get this error: "Wrong type argument: sequencep, hline". Org-mode version 7.4 (release_7.4.44.g49d9c.dirty) I have the default values of these args (checked through gebugging) According to the help: * :hlines: `no' (default) Strips horizontal lines from the input table. * :colnames `nil' (default) If an input table looks like it has column names (because its second row is an hline), then the column names will be removed from the table before processing This is urgent for me, so any help is appreciated! ---- input file: #+STARTUP: showeverything #+BABEL: :tangle yes * Normalize #+tblname: normalize | search | replace | |---------------+--------------| | no salt added | without salt | #+begin_src perl :var norm_search=normalize[*,0] :var norm_repl=normalize[*,1] $norm_search; $norm_repl; #+end_src ---- backtrace cut at 74 columns (email me for the full backtrace): Debugger entered--Lisp error: (wrong-type-argument sequencep hline) org-babel-ref-index-list("0" hline) #[(sub-lis) "\302 \"\207" [remainder sub-lis org-babel-ref-index-lis mapcar(#[(sub-lis) "\302 \"\207" [remainder sub-lis org-babel-ref-i org-babel-ref-index-list("*,0" (("search" "replace") hline ("no salt add org-babel-ref-resolve("normalize[*,0]") org-babel-ref-parse("norm_search=normalize[*,0]") (if (consp (cdr el)) (cdr el) (org-babel-ref-parse (cdr el))) (lambda (el) (if (consp (cdr el)) (cdr el) (org-babel-ref-parse (cdr el) mapcar((lambda (el) (if (consp (cdr el)) (cdr el) (org-babel-ref-parse ( (org-babel-disassemble-tables (mapcar (lambda (el) (if (consp (cdr el)) (let* ((vars-and-names (org-babel-disassemble-tables (mapcar (lambda (el org-babel-process-params(((:comments . "") (:shebang . "") (:cache . "no org-babel-get-src-block-info() byte-code("\203 I tried debugging but quickly got lost. Still, some observations: - org-babel-disassemble-tables: didn't seem to do much since 'vars' was nil - org-babel-ref-index-list: I think it should receive the stripped table, i.e. these elements should have been removed: ("search" "replace") hline