Subject: Re: bug#33871: 27.0.50; Revert Dired window saved in window configuration

From: martin rudalics <[email-masked]>
Date: Sat, 19 Feb 2022 10:37:40 +0100

>                  (when pos
 >                    (with-selected-window w
 >                      (dired-goto-file (nth 0 pos)))
 >                    (set-window-start w (nth 1 pos))
 >                    (set-window-point w (nth 2 pos))))))))

Shouldn't you call 'dired-goto-file' last here?  Otherwise, wouldn't
'set-window-point' override it?

And how would you handle the general case where a directory gets
reverted in between saving and restoring a window configuration?  If you
don't want to use timestamps, saving and restoring window configurations
would have to provide some special hooks and data structures for storing
such extra information.

martin