From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: [BUG] org-babel-tangle causes "Wrong type argument: sequencep, hline" Date: Sun, 27 Feb 2011 14:19:28 -0700 Message-ID: <87zkph89b3.fsf@gmail.com> References: <87zkpha2de.fsf@gmail.com> <8039n9nswf.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=41453 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pto1g-0000qH-Hs for emacs-orgmode@gnu.org; Sun, 27 Feb 2011 16:19:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pto1f-0007VW-ON for emacs-orgmode@gnu.org; Sun, 27 Feb 2011 16:19:36 -0500 Received: from mail-px0-f169.google.com ([209.85.212.169]:58709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pto1f-0007V6-Jq for emacs-orgmode@gnu.org; Sun, 27 Feb 2011 16:19:35 -0500 Received: by pxi9 with SMTP id 9so823588pxi.0 for ; Sun, 27 Feb 2011 13:19:34 -0800 (PST) In-Reply-To: <8039n9nswf.fsf@somewhere.org> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Sun, 27 Feb 2011 21:07:12 +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: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org S=C3=A9bastien Vauban 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 (=3D 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) (=3D (length ls) 1)) (car = ls) ls))) (open (mapcar - (lambda (sub-lis) (org-babel-ref-index-list remainder sub-li= s)) + (lambda (sub-lis) + (if (listp sub-lis) + (org-babel-ref-index-list remainder sub-lis) + sub-lis)) (if (or (=3D 0 (length portion)) (string-match ind-re portio= n)) (mapcar (lambda (n) (nth n lis)) #+end_src Best -- Eric