[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] scratch/package.el-async-refresh bc0fc5e: Implement as
From: |
Artur Malabarba |
Subject: |
Re: [Emacs-diffs] scratch/package.el-async-refresh bc0fc5e: Implement async refreshing in package-refresh-contents |
Date: |
Tue, 31 Mar 2015 11:02:29 +0100 |
> I personally would only place a single function on it, tho (which then
> calls the above 3 functions). Or I would keep it nil by default, and
> just put a call to that (new) function wherever you currently run
> package--post-download-archives-hook.
Yes, I've changed it to this last one. Makes more sense here.
>
>> + (add-hook 'package--post-download-archives-hook
>> + #'package-menu--populate-new-package-list 'append)
>> + (add-hook 'package--post-download-archives-hook
>> + #'package-menu--revert 'append)
>> + (add-hook 'package--post-download-archives-hook
>> + #'package-menu--find-and-notify-upgrades 'append)
>
> Similarly, here I'd put a single function on the hook which then calls
> those 3.
Done.