[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23692: 25.1.50; Package.el gets confused if file has no autoloads (c
From: |
Clément Pit--Claudel |
Subject: |
bug#23692: 25.1.50; Package.el gets confused if file has no autoloads (could be a bug in update-directory-autoloads) |
Date: |
Mon, 13 Jun 2016 18:17:02 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 |
Yup, works for me!
On 2016-06-08 21:47, Stefan Monnier wrote:
>>>> When the a single-package file has no autoloads, the call to
>>>> update-directory-autoloads leaves the generated autoload files
>>>> modified, but unsaved. This causes package.el to prompt the user
>>>> about killing a modified file.
>
> Does the patch below fix the problem for you?
>
>
> Stefan
>
>
> diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
> index 6473e31..9cf96fd 100644
> --- a/lisp/emacs-lisp/autoload.el
> +++ b/lisp/emacs-lisp/autoload.el
> @@ -1111,7 +1111,8 @@ write its autoloads into the specified file instead."
>
> ;; Don't modify the file if its content has not been changed, so `make'
> ;; dependencies don't trigger unnecessarily.
> - (when changed
> + (if (not changed)
> + (set-buffer-modified-p nil)
> (let ((version-control 'never))
> (save-buffer)))
>
>
>
signature.asc
Description: OpenPGP digital signature