emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Touching :noexport: regions


From: Bastien
Subject: Re: [O] Touching :noexport: regions
Date: Sat, 05 May 2012 08:29:34 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)

Hi François,

François Pinard <address@hidden> writes:

> There is some machinery on my side involved into publication, which I
> would rather avoid if not necessary.  My little problem is that Org
> checks the file time stamp, and Emacs does not distinguish, of course,
> if I modify a part which is within a :noexport: region.

Please don't hesitate to share it you think other people could find it
useful. 

> The only idea I got (but I did not really torture me into this yet!) is
> to maintain a kind of a cache of files before edit, and write a
> specialized file comparator that would re-establish previous time stamps
> when nothing publishable has been changed.  Any clever idea, someone?
> :-)

Currently the only way to exclude an *entire* file from the publication
process is to play with the :exclude parameter in `org-publish-project-alist'.

We could have a #+PUBLISH: option allowing to tell whether a file should
be published or not.

If we had this, we could then check whether a section without the
:noexport: tag has been modified...  and dynamically set the buffer
publication option based on this.

But this is rather a complicated way, and the gain is merely about
speed.

If someone comes up with something more clever, let's see.

Or if someone would find a new #+PUBLISH option useful outside of this
use-case, let's also see.

Thanks,

-- 
 Bastien



reply via email to

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