From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: radio transmit links across files Date: Wed, 7 Mar 2007 09:04:21 +0100 Message-ID: References: <1242f34a0703040352n7c4717e4rec679c2f1904241f@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HOsqM-0001Qi-Fh for emacs-orgmode@gnu.org; Wed, 07 Mar 2007 04:53:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HOsqJ-0001Q0-Vz for emacs-orgmode@gnu.org; Wed, 07 Mar 2007 04:53:56 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOsqH-0001Po-HQ for emacs-orgmode@gnu.org; Wed, 07 Mar 2007 04:53:53 -0500 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HOsqC-0000fw-4o for emacs-orgmode@gnu.org; Wed, 07 Mar 2007 04:53:48 -0500 In-Reply-To: <1242f34a0703040352n7c4717e4rec679c2f1904241f@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Mark Aufflick Cc: emacs-orgmode@gnu.org 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