John Kitchin <jkitc...@andrew.cmu.edu> writes:

> I like the idea too. I worked out a partial solution for id links here:
> http://kitchingroup.cheme.cmu.edu/blog/2015/10/24/Saving-the-current-restriction-and-restoring-it-while-following-links/
> using the idea for saving and restoring the restriction.

Thanks, John.

You will probably want to use markers since one might edit stuff
in-between the widening and going back to the narrow.

     
http://www.gnu.org/software/emacs/manual/html_node/elisp/Overview-of-Markers.html#Overview-of-Markers

Markers should be cleaned up, which might prove difficult since one might
not go back with C-c &, but you can at least ensure that at most two loose
markers exists (potentially per Org buffer).

Also, I wonder if there exits cases where you would need to store the
buffer as well as the narrow points...  I guess not?

Thanks,
Rasmus

-- 
Slowly unravels in a ball of yarn and the devil collects it

Reply via email to