Hi,
I noticed that when editing table formulas in a separate buffer (using
org-table-edit-formulas) which contain assignments to named fields whose
name includes underscores (e.g., $foo_bar), these lines are not included
in the generated #+TBLFM directive. This is probably because the regular
expression in org-table-fedit-finish does not expect named fields with
underscores although the manual indicates that they are allowed
characters (Tables > The Spreadsheet > Advances Features).
Going by the manual, it would appear that this
"^\\(@[-+I<>0-9.$@]+\\|@?[0-9]+\\|\\$\\([a-zA-Z0-9]+\\|[<>]+\\)\\) *=
*\\(.*\\(\n[ \t]+.*$\\)*\\)"
should be replaced by this
"^\\(@[-+I<>0-9.$@]+\\|@?[0-9]+\\|\\$\\([a-zA-Z0-9][a-zA-Z0-9_]*\\|[<>]+\\)\\)
*= *\\(.*\\(\n[ \t]+.*$\\)*\\)"
in the body of org-table-fedit-finish.
Best regards,
Panagiotis Vlantis