emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [PATCH] why is '-' not allowed in radio table name?


From: Dan Davison
Subject: [Orgmode] [PATCH] why is '-' not allowed in radio table name?
Date: Sat, 17 Apr 2010 17:30:45 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]