From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: store-link behavior Date: Sat, 22 Dec 2012 14:49:14 -1000 Message-ID: References: <87ip7tu0ci.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmZlG-0001zp-4w for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 19:49:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TmZl9-000264-Uw for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 19:49:50 -0500 Received: from oproxy9.bluehost.com ([69.89.24.6]:47313) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TmZl9-00025v-Mt for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 19:49:43 -0500 In-Reply-To: <87ip7tu0ci.fsf@bzg.ath.cx> (Bastien's message of "Sat, 22 Dec 2012 23:21:51 +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: Bastien Cc: Org-mode Hi Bastien, Bastien writes: > 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! I pulled and tried M-x org-store-link RET at different points on a #+name: line, but got the headline above every time org-stored-links is a variable defined in `org.el'. Its value is (("file:~/Public/projects/924-regional-chronology/regional-chronology.org::*Inland Activity" "Inland Activity") ("file:~/Public/projects/924-regional-chronology/regional-chronology.org::*Inland Activity" "Inland Activity") ("file:~/Public/projects/924-regional-chronology/regional-chronology.org::*Inland Activity" "Inland Activity") ("file:~/Public/projects/924-regional-chronology/regional-chronology.org::*Inland Activity" "Inland Activity") ("file:~/Public/projects/924-regional-chronology/regional-chronology.org::*Inland Activity" "Inland Activity")) Org-mode version 7.9.2 (release_7.9.2-828-ge87344 @ /Users/dk/.emacs.d/src/org-mode/lisp/) Tom -- Thomas S. Dye http://www.tsdye.com