emacs-orgmode
[Top][All Lists]
Advanced

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

[O] [patch] Question on resolving links?


From: Rasmus
Subject: [O] [patch] Question on resolving links?
Date: Sat, 20 Sep 2014 22:49:04 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Hi,

I would like to use #+INCLUDE keywords for inputting headlines from
other files.  Line-numbers are too volatile and I'm not willing to
split up my file.

The attached patch does not, but I am not very happy about the
elegance of the implementation and it relies on a mix of org.el
functions and ox functions.  Basically, the patch tries to interpret
keywords like this:

#+INCLUDE: "~/file.org::*foo"

Is there not a function to interpret a link-string, say
"~/file.org::*foo", particularly with ox?  The closes thing I found
was `org-element-parse-secondary-string` on [[~/file.org::*foo]] which
gives me the correct element.
Normally, `org-export-resolve-fuzzy-link' should then help me out, but
in `org-export-expand-include-keyword' I don't have info!  Also,
`org-link-search' didn't seem to work across files.

Am I missing something obvious or is there a function I can study to
better understand how to resolve links?

Thanks,
Rasmus

-- 
In theory, practice and theory are the same. In practice they are not

Attachment: 0002-ox-Allow-headline-links-with-INCLUDE.patch
Description: Text Data


reply via email to

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