From mboxrd@z Thu Jan  1 00:00:00 1970
From: Nicolas Goaziou <n.goaziou@gmail.com>
Subject: Re: exporting cross-references to source block results CORRECTION
Date: Thu, 11 Apr 2013 14:00:39 +0200
Message-ID: <874nfds2e0.fsf@gmail.com>
References: <20130411084634.GA10767@panahar> <m261ztwgif.fsf@christianmoe.com>
	<20130411095747.GC18521@panahar> <m238uxwdxv.fsf@christianmoe.com>
	<20130411104605.GA28852@panahar>
Mime-Version: 1.0
Content-Type: text/plain
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([208.118.235.92]:46815)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <n.goaziou@gmail.com>) id 1UQGHY-00031F-Lp
	for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 08:07:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <n.goaziou@gmail.com>) id 1UQGBI-0008WC-Sz
	for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 08:01:35 -0400
Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:42555)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <n.goaziou@gmail.com>) id 1UQGBI-0008Vy-Hq
	for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 08:00:44 -0400
Received: by mail-wi0-f172.google.com with SMTP id hr17so463096wib.5
	for <emacs-orgmode@gnu.org>; Thu, 11 Apr 2013 05:00:43 -0700 (PDT)
In-Reply-To: <20130411104605.GA28852@panahar> (Vikas Rawal's message of "Thu,
	11 Apr 2013 16:16:05 +0530")
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=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: Christian Moe <mail@christianmoe.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>

Hello,

Vikas Rawal <vikaslists@agrarianresearch.org> writes:

>> 
>> Oops, sorry, I take back my last message, there was an error in my test
>> example.
>> 
>> Adding a #+NAME above the generated table DOES result in a correct
>> cross-reference. That seems like reasonable behavior to me.
>
> The intended behaviour, as documented by Nicolas, is that a named
> source block will result in output with #+RESULTS, and that the
> cross-reference will pick that up correctly.
>
> If #+RESULT is not to work, it is better to change
> org-babel-results-keyword to NAME, and then what you are suggesting
> happens automatically. But in the earlier thread on the topic, Nicolas
> said that was not the right way.

We are misunderstanding each other.

#+results are never used for cross-references. This is a Babel internal
keyword used to refer to the source that generated this element.

Cross-references only react to #+name keyword.


Regards,

-- 
Nicolas Goaziou