GNU bug report logs - #25340
Save-some-buffers gets called when installing packages.

Previous Next

Package: emacs;

Reported by: Nikolay Kudryavtsev <nikolay.kudryavtsev <at> gmail.com>

Date: Mon, 2 Jan 2017 22:43:01 UTC

Severity: minor

Tags: fixed, patch

Merged with 25964, 26056

Found in version 26.0.50

Fixed in version 26.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


Message #14 received at 25340 <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: Nikolay Kudryavtsev <nikolay.kudryavtsev <at> gmail.com>
Cc: 25340 <at> debbugs.gnu.org
Subject: Re: bug#25340: Save-some-buffers gets called when installing packages.
Date: Thu, 05 Jan 2017 21:31:10 -0500
Nikolay Kudryavtsev <nikolay.kudryavtsev <at> gmail.com> 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?)




This bug report was last modified 7 years and 364 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.