Richard Lewis <[EMAIL PROTECTED]> writes: > Ralf Angeli <[EMAIL PROTECTED]> writes: > >>> 1. Currently, when I kill emacs, all the preview images (and IIRC, >>> the .efmt file too), are deleted. I have customized the auto-cache >>> variable to be on, but I suppose the cache is only on a per-session >>> basis? Is there a way to make previe-latex not delete all those >>> images at the end of the session? If the previews are up-to-date (or >>> even reasonably so) at the end of the session, I'd like a way to >>> reuse them at the next start-up, instead of going through the whole >>> thing again. >> >> desktop.el > > This works when exit-emacs is called with latex buffers opened. > > It would be even cooler if subsequently visited files had existing > preview sessions restored. Or even a separate command to load > previews from disk instead of regenerating them (eg something like > revert-buffer removes the previews even if the file had not changed)
desktop.el is intended for restoring the state of a buffer. Use desktop-save and desktop-read for restoring your projects. After using desktop-save, you can kill a buffer without previews getting removed. If you think that you want an interface that will selectively work on single files, it makes much more sense to make this a feature request for desktop.el rather than ask for preview-latex implementing trickery to bypass desktop.el. Probably desktop.el should get a possibility of marking a buffer as load-on-demand, restoring it when it actually gets loaded, the way saveplace.el works. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum _______________________________________________ auctex mailing list [email protected] http://lists.gnu.org/mailman/listinfo/auctex
