When referencing the table foobar
within the same file using its name, the org-table-get-remote-range function works correctly. However, when attempting to reference the same table from another file using a link generated by M-x org-store-link
and M-x org-insert-link
, an error message “Can’t find remote table” is triggered. What is the right way to do it?
PS: replacing ~
by an absolute path does not solve the problem.
config.org:
#+name: foobar
| foo | hello |
| bar | world |
#+header: :results value
#+begin_src emacs-lisp
(org-table-get-remote-range "foobar" (format "@1$%d..@>$%d" 1 1))
#+end_src
#+RESULTS:
| foo | bar |
other.org
#+header: :results value
#+begin_src emacs-lisp
(org-table-get-remote-range "file:~/.emacs.d/config.org::foobar" (format "@1$%d..@>$%d" 1 1))
#+end_src
*Messages*
org-table-get-remote-range: Can’t find remote table "file:~/.emacs.d/config.org::foobar"
terminal:
$ emacs --version
GNU Emacs 30.0.50
$ uname -a
Linux elitebook 6.9.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 16 Jun 2024 19:06:37 +0000 x86_64 GNU/Linux
Reference:
- Handling links