desktop-save-mode to automatically open the files that I had opened in the last session. This mode should also remember the files that I closed so that it no longer opens them in the next session. However, there is one file, say
a.tex, that gets opened every time I start emacs regardless of having closed it in the last session. Interestingly, if I run emacs with the
--no-desktop flag, the file
a.tex doesn't get opened automatically. Why is
desktop-mode opening the file? How can I debug this issue?
In the desktop file I found I had another TeX file in my saved session whose TeX-master file was
a.tex. Closing that file solved the issue.
auctex or some other TeX-mode was opening
a.tex whenever the other file was opened at startup when restoring the saved session?