Org-mode mailing list
 help / color / mirror / 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

Org-mode mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://orgmode.org/list/0 list/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 list list/ https://orgmode.org/list \
		emacs-orgmode@gnu.org
	public-inbox-index list

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git