I am trying to use magit-delta (https://github.com/dandavison/magit-delta). I am using GNU Emacs 26.3.

When I add following line ( (magit-delta-mode 1) )into the .emacs file, I get following error:

Debugger entered--Lisp error: (wrong-type-argument sequencep all)
  cl-intersection((all magit) all)

326%\210\362\374\375\376\324\326%\210\362\377\201@\0\201A\0\324\326%\207" [async-bytecomp-allowed-packages require button cl-lib dash format-spec async-bytecomp nil t cl-intersection (all
magit) boundp fboundp async-bytecomp-package-mode 1 custom-declare-group magit-popup "Infix arguments with a popup as feedback." :link (info-link "(magit-popup)") :group bindings
magit-popup-faces "Faces used by Magit-Popup." custom-declare-variable magit-popup-display-buffer-action funcall function #f(compiled-function () #<bytecode 0x1fa3d1d>) "The action used to
display a popup buffer.\n\nPopup buffers are displayed using `display-buffer' with the value\nof this option as ACTION argument.  You can also set this to nil\nand instead add an entry to
`display-buffer-alist'." :package-version (magit-popup . "2.4.0") :type sexp magit-popup-manpage-package #f(compiled-function () #<bytecode 0x1fa3d35>) "The package used to display
manpages.\nOne of `man' or `woman'." (choice (const man) (const woman)) magit-popup-show-help-echo #f(compiled-function () #<bytecode 0x1fa3d45>) "Show usage information in the echo area."
boolean magit-popup-show-common-commands #f(compiled-function () #<bytecode 0x1fa3d55>) "Whether to initially show section with commands common to all popups.\nThis section can also be
toggled temporarily using \\<magit-popup-mode-map>\\[magit-popup-toggle-show-common-commands]." (magit-popup . "2.9.0") magit-popup-use-prefix-argument #f(compiled-function () #<bytecode
0x1fa3d65>) "Control how prefix arguments affect infix argument popups.\n\nThis option controls the effect that the use of a prefix argument\nbefore entering a popup has.\n\n`default'  With
a prefix argument directly invoke the popup's\n           default action (an Emacs command), instead of bringing\n           up the popup.\n\n`popup'    With a prefix argument bring up the
popup, otherwise\n           directly invoke the popup's default action.\n\n`nil'      Ignore prefix arguments." (choice (const :tag "Call default action instead of showing popup" default)
(const :tag "Show popup instead of calling default action" popup) (const :tag "Ignore prefix argument" nil)) ...] 10)
  require(magit-popup nil t)
  (if (require (quote magit-popup) nil t) nil (defalias (quote magit-define-popup-switch) (function (lambda (&rest _) (magit--magit-popup-warning)))) (defalias (quote
magit-define-popup-option) (function (lambda (&rest _) (magit--magit-popup-warning)))) (defalias (quote magit-define-popup-variable) (function (lambda (&rest _)
(magit--magit-popup-warning)))) (defalias (quote magit-define-popup-action) (function (lambda (&rest _) (magit--magit-popup-warning)))) (defalias (quote magit-define-popup-sequence-action)
(function (lambda (&rest _) (magit--magit-popup-warning)))) (defalias (quote magit-define-popup-key) (function (lambda (&rest _) (magit--magit-popup-warning)))) (defalias (quote
magit-define-popup-keys-deferred) (function (lambda (&rest _) (magit--magit-popup-warning)))) (defalias (quote magit-change-popup-key) (function (lambda (&rest _)
(magit--magit-popup-warning)))) (defalias (quote magit-remove-popup-key) (function (lambda (&rest _) (magit--magit-popup-warning)))))
  eval-buffer(#<buffer  *load*-839362> nil "/home/alper/.emacs.d/elpa/magit-20200825.1251/magit-obsolete.el" nil t)  ; Reading at buffer position 3995
  load-with-code-conversion("/home/alper/.emacs.d/elpa/magit-20200825.1251/magit-obsolete.el" "/home/alper/.emacs.d/elpa/magit-20200825.1251/magit-obsolete.el" nil t)

40!\210\303\341!\210\303\342!\210\303\343!\210\344\345\346\"\210\010\203\222\0\347 \210\350 \210\202\236\0\351\352\347\333#\210\351\352\350\333#\210\301\207" [after-init-time provide magit
require magit-status magit-refs magit-files magit-reset magit-branch magit-merge magit-tag magit-worktree magit-notes magit-sequence magit-commit magit-remote magit-clone magit-fetch
magit-pull magit-push magit-bisect magit-stash magit-blame magit-obsolete magit-submodule load "magit-autoloads" t magit-patch magit-subtree magit-ediff magit-gitignore magit-extras
git-rebase magit-imenu magit-bookmark eval-after-load bookmark #f(compiled-function () #<bytecode 0x1ea96c9>) magit-startup-asserts magit-version add-hook after-init-hook] 4)
  eval-buffer(#<buffer  *load*-125346> nil "/home/alper/.emacs.d/elpa/magit-delta-20200518.2205/magit-delta.el" nil t)  ; Reading at buffer position 744
  load-with-code-conversion("/home/alper/.emacs.d/elpa/magit-delta-20200518.2205/magit-delta.el" "/home/alper/.emacs.d/elpa/magit-delta-20200518.2205/magit-delta.el" nil t)
  (magit-delta-mode 1)
  eval-buffer(#<buffer  *load*> nil "/home/alper/.emacs" nil t)  ; Reading at buffer position 77694
  load-with-code-conversion("/home/alper/.emacs" "/home/alper/.emacs" t t)
#f(compiled-function () #<bytecode 0x1e0f5d>)()

=> What may be the cause of this error and how can I fix it?

2 Answers 2


It looks like this is not related to magit-delta but rather to your magit installation. I would first uninstall magit-delta and magit, and then re-install magit, and see if the error persists. If you still see the error, then next try without any of your own configuration, i.e. uninstall them again, start emacs with emacs -Q, and then reinstall them, following the instructions on the MELPA website. I would make sure that you get to a point where your magit installation is working without any problems before installing magit-delta.

  • reinstalling magit solved the issue
    – alper
    Aug 28, 2020 at 16:40

cl-intersection expects sequences, that is, things that satisfy predicate sequencep as its arguments.

Instead, it received the list (all magit) and the symbol all as arguments. That's what the error message and top of the debugger are telling you:

(wrong-type-argument sequencep all)
cl-intersection((all magit) all)

Find the code (in magit-popup presumably) that does this and fix it.

Load the source file (*.el, not *.elc) and try again, to get a more informative backtrace.

  • Should I make change on the magit-delta.el file? Sorry I did not understand how could I fix it
    – alper
    Aug 27, 2020 at 11:59
  • Sorry, I know nothing about that library, and you haven't shown any details. I suggest you contact the library maintainer (e.g. submit a bug report). But perhaps someone else will have a helpful suggestion here.
    – Drew
    Aug 27, 2020 at 15:27
  • I am not so good at debugging emacs sorry. This actually works in another ubuntu machine that has Emacs 26.3 , with the exact same setup, not sure what's wrong // only ubuntu versions are different
    – alper
    Aug 27, 2020 at 15:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.