Subject: bug#39608: defun occur does not use a coherent value for default-directory (fix included)

From: Juri Linkov <[email-masked]>
Date: Tue, 03 Mar 2020 00:16:01 +0200

> When occur creates an *Occur* buffer, the default-directory variable is
> implicitly set to the default-directory of the buffer the occurences came
> from.
>
> When occur REUSES an existing *Occur* buffer, it does not update the
> default-directory variable.

What default-directory do you expect in case of multi-occur
that displays occurrences from multiple buffers that might be
located in multiple directories?