[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [RFC] [PATCH] [babel] read description lists as lists of lists
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [RFC] [PATCH] [babel] read description lists as lists of lists |
Date: |
Sat, 20 Sep 2014 13:52:39 +0200 |
Hello,
Aaron Ecay <address@hidden> writes:
> The attached patch makes babel read description lists as lists of the
> following format: (("term" "description") ...). The present default is
> to simply read in the text of each list item, yielding:
> ("term :: description" ...).
Thank you.
> Of course, it’s possible to interconvert between the two formats, but I
> think the greater structure of this proposal makes things easier for
> babel authors. (Another way of thinking of the proposal is that it
> treats description lists like two-column tables.)
>
> What do people think?
The problem I see here is that you're introducing yet another internal
representation for lists (along with element's and
org-list-parse-list's). Worse, it can only be discovered when reading
the docstring of a Babel internal function and will only benefit to
Babel.
If this new internal representation is better than current one, by all
means, improve `org-list-parse-list', and document it in
(info "(org) Radio lists")
This is more work, but, IMO, it is also the only sane way to proceed.
> +THE result is a list of strings \(the list items), unless the
You only need to escape parenthesis at the beginning of a line.
> + (mapcar (lambda (el)
> + (let ((s (split-string el " :: ")))
> + (list (nth 0 s) (mapconcat #'identity (cdr s) " :: "))))
This is really awkward. You can use a regexp to extract the tag.
Regards,
--
Nicolas Goaziou
- [O] [RFC] [PATCH] [babel] read description lists as lists of lists, Aaron Ecay, 2014/09/19
- Re: [O] [RFC] [PATCH] [babel] read description lists as lists of lists, Charles Berry, 2014/09/19
- Re: [O] [RFC] [PATCH] [babel] read description lists as lists of lists,
Nicolas Goaziou <=
- Re: [O] [RFC] [PATCH] [babel] read description lists as lists of lists, Aaron Ecay, 2014/09/23
- Re: [O] [RFC] [PATCH] [babel] read description lists as lists of lists, Nicolas Goaziou, 2014/09/24
- Re: [O] [RFC] [PATCH] [babel] read description lists as lists of lists, Aaron Ecay, 2014/09/24
- Re: [O] [RFC] [PATCH] [babel] read description lists as lists of lists, Nicolas Goaziou, 2014/09/26
- Re: [O] [RFC] [PATCH] [babel] read description lists as lists of lists, Aaron Ecay, 2014/09/28
- Re: [O] [RFC] [PATCH] [babel] read description lists as lists of lists, Thorsten Jolitz, 2014/09/28
- Re: [O] [RFC] [PATCH] [babel] read description lists as lists of lists, Nicolas Goaziou, 2014/09/28