emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG] Links in code block can't be opened [9.6.15 (release_9.6.15 @ /usr


From: Juha Autero
Subject: [BUG] Links in code block can't be opened [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)]
Date: Sun, 02 Feb 2025 21:32:47 +0200

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/)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]