From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: links are not parsed in keyword context
Date: Mon, 13 Apr 2020 11:19:34 +0200 [thread overview]
Message-ID: <87mu7fyc7t.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87r1wr23k9.fsf@polytechnique.org> (Alan Schmitt's message of "Mon, 13 Apr 2020 10:27:34 +0200")
Hello,
Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> If you consider the following line in an org file
>
> #+begin_src org
> #+FOO: http://alan.petitepomme.net/
> #+end_src
>
>
> then calling ~org-element-context~ returns
>
> #+begin_src emacs-lisp
> (keyword
> (:key "FOO"
> :value "http://alan.petitepomme.net/"
> :begin 1
> :end 38
> :post-blank 1
> :post-affiliated 1
> :parent nil))
> #+end_src
This is a feature. With a few exception, keyword value is not parsed,
i.e., Org does not need to understand what happens in there.
> Could is be possible to parse a link in keyword context?
That wouldn't make sense in most contexts.
> Alternatively, should I suggest org-ref uses an approach similar to
> the one in ~org-return~?
I think Org Ref can parse the value of the keyword (a string), instead.
There is, for example, `org-element-parse-secondary-string'.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2020-04-13 9:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-13 8:27 links are not parsed in keyword context Alan Schmitt
2020-04-13 9:19 ` Nicolas Goaziou [this message]
2020-04-13 12:59 ` Alan Schmitt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mu7fyc7t.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=alan.schmitt@polytechnique.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).