emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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

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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).