From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] why is '-' not allowed in radio table name? Date: Sun, 18 Apr 2010 08:10:37 +0200 Message-ID: <3CF86F83-6856-49EB-9167-135DF9FD8237@gmail.com> References: <87k4s53gxm.fsf@stats.ox.ac.uk> Mime-Version: 1.0 (Apple Message framework v936) 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 1O3NiN-0001ON-57 for emacs-orgmode@gnu.org; Sun, 18 Apr 2010 02:10:43 -0400 Received: from [140.186.70.92] (port=47090 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3NiL-0001NJ-Aw for emacs-orgmode@gnu.org; Sun, 18 Apr 2010 02:10:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3NiJ-0007cK-UF for emacs-orgmode@gnu.org; Sun, 18 Apr 2010 02:10:41 -0400 Received: from mail-ew0-f214.google.com ([209.85.219.214]:44051) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3NiJ-0007c5-Oc for emacs-orgmode@gnu.org; Sun, 18 Apr 2010 02:10:39 -0400 Received: by ewy6 with SMTP id 6so1189409ewy.32 for ; Sat, 17 Apr 2010 23:10:38 -0700 (PDT) In-Reply-To: <87k4s53gxm.fsf@stats.ox.ac.uk> 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: Dan Davison Cc: emacs org-mode mailing list Applied, thanks. - Carsten On Apr 17, 2010, at 11:30 PM, Dan Davison wrote: > I was using a radio table to convert an org table to texinfo, and got > stuck for a bit until looking at the code and seeing that the name > used > for the radio table can not contain '-' (only letters, numbers and > underscore). Is there a reason for this restriction? An alternative > regexp is below (which also allows tabs as whitespace). > > Dan > > > Modified lisp/org-table.el > diff --git a/lisp/org-table.el b/lisp/org-table.el > index 5839203..1d463a0 100644 > --- a/lisp/org-table.el > +++ b/lisp/org-table.el > @@ -3800,7 +3800,7 @@ a radio table." > (goto-char (org-table-begin)) > (let (rtn) > (beginning-of-line 0) > - (while (looking-at "[ \t]*#\\+ORGTBL[: \t][ \t]*SEND +\\([a- > zA-Z0-9_]+\\) +\\([^ \t\r\n]+\\)\\( +.*\\)?") > + (while (looking-at "[ \t]*#\\+ORGTBL[: \t][ \t]*SEND[ \t]+\\ > ([^ \t\r\n]+\\)[ \t]+\\([^ \t\r\n]+\\)\\([ \t]+.*\\)?") > (let ((name (org-no-properties (match-string 1))) > (transform (intern (match-string 2))) > (params (if (match-end 3) > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten