* Behavior of links
@ 2020-11-22 10:04 Julian L
2020-11-25 6:08 ` Kyle Meyer
0 siblings, 1 reply; 2+ messages in thread
From: Julian L @ 2020-11-22 10:04 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 636 bytes --]
Hi!
Following this github issue in org-roam
<https://github.com/org-roam/org-roam/issues/1317>, I would like to ask
about the behavior of links in org mode. More specifically, let's say I
have this headline:
* my heading
:PROPERTIES:
:GOAL: I want to be able to say [[file:something.org]]
:END:
:RELATED:
[[file:language.org]]
:END:
According to the issue, links in the properties drawer aren't considered
links by org mode (even though I can click on them and they work fine), but
on the other hand links on a separate drawer like RELATED are considered
links.
How stable is this behavior? Is it expected to change in the future?
[-- Attachment #2: Type: text/html, Size: 1361 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Behavior of links
2020-11-22 10:04 Behavior of links Julian L
@ 2020-11-25 6:08 ` Kyle Meyer
0 siblings, 0 replies; 2+ messages in thread
From: Kyle Meyer @ 2020-11-25 6:08 UTC (permalink / raw)
To: Julian L; +Cc: emacs-orgmode
Julian L writes:
> Hi!
>
> Following this github issue in org-roam
> <https://github.com/org-roam/org-roam/issues/1317>, I would like to ask
> about the behavior of links in org mode. More specifically, let's say I
> have this headline:
>
> * my heading
> :PROPERTIES:
> :GOAL: I want to be able to say [[file:something.org]]
> :END:
>
> :RELATED:
> [[file:language.org]]
> :END:
>
>
> According to the issue, links in the properties drawer aren't considered
> links by org mode (even though I can click on them and they work fine), but
> on the other hand links on a separate drawer like RELATED are considered
> links.
Right, according to Org syntax, file:something.org is not a link. With
point on it, org-element-context returns
(node-property
(:key "GOAL" :value "I want to be able to say [[file:something.org]]" ...))
Compare that to file:language.org:
(link (:type "file" :path "language.org" ...))
Here are some links that might be helpful:
https://orgmode.org/worg/dev/org-syntax.html
https://orgmode.org/list/87d2i5pt39.fsf@gmail.com/
https://orgmode.org/list/87bm1e56gx.fsf@nicolasgoaziou.fr/
> How stable is this behavior? Is it expected to change in the future?
As far as I know, it's been around since org-element.el was introduced
in core (2012), and I'm aware of no plans to change it.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-25 6:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-22 10:04 Behavior of links Julian L
2020-11-25 6:08 ` Kyle Meyer
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).