TODO sha1 hash visibility with org-mode-restart

  • State "TODO" from "" 2010-07-29 Thu 21:28

In the example below, first execute the block to get a hidden sha1 hash. Then if you use C-c C-c on the #+ line, the hash becomes fully visible.

1

Basically what happens on C-c C-c is that the outline overlays are recorded, org-mode-restart gets called, then outline visibility is restored. The problem is that the hash overlay is not dealt with by this. A simple workaround is

  • (overlay-put ov2 'invisible 'org-babel-hide-hash)
  • (overlay-put ov2 'invisible 'outline)

But this is not nice from a design point of view. One solution might be to alter `org-save-outline-visibility' such that it saves a broader class of overlays?

There's a (I think a separate?) problem that with the hash fully displayed, folding the headline leaves the hash displayed in a nasty way.