[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: npostavs
Subject: bug#25340: Save-some-buffers gets called when installing packages.
Date: Sat, 07 Jan 2017 13:47:41 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Nikolay Kudryavtsev <address@hidden> writes:

> I had the idea of doing this:
> (defun byte-recompile-directory (directory &optional arg force
> limit-buffer-saving)
> ...
> If forth argument LIMIT-BUFFER-SAVING is 'directory, only files within
> DIRECTORY would be saved.  When LIMIT-BUFFER-SAVING is t no existing buffers
> would be checked for modification.
> But I found out out that having LIMIT-BUFFER-SAVING with value t like
> this would not work without an accompanying change to
> byte-recompile-file - since byte-recompile-file already checks whether
> there's a buffer for that file and that buffer is modified.

I don't see where byte-recompile-file is checking that?

> So, since I don't think that doing changes to byte-recompile-file is
> the best idea, here's my current version.
> Also, note that the check in byte-recompile-file actually makes
> calling save-some-buffers somewhat redundant.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]