From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: store-link behavior Date: Sat, 22 Dec 2012 23:21:51 +0100 Message-ID: <87ip7tu0ci.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmYbL-0006a0-Uu for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 18:35:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TmYbG-0003xX-LZ for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 18:35:31 -0500 Received: from mail-we0-f173.google.com ([74.125.82.173]:54336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmYbG-0003xF-EI for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 18:35:26 -0500 Received: by mail-we0-f173.google.com with SMTP id z2so2780297wey.18 for ; Sat, 22 Dec 2012 15:35:25 -0800 (PST) In-Reply-To: (Thomas S. Dye's message of "Fri, 02 Nov 2012 06:51:49 -1000") 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: "Thomas S. Dye" Cc: Org-mode Hi Thomas, tsd@tsdye.com (Thomas S. Dye) writes: > A pleasant feature of AucTeX is the context sensitive facility for > inserting cross references. So, having the cursor at the end of this > text, "(fig.", and pressing shortcut sequence gets a list of labeled > figure environments in a document, from which the correct one can be > chosen. > > Is there something similar in Org? > > I looked at store-link, with the hope that it would store a link to the > nearest link candidate, but with the cursor in the table-link table > below, store-link returns a link to the headline, test store-link, and > not a link to the table name, table-link. > > * test store-link > Some text. > > #+name: table-link > | a | 1 | > | b | 2 | > > I'm likely missing something obvious. Any help much appreciated. I fixed `org-store-link' so that it stores the value of a keyword as the search string. Try M-x org-store-link RET on #+name: and let me know if it works (from master). Thanks! -- Bastien