emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Comment links for tangled source blocks at the file root are broken [9.5.4 (9.5.4-gb3b17c @ /home/user/.emacs.d/straight/build/org/)]
@ 2022-07-22  9:41 Elias Kueny
  2022-07-23  2:17 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Elias Kueny @ 2022-07-22  9:41 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

There seems to be an issue with using ":comments link" when the source block is at the root of the org file instead of under a heading. This happens using emacs -Q.

A file containing something like this:
#+begin_src elisp :tangle yes :comments link
  (message "test")
#+end_src

tangles to:
;; [[file:test2.org::+begin_src elisp :tangle yes :comments link][No heading:1]]
(message "test")
;; No heading:1 ends here

I don't think the "+begin_src" part is meant to be here. Then org-babel-detangle looks for a "* +begin_src elisp :tangle yes :comments link" heading and fails to detangle.

Emacs  : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.4)
 of 2022-04-09
Package: Org mode version 9.5.4 (9.5.4-gb3b17c)

Best regards,
Elias


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] Comment links for tangled source blocks at the file root are broken [9.5.4 (9.5.4-gb3b17c @ /home/user/.emacs.d/straight/build/org/)]
  2022-07-22  9:41 [BUG] Comment links for tangled source blocks at the file root are broken [9.5.4 (9.5.4-gb3b17c @ /home/user/.emacs.d/straight/build/org/)] Elias Kueny
@ 2022-07-23  2:17 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2022-07-23  2:17 UTC (permalink / raw)
  To: Elias Kueny; +Cc: emacs-orgmode

Elias Kueny <elias.kueny@posteo.net> writes:

> There seems to be an issue with using ":comments link" when the source block is at the root of the org file instead of under a heading. This happens using emacs -Q.
>
> A file containing something like this:
> #+begin_src elisp :tangle yes :comments link
>   (message "test")
> #+end_src
>
> tangles to:
> ;; [[file:test2.org::+begin_src elisp :tangle yes :comments link][No heading:1]]
> (message "test")
> ;; No heading:1 ends here
>
> I don't think the "+begin_src" part is meant to be here. Then org-babel-detangle looks for a "* +begin_src elisp :tangle yes :comments link" heading and fails to detangle.

Thanks for reporting!
Fixed on bugfix via c779b7aa0.

Best,
Ihor


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-23  2:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-22  9:41 [BUG] Comment links for tangled source blocks at the file root are broken [9.5.4 (9.5.4-gb3b17c @ /home/user/.emacs.d/straight/build/org/)] Elias Kueny
2022-07-23  2:17 ` Ihor Radchenko

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