emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Vladimir Alexiev <vladimir@sirma.bg>
To: emacs-orgmode@gnu.org
Subject: [BUG] org-babel-tangle causes "Wrong type argument: sequencep, hline"
Date: Sun, 27 Feb 2011 13:57:47 +0000 (UTC)	[thread overview]
Message-ID: <loom.20110227T144222-450@post.gmane.org> (raw)

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\b   \"\207" [remainder sub-lis org-babel-ref-index-lis
  mapcar(#[(sub-lis) "\302\b    \"\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("\b\203\b

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

             reply	other threads:[~2011-02-27 13:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-27 13:57 Vladimir Alexiev [this message]
2011-02-27 16:06 ` [BUG] org-babel-tangle causes "Wrong type argument: sequencep, hline" Eric Schulte
2011-02-27 20:07   ` Sébastien Vauban
2011-02-27 21:19     ` Eric Schulte
2011-02-27 22:41       ` Sébastien Vauban
2011-02-27 23:21       ` Vladimir Alexiev
2011-02-28  0:19         ` Eric Schulte
2011-02-28  0:58           ` [BUG] org-babel-tangle causes Vladimir Alexiev
2011-02-28  4:03             ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20110227T144222-450@post.gmane.org \
    --to=vladimir@sirma.bg \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).