On Fri, Jul 5, 2013 at 5:21 PM, martin rudalics <address@hidden> wrote:
`window-state-put' doesn't know anything about files. It simply expects
the window's buffer to be there.
Of course.
But we can easily replace
(set-window-buffer window (get-buffer-create (car state)))
by, for example,
(set-window-buffer window (or (get-buffer (car state))
(get-buffer-create "*scratch*")))
If we saved and restored window-local buffer lists, we could show the
previous buffer on that window's list instead.
That (restoring buffer lists) would be better, but still it is
possible that no previous buffer can be found, so creating *scratch*
or defaulting to something else will still be required.
Two remarks: I never heard about `get-buffer-create' creating any files
or directories.
I think Angelo was just a bit sloppy with his terminology.