Subject: Re: bug#25340: Save-some-buffers gets called when installing packages.

From: [email-masked]
Date: Thu, 05 Jan 2017 21:31:10 -0500

Nikolay Kudryavtsev <[email-masked]> writes:

> The question now is whether there's even a need to add a new arg to
> byte-recompile-directory?

Possibly yes, since files can require others outside the directory being
compiled.  So we might not want to have this directory restriction
applied always.

> +                         (member (expand-file-name buffer-file-name)
> +                                 (directory-files directory t))))

I was thinking more along the lines of

    (string-prefix-p (expand-file-name directory)
                     (expand-file-name buffer-file-name))

(Or does that break in some weird file systems?)