Re: [O] Multicite syntax

2015-03-18 Thread Richard Lawrence
Nicolas Goaziou writes: >> I ask because in that kind of context, I think it is generally going to >> be more useful to deal with citation objects as a whole. I am not sure >> we will want to treat citation-references as individual objects which >> are themselves exported; instead, I think we wi

Re: [O] Multicite syntax

2015-03-17 Thread Nicolas Goaziou
Hello, Richard Lawrence writes: > Nicolas Goaziou writes: >> You could do the following >> >> (let ((citation (org-element-lineage (org-element-context) '(citation) t)) >> references) >> (save-excursion >> (goto-char (org-element-property :contents-begin citation)) >>

Re: [O] Multicite syntax

2015-03-17 Thread Richard Lawrence
Hi Nicolas, Nicolas Goaziou writes: > `org-element-context' never returns contents of objects or elements. > >> I'm sure there is something simple I am misunderstanding here about how >> nested objects work...can you enlighten me? > > You could do the following > > (let ((citation (org-element

Re: [O] Multicite syntax

2015-03-17 Thread Nicolas Goaziou
Richard Lawrence writes: > With this change, what's the proper way to get the citation-references > inside a citation? Before this change, one could simply do: > > (org-element-property :references citation) > > to get the references in a citation; what's the equivalent incantation > now? [...

Re: [O] Multicite syntax

2015-03-14 Thread Richard Lawrence
Hi Nicolas, Nicolas Goaziou writes: > Agreed. I introduced yet another syntax change in "wip-cite" branch. > > Now there are two separate objects "citation" and "citation-reference". > So the following multicite > > [cite:prefix; pre @a post; @b] > > is parsed like > > (citation (:prefix "p

Re: [O] Multicite syntax

2015-03-10 Thread Vaidheeswaran C
On Sunday 08 March 2015 09:58 PM, Nicolas Goaziou wrote: > Agreed. I introduced yet another syntax change in "wip-cite" branch. > > Now there are two separate objects "citation" and "citation-reference". > So the following multicite > > [cite:prefix; pre @a post; @b] > > is parsed like > >

Re: [O] Multicite syntax

2015-03-08 Thread Nicolas Goaziou
Vaidheeswaran C writes: >> Note that, as a consequence, the new object is incompatible with the >> previous one, since every citation is a multi-cite citation. See >> commit message for details. > > Just a quick feedback. > > (:parenthetical nil :begin 807 :post-blank 0 :end 843 :references >

Re: [O] Multicite syntax

2015-03-08 Thread Vaidheeswaran C
I have fixed up ox-jabref.el to support multicites. Only common prefixes and suffixes are handled. I don't know how to handle per-key prefix/suffix-es. If someone has any complaints about the output, please write to me. Attaching files that I have used for testing. (Author-Date file lacks yea

[O] Multicite syntax

2015-03-07 Thread Vaidheeswaran C
> Note that, as a consequence, the new object is incompatible with the > previous one, since every citation is a multi-cite citation. See > commit message for details. Just a quick feedback. (:parenthetical nil :begin 807 :post-blank 0 :end 843 :references ((:key "wilde" :pre