emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Unexpected behavior when editing table formulas in dedicated buffer
@ 2020-09-27 12:46 Panagiotis Vlantis
  0 siblings, 0 replies; only message in thread
From: Panagiotis Vlantis @ 2020-09-27 12:46 UTC (permalink / raw)
  To: emacs-orgmode

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-27 12:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-27 12:46 Unexpected behavior when editing table formulas in dedicated buffer Panagiotis Vlantis

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).