emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Panagiotis Vlantis <panagiotis.vlantis.mc@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Unexpected behavior when editing table formulas in dedicated buffer
Date: Sun, 27 Sep 2020 08:46:18 -0400	[thread overview]
Message-ID: <3803a808-1323-fb88-c897-d3fdfc57c1bb@gmail.com> (raw)

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



                 reply	other threads:[~2020-09-27 12:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3803a808-1323-fb88-c897-d3fdfc57c1bb@gmail.com \
    --to=panagiotis.vlantis.mc@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).