* org-export-expand-include-keyword doesn't handle inline tasks well
@ 2012-10-16 11:07 Myles English
2012-10-16 20:02 ` Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: Myles English @ 2012-10-16 11:07 UTC (permalink / raw
To: emacs-orgmode
Hi,
When a tree includes another file tree by using the #+INCLUDE keyword,
the imported headlines are demoted by appending an appropriate number
of asterisks. The problem is when an inline task is included, the
number of asterisks seems to make it unrecognisable as an inline task.
Can someone confirm this as a bug?
This has two problems that I can see: 1) if the resulting file is
subsequently included again in another file, the inline tasks are
thought to be headings so anything coming after it is demoted beneath
it, 2) some functions seem to expect a maximum number of asterisks
(I'll leave this bit a little vague; it was something to do with
dynamic blocks).
Org-mode version 7.9.2 (release_7.9.2-441-gf287ab @
/home/myles/.emacs.d/plugins/org-mode/lisp/)
Herewith a minimum example:
Start with emacs -Q -l [your_minimal.el]
_____________________________ file: a.org ______________
#+BEGIN_SRC emacs-lisp
(require 'org-inlinetask)
#+END_SRC
* A heading
** Another heading
*************** Here is an inline task
*************** END
#+BEGIN_SRC emacs-lisp
(require 'org-export)
(org-export-with-current-buffer-copy
(org-export-expand-include-keyword)
(clipboard-kill-ring-save (point-min) (point-max)))
(find-file "./results.org")
(clipboard-yank)
#+END_SRC
________________________________________ ______________
_____________________________ file: b.org ______________
* A Heading in b.org
*************** An inline task in b.org
*************** END
#+BEGIN_SRC emacs-lisp
(require 'org-inlinetask)
#+END_SRC
________________________________________________________
Buffer results.org contains inline tasks of different levels:
** Another heading
*************** Here is an inline task
*************** END
*** A Heading in b.org
***************** An inline task in b.org
***************** END
Thanks,
Myles
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: org-export-expand-include-keyword doesn't handle inline tasks well
2012-10-16 11:07 org-export-expand-include-keyword doesn't handle inline tasks well Myles English
@ 2012-10-16 20:02 ` Nicolas Goaziou
2012-10-17 0:36 ` Myles English
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2012-10-16 20:02 UTC (permalink / raw
To: Myles English; +Cc: emacs-orgmode
Hello,
"Myles English" <mylesenglish@gmail.com> writes:
> When a tree includes another file tree by using the #+INCLUDE keyword,
> the imported headlines are demoted by appending an appropriate number
> of asterisks. The problem is when an inline task is included, the
> number of asterisks seems to make it unrecognisable as an inline task.
>
> Can someone confirm this as a bug?
I can. It should be fixed now. Thanks for the report.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: org-export-expand-include-keyword doesn't handle inline tasks well
2012-10-16 20:02 ` Nicolas Goaziou
@ 2012-10-17 0:36 ` Myles English
0 siblings, 0 replies; 3+ messages in thread
From: Myles English @ 2012-10-17 0:36 UTC (permalink / raw
To: Nicolas Goaziou; +Cc: emacs-orgmode
Nicolas Goaziou writes:
> Hello,
>
> "Myles English" <mylesenglish@gmail.com> writes:
>
>> When a tree includes another file tree by using the #+INCLUDE keyword,
>> the imported headlines are demoted by appending an appropriate number
>> of asterisks. The problem is when an inline task is included, the
>> number of asterisks seems to make it unrecognisable as an inline task.
>>
>> Can someone confirm this as a bug?
>
> I can. It should be fixed now. Thanks for the report.
Thanks for fixing it, works great. Now I just have to remember to
(require 'org-inlinetask) if I am going to #+INCLUDE a file that uses
them.
Myles
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-17 0:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-16 11:07 org-export-expand-include-keyword doesn't handle inline tasks well Myles English
2012-10-16 20:02 ` Nicolas Goaziou
2012-10-17 0:36 ` Myles English
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.