emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Myles English" <mylesenglish@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: org-export-expand-include-keyword doesn't handle inline tasks well
Date: Tue, 16 Oct 2012 12:07:45 +0100	[thread overview]
Message-ID: <87mwzmhdz2.fsf@ed.ac.uk> (raw)


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

             reply	other threads:[~2012-10-16 11:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-16 11:07 Myles English [this message]
2012-10-16 20:02 ` org-export-expand-include-keyword doesn't handle inline tasks well Nicolas Goaziou
2012-10-17  0:36   ` Myles English

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mwzmhdz2.fsf@ed.ac.uk \
    --to=mylesenglish@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).