desktop-save-buffer-p

desktop-save-buffer-p is a compiled Lisp function in `desktop.el'.

(desktop-save-buffer-p FILENAME BUFNAME MODE)

Return t if buffer should have its state saved in the desktop file.
FILENAME is the visited file name, BUFNAME is the buffer name, and
MODE is the major mode.