branch: elpa/magit
commit fbde5742d12514cef3725843a71ac0b0d7d14a83
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-custom-initialize-after-init: And one more
    
    :(
    
    Fixes #5485.
---
 lisp/magit-autorevert.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/magit-autorevert.el b/lisp/magit-autorevert.el
index de0bc22beb1..95b47fffc1d 100644
--- a/lisp/magit-autorevert.el
+++ b/lisp/magit-autorevert.el
@@ -113,11 +113,11 @@ seconds of user inactivity.  That is not desirable."
     (internal--define-uninitialized-variable symbol)
     (cond ((not after-init-time)
            (letrec ((f (apply-partially
-                        (lambda (symbol)
+                        (lambda (symbol value)
                           (ignore-errors
                             (remove-hook 'after-init-hook f))
                           (custom-initialize-set symbol value))
-                        symbol)))
+                        symbol value)))
              (add-hook 'after-init-hook f)))
           ((not load-file-name)
            (custom-initialize-set symbol value))

Reply via email to