From: Rens Oliemans <hallo@rensoliemans.nl>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: "Fraga, Eric" <e.fraga@ucl.ac.uk>,
Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: strange behaviour with $PROP_r1 value in a table
Date: Mon, 09 Sep 2024 12:13:21 +0200 [thread overview]
Message-ID: <87wmjl6sou.fsf@rensoliemans.nl> (raw)
In-Reply-To: <87ikv7eo6v.fsf@localhost>
Ihor Radchenko <yantar92@posteo.net> writes:
> I just tried
>
> #+property: r1 0.96
>
> | value | 0.96 |
> #+TBLFM: @1$2=$PROP_r1
>
> followed by C-c C-c on TBLFM line, and I cannot reproduce.
Indeed, when simply executing the formula nothing goes wrong. You highlighted it below,
the "problem" occurs via `org-table-formula-from-user'.
> I _can_ reproduce via C-c = -> `org-table-formula-from-user'/`org-table-formula-to-user'
> where is it a result of the default value of `org-table-use-standard-references'
The same for me: I can reproduce via 'C-c =', or via the formula editor in the cell
(':=$PROP_r1'). `org-table-use-standard-references' is interesting, I did not see it
before.
>> - (while (string-match "\\<\\([a-zA-Z]+\\)\\([0-9]+\\>\\|&\\)\\|\\(;[^\r\n:]+\\|\\<remote([^,)]*)\\)" s start)
>> + (while (string-match "\\(\\$PROP_\\)\\{0\\}\\<\\([a-zA-Z]+\\)\\([0-9]+\\>\\|&\\)\\|\\(;[^\r\n:]+\\|\\<remote([^,)]*)\\)" s start)
>
> This is doing much more than fixing the reported bug and might affect
> valid uses. I'd rather fix the bug (if it is a bug) explicitly, without
> risking breaking other things.
Hm, looking at the manual ("(org) References"), a constant of the form '$PROP_Xyz' will be
used to search for property 'Xyz', and it seems like a bug to convert 'Xyz' to another
format in this case.
The only use-cases that are affected with this change seem to be when a table formula
starts with '$PROP_' and has a spreadsheet-like reference after it, no? Perhaps I am
wrong: I searched for the usages of `org-table-convert-refs-to-rc', but perhaps I missed
something important.
Do you agree that it is a bug, even with `org-table-use-standard-references' set to `t' or
`from'?
--
Best,
Rens
next prev parent reply other threads:[~2024-09-09 10:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-05 10:27 strange behaviour with $PROP_r1 value in a table Fraga, Eric
2024-09-06 9:40 ` Rens Oliemans
2024-09-06 10:12 ` Fraga, Eric
2024-09-07 10:46 ` Ihor Radchenko
2024-09-09 10:13 ` Rens Oliemans [this message]
2024-09-10 19:07 ` Ihor Radchenko
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=87wmjl6sou.fsf@rensoliemans.nl \
--to=hallo@rensoliemans.nl \
--cc=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@posteo.net \
/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).