emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Multicite syntax
Date: Sun, 08 Mar 2015 17:28:28 +0100	[thread overview]
Message-ID: <8761ab5u8j.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <54FBEC42.2060507@gmail.com> (Vaidheeswaran C.'s message of "Sun, 08 Mar 2015 11:59:22 +0530")

Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com> 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
> 		  ((:key "wilde" :prefix nil :suffix nil)
> 		   (:key "moore" :prefix nil :suffix nil)
> 		   (:key "westfahl:space" :prefix nil :suffix nil))
> 		  :parent #3#)
>
> Having a plist for `reference' as opposed to a an Element proper gives
> me cognitive dissonance.
>
> How about replacing this
>
>     (:key "wilde" :prefix nil :suffix nil)
>
> with this instead
>
>     (reference :key "wilde" :prefix nil :suffix nil :parent )
>      ^^^^^^^^                                        ^^^^^^

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 "prefix" :parenthetical nil) 
   (citation-reference (:key "a" :prefix "pre" :suffix "post"))
   (citation-reference (:key "b")))

The annoying thing is about bare-keys. When on a bare @key,
`org-element-context' cannot grap the citation, only the reference.
I don't think it is an issue for now.


Regards,

-- 
Nicolas Goaziou

  parent reply	other threads:[~2015-03-08 16:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-08  6:29 Multicite syntax Vaidheeswaran C
2015-03-08 11:21 ` Vaidheeswaran C
2015-03-08 16:28 ` Nicolas Goaziou [this message]
2015-03-10  9:03   ` Vaidheeswaran C
2015-03-14 16:17   ` Richard Lawrence
2015-03-14 22:20     ` Nicolas Goaziou
2015-03-17 16:44       ` Richard Lawrence
2015-03-17 19:59         ` Nicolas Goaziou
2015-03-18 16:13           ` Richard Lawrence

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8761ab5u8j.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=vaidheeswaran.chinnaraju@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).