[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: inconsistency links and code line labels
From: |
gerard . vermeulen |
Subject: |
Re: inconsistency links and code line labels |
Date: |
Fri, 07 Jul 2023 05:57:46 +0000 |
On 06.07.2023 14:49, Dan Drake wrote:
There's a bug [[(my-code-line-label)][right here]].
This seems inconsistent. Why do I have to omit the ref: bit? This
always confuses me; it seems like it would be simpler to just make the
label and the links to that line of code be exactly the same. I don't
see any particular reference to this in the org manual
(https://orgmode.org/manual/Internal-Links.html [2]). Any insights?
My idea would be to get rid of the special behavior for code line
labels and just make this work with dedicated targets: in regular
parts of my org file, I use <<link-target>> and can make links to
that. It would be simple and consistent to make that also work the
same when <<link-target>> is inside a code block.
Such link targets would conflict with <<code-block-id>> references
See: https://orgmode.org/manual/Noweb-Reference-Syntax.html
Therefore something like the behavior described in
https://orgmode.org/manual/Literal-Examples.html
must have been invented (look at the description of the -n, -r, and
-l switches).
Regards -- Gerard