emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: [BUG] org-babel-tangle causes "Wrong type argument: se


From: Eric Schulte
Subject: Re: [Orgmode] Re: [BUG] org-babel-tangle causes "Wrong type argument: sequencep, hline"
Date: Sun, 27 Feb 2011 14:19:28 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Sébastien Vauban <address@hidden> writes:

> Hi Eric,
>
> "Eric Schulte" wrote:
>> I've just pushed up a change which should fix this issue i.e., the code
>> block below now evaluates without error.
>
> Just for my (= our) information, which combination was special here and had to
> be fixed in the code?
>

The hline was assumed to be a list (as normal rows are) by the indexing
code, so I just inserted a quick check to ensure that hlines are left
alone.

#+begin_src diff
  diff --git a/lisp/ob-ref.el b/lisp/ob-ref.el
  index 6cb41ae..31944fd 100644
  --- a/lisp/ob-ref.el
  +++ b/lisp/ob-ref.el
  @@ -181,7 +181,10 @@ to \"0:-1\"."
                  (open (ls) (if (and (listp ls) (= (length ls) 1)) (car ls) 
ls)))
             (open
              (mapcar
  -            (lambda (sub-lis) (org-babel-ref-index-list remainder sub-lis))
  +            (lambda (sub-lis)
  +           (if (listp sub-lis)
  +               (org-babel-ref-index-list remainder sub-lis)
  +             sub-lis))
               (if (or (= 0 (length portion)) (string-match ind-re portion))
                   (mapcar
                   (lambda (n) (nth n lis))
#+end_src

Best -- Eric



reply via email to

[Prev in Thread] Current Thread [Next in Thread]