desktop-modes-not-to-save

desktop-modes-not-to-save is a variable defined in `desktop.el'.
Its value is
(tags-table-mode)


Documentation:
List of major modes whose buffers should not be saved.

You can customize this variable.