emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Rasmus
Subject: Re: [O] [patch, ox] #+INCLUDE resolves links
Date: Sun, 21 Sep 2014 16:46:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Hi,

A short comment. 

Nicolas Goaziou <address@hidden> writes:

>> +                     (org-export--prepare-file-contents file location 
>> only-contents lines))))
>
> Couldn't location, only-contents and lines be merged into a single
> argument? At the moment, you are either short-circuiting or breaking
> guard against circular inclusions (which relies on a combination of
> file-name and lines).

Yeah, you are right.  I will look into that.

>> @@ -3420,6 +3437,26 @@ This is useful to avoid conflicts when more than one 
>> Org file
>>  with footnotes is included in a document."
>>    (with-temp-buffer
>>      (insert-file-contents file)
>> +    (org-mode)
>
> 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))

Thanks,
Rasmus

-- 
Send from my Emacs



reply via email to

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