From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: maximum number of radio targets? Date: Sun, 7 Sep 2008 17:18:28 +0200 Message-ID: <4BDC1BAF-3C21-4F70-9D02-A00DCECFF1DB@uva.nl> References: Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcM27-0003Sm-6r for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 11:18:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcM25-0003Sa-Cn for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 11:18:34 -0400 Received: from [199.232.76.173] (port=45427 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcM25-0003SX-7K for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 11:18:33 -0400 Received: from ey-out-1920.google.com ([74.125.78.145]:39790) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KcM25-0000pP-0h for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 11:18:33 -0400 Received: by ey-out-1920.google.com with SMTP id 4so532692eyg.24 for ; Sun, 07 Sep 2008 08:18:32 -0700 (PDT) In-Reply-To: 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: John Niekrasz Cc: emacs-orgmode@gnu.org Hi John, I think you are *clearly* overdoing the radiolink feature. The problem is that the implementation uses font-lock to activate matches, so that these are always up to date. This clearly means that the number of links must be limited. I am not sure what the limitation is in Emacs, but I would also suspect that, with this many radio targets, you should be feeling the speed impact with every single character you type - oy you must either have a *very* fast machine - or be a sloooow typist :-) ? With this many links, I guess a different implementation for radio links would be needed, one that does not use font-lock, but some mechanism that uses idle time. We don't have such a mechanism yet. There are some plans, in particular to support automatic inter-file links like HOWM does it, by these have not moved beyond the "wishful thinking" stage. This could be a nice extension! Anyone feels challenged to implement it? - Carsten On Sep 6, 2008, at 6:41 PM, John Niekrasz wrote: > Hello org-mode folks, > > I really like the radio targets feature. Perhaps too much. I seem to > have encountered a case where using too many of them means that they > don't work. We're talking about 2k of them, with an average length of > 15 characters or so. Is it possible that the orgmode internal regexps > are getting too long? Is there a general emacs string variable size > limit I can change to make things work? > > I'm using GNU Emacs 23.0.60.4 (i686-pc-linux-gnu, GTK+ Version > 2.10.13) and orgmode 6.06b. > > I've attached a file as an example. The links don't come up on > loading. But if you erase everything after line 1500 (or alternately > before line 1500), it works. > John >