emacs-orgmode
[Top][All Lists]
Advanced

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

[O] :comments org doesn't export comments below code


From: Ken Mankoff
Subject: [O] :comments org doesn't export comments below code
Date: Thu, 12 Jul 2018 06:44:06 -0400
User-agent: mu4e 1.0; emacs 26.1

Hi Org List,

I'm trying to understand the use-case of the ":comments org" header option. It 
seems like a nice way to generate code files with comments embedded in theory, 
but in practice I find it restrictive. I'm wondering if I'm misunderstanding 
its purpose, using it wrong, or have found a bug.

MWE:

========================================================
#+PROPERTY: header-args :comments org :tangle debug.sh 

* Foo

Foo text about Bar and Baz

** Bar
:PROPERTIES:
:SOMETHING: BAR VALUE
:END:

Bar pre text

#+BEGIN_SRC sh :results verbatim
echo "bar code"
#+END_SRC
#+RESULTS:

Bar post text

** Baz

Baz text

========================================================

Generates this:

========================================================

# Bar
# :PROPERTIES:
# :SOMETHING: BAR VALUE
# :END:

# Bar pre text
echo "bar code"

========================================================

The issues are 1) there is no "post text" exported. The "bar post text" 
discusses the results of the source block above it, but is not exported to the 
code file as comments, and 2) The Foo text is not exported either, but contains 
info relevant to the Bar code.

Is there a way to get more of the Org file embedded in the tangled code?

Thanks,

  -k.



reply via email to

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