Hello, Aaron Ecay <aarone...@gmail.com> 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