[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).
Regards,
--
Nicolas Goaziou
- [O] [patch, ox] #+INCLUDE resolves links, Rasmus, 2014/09/20
- Re: [O] [patch, ox] #+INCLUDE resolves links, Rasmus, 2014/09/21
- Re: [O] [patch, ox] #+INCLUDE resolves links, Nicolas Goaziou, 2014/09/21
- Re: [O] [patch, ox] #+INCLUDE resolves links, Rasmus, 2014/09/23
- Re: [O] [patch, ox] #+INCLUDE resolves links, Nicolas Goaziou, 2014/09/24
- Re: [O] [patch, ox] #+INCLUDE resolves links, Rasmus, 2014/09/28
- Re: [O] [patch, ox] #+INCLUDE resolves links, Nicolas Goaziou, 2014/09/30
- Re: [O] [patch, ox] #+INCLUDE resolves links, Rasmus, 2014/09/30
- Re: [O] [patch, ox] #+INCLUDE resolves links, Nicolas Goaziou, 2014/09/30
- Re: [O] [patch, ox] #+INCLUDE resolves links, Rasmus, 2014/09/30