Index: TeXmacs-1.0.6-static-gnu-linux/progs/texmacs/texmacs/tm-files.scm =================================================================== --- TeXmacs-1.0.6-static-gnu-linux.orig/progs/texmacs/texmacs/tm-files.scm 2005-12-02 19:06:49.000000000 +0100 +++ TeXmacs-1.0.6-static-gnu-linux/progs/texmacs/texmacs/tm-files.scm 2006-11-03 10:46:47.655899500 +0100 @@ -87,8 +87,9 @@ (dialogue (if (dialogue-confirm? "Recover autosave file?" #t) (with t (texmacs-load-tree name "texmacs") - (set-buffer (get-name-buffer) t)) - (system-remove name)))))) + (new-buffer) + (set-buffer (get-name-buffer) t))) + (system-remove name))))) (define (notify-autosave var val) (if (has-view?) ; delayed-autosave would crash at initialization time