From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: [BUG] org-babel-tangle causes "Wrong type argument: sequencep, hline"
Date: Sun, 27 Feb 2011 23:41:28 +0100 [thread overview]
Message-ID: <80pqqdm76v.fsf@somewhere.org> (raw)
In-Reply-To: 87zkph89b3.fsf@gmail.com
Hi Eric,
"Eric Schulte" wrote:
> Sébastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> 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
_______________________________________________
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
next prev parent reply other threads:[~2011-02-27 22:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-27 13:57 [BUG] org-babel-tangle causes "Wrong type argument: sequencep, hline" Vladimir Alexiev
2011-02-27 16:06 ` Eric Schulte
2011-02-27 20:07 ` Sébastien Vauban
2011-02-27 21:19 ` Eric Schulte
2011-02-27 22:41 ` Sébastien Vauban [this message]
2011-02-27 23:21 ` Vladimir Alexiev
2011-02-28 0:19 ` Eric Schulte
2011-02-28 0:58 ` [BUG] org-babel-tangle causes Vladimir Alexiev
2011-02-28 4:03 ` Eric Schulte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=80pqqdm76v.fsf@somewhere.org \
--to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.