emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Mark Aufflick <mark-emacs@aufflick.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: radio transmit links across files
Date: Wed, 7 Mar 2007 09:04:21 +0100	[thread overview]
Message-ID: <b5ae6114e2397c4ace13030fb6e453fb@science.uva.nl> (raw)
In-Reply-To: <1242f34a0703040352n7c4717e4rec679c2f1904241f@mail.gmail.com>

Hi Mark,

On Mar 4, 2007, at 12:52, Mark Aufflick wrote:

> Hi All,
>
> I have to say I'm loving org-mode, I'm using it for taking notes and
> writing papers for my (just started) Masters of law degree (a bit of a
> change for a programmer!)
>
> What I want to do is have a single file where I keep a list of terms,
> acronyms, etc, and have that one file "radio" links out to any other
> org mode file.
>
> I know that I can make links across files to specific headings, but I
> want the existance of a term in the file to automatically be linked in
> other files - so the same functionality as radio links - but
> transmitting across files.
>
> Has anyone ever implemented such a beast?
>
> At a guess I would need to extend org-update-radio-target-regexp to
> run org-all-targets on the terms file. My lisp is fairly limited at
> this stage, however, so any pointers would be appreciated!


Something like this could easily be implemented, as you say along
the lines of the radio targets, but making links to a different file.

The main problem with such an approach is that it quickly becomes
a performance issue.  It is ok for a few terms, but if you accumulate
a large number of terms, and if you want to use font-lock to activate
words as links, this means that after each letter you type, font-lock
will have to match all words in the current line against all those 
terms.
This can become slow.

Another approach would be to do it on demand, by replacing matches in
the file with explicit links like

#+LINK: term file:terms.org::%s

  word   ->  [[term:word][word]]

I guess the problem with this approach might be that you might also
*remove* terms, and so these links will point into nothingness.
A remedy would be to find all the term: links and remove them first, 
then
got through the file again and create new links.

- Carsten





>
> Mark.
>
> -- 
> Mark Aufflick
> e: mark@aufflick.com
> w: mark.aufflick.com
> p: +61 438 700 647
> f: +61 2 9436 4737
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

  reply	other threads:[~2007-03-07  9:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-04 11:52 radio transmit links across files Mark Aufflick
2007-03-07  8:04 ` Carsten Dominik [this message]
2007-03-07 15:12   ` Eddward DeVilla
2007-03-08  9:48     ` Carsten Dominik
2007-03-08 16:39       ` Eddward DeVilla

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=b5ae6114e2397c4ace13030fb6e453fb@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=mark-emacs@aufflick.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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