Sébastien Vauban <wxhgmqzgw...@spammotel.com> 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

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to