Hello,

Marcin Borkowski <mb...@wmi.amu.edu.pl> writes:

> assume that I have a link object (e.g., I'm in the ellipsis part of
> this:
>
> (org-element-map (org-element-parse-buffer 'object) 'link
>   (lambda (elt) ... ))
>
> What I want to do is this:
> 1. check whether it is an internal link, and

(member (org-element-property :type elt) '("custom-id" "fuzzy"))

> 2. if it is, change it so that it points to the analogous place in
> another file.

  (org-element-put-property elt :raw-link
                            (concat "file:path/to/other-file.org::"
                                    (org-element-property :path elt)))

Untested.


Regards,

-- 
Nicolas Goaziou

Reply via email to