I am trying to map over a buffer with headlines in various states of folded, and get context around certain elements. I find I need to fully expand the buffer to get the context in the way I am currently doing it (e.g. getting the lines around the element), but I would like to put the buffer back to the way it was when I am finished. This is not done with the usual macros like save-excursion, save-restriction, etc... Is there a way to do this other than a temp buffer?
thanks, -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu