I have Magit installed and it used to work fine. However of late, I am running into the following error when I run magit-status
.
Turning on magit-auto-revert-mode...done
run-hooks: Symbol’s function definition is void: closure
I have tried deleting elpa
and reinstalling packages from scratch, new versions of Magit has also been released in the meantime, but none of those helped solve the problem. This is what I get with (setq debug-on-error t)
Debugger entered--Lisp error: (void-function closure)
closure()
run-hooks(magit-post-display-buffer-hook)
magit-display-buffer(#<buffer magit: dotemacs>)
magit-setup-buffer-internal(magit-status-mode nil ((magit-buffer-diff-args ("--no-ext-diff")) (magit-buffer-diff-files nil) (magit-buffer-log-args ("-n256" "--decorate")) (magit-buffer-log-files nil)))
magit-status-setup-buffer("/home/swarnendu/github/dotemacs/")
magit-status(nil ((7 . 4) (("/home/swarnendu/github/dotemacs/" . config) . #<hash-table equal 19/65 0x1558fd48cbb1>) (("/home/swarnendu/github/dotemacs/" . magit-toplevel) . "/home/swarnendu/github/dotemacs/") (("/home/swarnendu/github/dotemacs/" "rev-parse" "--show-cdup") . "") (("/home/swarnendu/github/dotemacs/" "rev-parse" "--show-toplevel") . "/home/swarnendu/github/dotemacs")))
funcall-interactively(magit-status nil ((7 . 4) (("/home/swarnendu/github/dotemacs/" . config) . #<hash-table equal 19/65 0x1558fd48cbb1>) (("/home/swarnendu/github/dotemacs/" . magit-toplevel) . "/home/swarnendu/github/dotemacs/") (("/home/swarnendu/github/dotemacs/" "rev-parse" "--show-cdup") . "") (("/home/swarnendu/github/dotemacs/" "rev-parse" "--show-toplevel") . "/home/swarnendu/github/dotemacs")))
call-interactively(magit-status nil nil)
command-execute(magit-status)
I am using GNU Emacs 28.0.50 on Ubuntu 18.04. I get the same error with Emacs 26.3. Please let me know how can I resolve this problem, thanks.