Sometimes my ubuntu freezes, and I am using Emacs that has many files opened inside it. I have to reboot Ubuntu, and lose the track of what files I have opened.
Is there a way to periodically record the files being opened in Emacs (maybe by more than one Emacs process), and to allow me to read the record of opened files later for example after rebooting OS?
Btw, I found that
sudo lsof -u t | grep emacs only gives the directory where each emacs process was started, not the files being opened in Emacs. Does anyone know why?