From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: [BUG] org-babel-tangle causes "Wrong type argument: sequencep, hline" Date: Sun, 27 Feb 2011 23:41:28 +0100 Message-ID: <80pqqdm76v.fsf@somewhere.org> References: <87zkpha2de.fsf@gmail.com> <8039n9nswf.fsf@somewhere.org> <87zkph89b3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric, "Eric Schulte" wrote: > S=C3=A9bastien Vauban 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 (=3D our) information, which combination was special here an= d 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)) (ca= r 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 (=3D 0 (length portion)) (string-match ind-re port= ion)) > (mapcar > (lambda (n) (nth n lis)) > #+end_src Thanks a lot for the precision... Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode