emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: Bastien <bzg@altern.org>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: store-link behavior
Date: Sat, 22 Dec 2012 14:49:14 -1000	[thread overview]
Message-ID: <m1bodl7fud.fsf@poto.myhome.westell.com> (raw)
In-Reply-To: <87ip7tu0ci.fsf@bzg.ath.cx> (Bastien's message of "Sat, 22 Dec 2012 23:21:51 +0100")

Hi Bastien,

Bastien <bzg@altern.org> 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/)

Thomas S. Dye

  reply	other threads:[~2012-12-23  0:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-02 16:51 store-link behavior Thomas S. Dye
2012-12-22 22:21 ` Bastien
2012-12-23  0:49   ` Thomas S. Dye [this message]
2012-12-29  5:31     ` Bastien

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:

  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=m1bodl7fud.fsf@poto.myhome.westell.com \
    --to=tsd@tsdye.com \
    --cc=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \


* 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


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).