emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Remove all Org metadata with header argument `:comments org'


From: Ihor Radchenko
Subject: Re: Remove all Org metadata with header argument `:comments org'
Date: Sun, 20 Jun 2021 21:58:18 +0800

Juan Manuel Macías <maciaschain@posteo.net> writes:

> I am writing an *.el file from an *.org file (and then I run
> org-babel-tangle). With the header argument `:comments org' not only the
> text in my org file is converted to comments (my desired goal) but also
> the drawers, keywords and other Org metadata. Since I don't see that all
> that stuff is necessary in a source file, wouldn't it be better to get
> rid of it during the tangle process, leaving only pure content as
> comment strings? Maybe converting the Org file content to plain text
> with ox-ascii, or something like that?
>
> What do you think?

You can customise org-babel-process-comment-text to something like
(lambda (string) (org-export-string-as string 'ascii t)). Untested
though.

Best,
Ihor



reply via email to

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