emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Sébastien Vauban
Subject: [Orgmode] Re: [BUG] org-babel-tangle causes "Wrong type argument: sequencep, hline"
Date: Sun, 27 Feb 2011 23:41:28 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)

Hi Eric,

"Eric Schulte" wrote:
> Sébastien Vauban <address@hidden> writes:
>> "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

Thanks a lot for the precision...

Best regards,
  Seb

-- 
Sébastien Vauban




reply via email to

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