reddit / emacs

How can I extract the cell value from the result of the org-table-get-remote-range command?

vfclists · 2022-08-22 07:03
The result of `(org-table-get-remote-range "TableRef" "@I+1$1")` is output such as `#("cell-contents" 0 35 (fontified t face org-table org-category "file-or-buffer-name"))`, but `"cell-contents"` is all I want. What kind of expression is this, and how do I extract `"cell-contents"` alone from from it? What is the syntax for including the file name in the reference, ie something along the lines of `"filename::TableRef"`? For now I have to test the function in the same file as the table, but I also want to do it externally.
vfclists · 2022-08-22 11:39
I got the first question okay via `(substring-no-properties (org-table-get-remote-range "TableRef" "@I+1$1"))` *(Emacs docs suck)* but I am still struggling on the remote table references.