[Top][All Lists]

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

Re: [O] [patch, ox] #+INCLUDE resolves links

From: Nicolas Goaziou
Subject: Re: [O] [patch, ox] #+INCLUDE resolves links
Date: Sun, 21 Sep 2014 21:51:31 +0200

Rasmus <address@hidden> writes:

>> You cannot enforce `org-mode' as the current major mode since you can
>> include other file types.
> But then I can't use org-element-at-point:
> (with-temp-buffer
>   (text-mode) (insert "* test\nmy txt") (goto-char (point-min)) 
> (org-element-at-point))
> (with-temp-buffer
>   (org-mode) (insert "* test\nmy txt") (goto-char (point-min)) 
> (org-element-at-point))

`org-export--prepare-file-contents' is not called with the same number
of arguments when it is an Org file. You can activate `org-mode' if you
are in this situation (look for (when ind ...) and (when minlevel ...)
in the function).


Nicolas Goaziou

reply via email to

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