* [BUG] Links in code block can't be opened [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)]
@ 2025-02-02 19:32 Juha Autero
0 siblings, 0 replies; only message in thread
From: Juha Autero @ 2025-02-02 19:32 UTC (permalink / raw)
To: emacs-orgmode
URLs in code blocks is shown as links, but they cannot be opened.
Instead result of code block is opened.
For example with code block like this:
#+begin_src shell
# This is an example of URL https://orgmode.org/
#
echo "test"
#+end_src
URL is marked as a link, but attempts to open it will execute code
and show the results in separarte buffer. This happens when using mouse
or keyboard commands. It seems that it is undefined how
org-open-at-point behaves when there are nested things at point.
I think footnote definitions, src-blocks and headlines may contain
links, citations, timestamps and tags. At least those are combinations
that make sense. Only case of headline containing links is defined in
documentation because headlines open list of links in headline. I
haven't tested other combinations than src-block containing a link.
Also, docstring of org-open-at-point talks about src-blocks and
talks about "src-block of inline src-block". I think it should be "or".
Emacs : GNU Emacs 29.4 (build 1, x86_64-solus-linux-gnu, GTK+ Version 3.24.42, cairo version 1.18.0)
of 2024-06-22
Package: Org mode version 9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-03 13:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-02 19:32 [BUG] Links in code block can't be opened [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)] Juha Autero
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).