[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Unexpected behavior when editing table formulas in dedicated buffer
From: |
Panagiotis Vlantis |
Subject: |
Unexpected behavior when editing table formulas in dedicated buffer |
Date: |
Sun, 27 Sep 2020 08:46:18 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Unexpected behavior when editing table formulas in dedicated buffer,
Panagiotis Vlantis <=