From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Re: Citation syntax: a revised proposal Date: Tue, 03 Mar 2015 09:13:53 -0800 Message-ID: <87mw3u80mm.fsf@berkeley.edu> References: <87k2zjnc0e.fsf@berkeley.edu> <87bnkvm8la.fsf@berkeley.edu> <87zj8co3se.fsf@berkeley.edu> <87ioezooi2.fsf@berkeley.edu> <87mw4bpaiu.fsf@nicolasgoaziou.fr> <8761aznpiq.fsf@berkeley.edu> <87twyjnh0r.fsf@nicolasgoaziou.fr> <87oaopx24e.fsf@berkeley.edu> <87k2zd4f3w.fsf@nicolasgoaziou.fr> <87egpkv8g9.fsf@berkeley.edu> <877fv6xfaq.fsf@gmail.com> <87twya2ak0.fsf@berkeley.edu> <87zj81aa97.fsf@nicolasgoaziou.fr> <87ioep2r6p.fsf@berkeley.edu> <87y4ngbgm7.fsf@nicolasgoaziou.fr> <87bnkbi61v.fsf@gmail.com> <877fuzruin.fsf@gmx.us> <87sidm2kny.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSqPC-00042f-AX for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 12:14:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSqP6-0000w6-E7 for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 12:14:50 -0500 Received: from plane.gmane.org ([80.91.229.3]:45919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSqP6-0000vn-6N for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 12:14:44 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YSqOz-0002Y9-0c for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 18:14:37 +0100 Received: from c-67-169-117-151.hsd1.ca.comcast.net ([67.169.117.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Mar 2015 18:14:36 +0100 Received: from richard.lawrence by c-67-169-117-151.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Mar 2015 18:14:36 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Aaron, Aaron Ecay writes: > Another tangentially related issue is what does (org-element-context) > return when point is in a multi-citation. It would be nice if it > returned the citation daughter, rather than the wrapping citations > element. This would make implementing goto-citation-at-point very > easy. This is an important issue that I think requires more thought. I can see two ways of going here: 1) Introduce individual references (really, probably just keys) as first-class objects, which are contained by citation objects. 2) Keep individual references/keys as properties of citation objects, but store :begin/:end properties individually for them. I don't really have an informed opinion here, but the second option seems simpler to me, since it doesn't involve a new class of object (and therefore doesn't require distinguishing a key-within-a-citation from a key-which-is-a-citation, as in the `shortcut' syntax). With the second option, given a (multi-)citation object and a position, it is still pretty easy to tell which individual reference the position is in, so it is still pretty easy to implement goto-citation-at-point. Best, Richard