I'm trying to set my ediff faces to reuse some of the magit faces. The ediff colors are not very good in the dark mode I'm using. But I'm getting an error about compatibility. I found this error message in custom.el.
ediff/:config: Incompatible Custom theme spec
See this face-remap-set-base discussion for why I was trying face-all-attributes.
(custom-set-faces 'ediff-current-diff-face-A 'magit-diff-removed-highlight) (custom-set-faces 'ediff-current-diff-face-A (face-all-attributes 'magit-diff-removed-highlight)) (face-remap-set-base 'ediff-current-diff-face-B (face-all-attributes 'magit-diff-added-highlight)) I don't understand where theme is coming from. I don't see it in the ediff or magit files that define the faces. The ediff and magit faces define a different number of classes. Is this related to the error? Is there some way I can make this work?
custom-set-facesand ofcustom-theme-set-facesto which it refers, doesn't seem to describe arguments such as what you've provided. E.g.,custom-set-facestakes any number of args, each of which has the form(FACE SPEC [NOW [COMMENT]]). Instead, you've passed it either a face symbol or a list of face attributes. The arg you pass toface-remap-set-baselooks OK, though.custom-set-facesdoesn't take the same kinds of arguments thatface-remap-set-basetakes, according to their doc.custom-set-facessays "This works by callingcustom-theme-set-facesfor theusertheme."