Open questions: (1) What do we need to do we do when `dired-directory' is a cons (i.e. dir along with a file list)? The existing code just threw away the file list (that's why I unified the cases for now - the code didn't make sense to me). (2) What to do when symlinks are involved? This question is also not trivial. It might be necessary to handle different cases and change more than one part of the code. Just calling `file-truename' before comparing as you (Eli) suggested might fix more valid cases but will also resolve symlinks as side effect: the dired buffer will afterwards visit a directory behind a (probably unrelated) symlink when the visited directory name had not been unresolved before. This is not what we want. Hope it's understandable what I mean. Another tricky case is when the user accidentally broke a symlink and a dired buffer we handle visits a directory with a name that can't be resolved any more. Michael.