From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eddward DeVilla" Subject: Re: proposal: defconst/defcustom org-tags-regexp Date: Thu, 19 Jul 2007 11:14:12 -0500 Message-ID: References: <20070716132118.GA28297@atlantic.linksys.moosehall> <56626b2502c1e0ead302243cb947b0b2@science.uva.nl> <20ed9633cd33f9824fae1ae6c47c9159@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IBYdt-0002dq-I9 for emacs-orgmode@gnu.org; Thu, 19 Jul 2007 12:14:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IBYdr-0002de-4h for emacs-orgmode@gnu.org; Thu, 19 Jul 2007 12:14:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBYdq-0002db-VV for emacs-orgmode@gnu.org; Thu, 19 Jul 2007 12:14:15 -0400 Received: from nz-out-0506.google.com ([64.233.162.239]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IBYdq-0004NH-Ng for emacs-orgmode@gnu.org; Thu, 19 Jul 2007 12:14:14 -0400 Received: by nz-out-0506.google.com with SMTP id f1so488609nzc for ; Thu, 19 Jul 2007 09:14:14 -0700 (PDT) In-Reply-To: <20ed9633cd33f9824fae1ae6c47c9159@science.uva.nl> Content-Disposition: inline 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: Carsten Dominik Cc: org-mode mailing list On 7/19/07, Carsten Dominik wrote: > > On Jul 19, 2007, at 15:08, Eddward DeVilla wrote: > > Does emacs let you manually compile a regular expression? If so, it > > might be possible to recompile REs when ever they change. > > This is not the issue. Yes, Emacs compiles regular expressions > whenever necessary. However, consider the following loop: I meant, could you store a compiled RE in a variable and use the compiled form. Then manually recompile them if someone changes the uncompiled RE string. This assumes you can store the compiled RE and that there is a hook in custom to let you know it has changed. We'd probably want to have a function the regenerates all of org's REs and allow others to hook into that to recompile their own REs. On the other hand, I just went digging through the elisp manual and I didn't see anything that would generate a compiled RE to be stored and (re)used later. Bummer. Maybe if I get bored, I might see if performance is ok with the REs factored out, but I don't suspect I would get good results. Edd