Hi François, François Pinard <pin...@iro.umontreal.ca> 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