Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eager macro-expansion failure #127

Open
HiTuX opened this issue Dec 29, 2024 · 6 comments
Open

Eager macro-expansion failure #127

HiTuX opened this issue Dec 29, 2024 · 6 comments

Comments

@HiTuX
Copy link

HiTuX commented Dec 29, 2024

Hi Prot,

Hopping you are doing well.

modus-themes-toggle and modus-themes-rotate failed to work, and I got this is msg in minibuffer:

internal-macroexpand-for-load: Eager macro-expansion failure: (wrong-number-of-arguments (2 . 3) 1) [2 times]

This behaviour also accurs when selecting modus-operandi or modus-vivendi using modus-themes-select, and sometimes even before selecting these themes.

Any hints?

Thank you so much for all your contributions

@protesilaos
Copy link
Owner

protesilaos commented Dec 30, 2024 via email

@HiTuX
Copy link
Author

HiTuX commented Dec 30, 2024

I am fine, thank you! These days have been rainy and so my electricity
is limited.

Hoping it will turn sunny soon. wishing best for you Prot.

This usually happens when there is a conflict between the new version
and older .elc files. Try to delete the package and install it again.

Here is what i got by removing and reinstalling modus-theme from ELPA:

Leaving directory ‘/home/hkh/.emacs.d/elpa/modus-themes-4.6.0’

Compiling file /home/hkh/.emacs.d/elpa/modus-themes-4.6.0/modus-operandi-deuteranopia-theme.el at Mon Dec 30 20:58:02 2024
Entering directory ‘/home/hkh/.emacs.d/elpa/modus-themes-4.6.0/’
modus-operandi-deuteranopia-theme.el:37:2: Error: Wrong number of arguments: ((modus-themes-custom-variables modus-themes-faces t) (name) "Bind NAME's color palette around face specs and variables.

NAME should be the proper name of a Modus theme, either
`modus-operandi' or `modus-vivendi'.

Face specifications are passed to `custom-theme-set-faces'.
While variables are handled by `custom-theme-set-variables'.
Those are stored in `modus-themes-faces' and
`modus-themes-custom-variables' respectively." (let ((palette-sym (gensym)) (colors (mapcar #'car modus-themes-operandi-colors))) (list 'let* (cons '(class '((class color) (min-colors 89))) (cons (list palette-sym (list 'modus-themes--palette (list 'quote name))) (mapcar #'(lambda (color) (list color (list 'alist-get (list 'quote color) palette-sym))) colors))) (cons 'custom-theme-set-faces (cons (list 'quote name) modus-themes-faces)) (cons 'custom-theme-set-variables (cons (list 'quote name) modus-themes-custom-variables))))), 3

Compiling file /home/hkh/.emacs.d/elpa/modus-themes-4.6.0/modus-operandi-theme.el at Mon Dec 30 20:58:02 2024
modus-operandi-theme.el:37:2: Error: Wrong number of arguments: ((modus-themes-custom-variables modus-themes-faces t) (name) "Bind NAME's color palette around face specs and variables.

NAME should be the proper name of a Modus theme, either
`modus-operandi' or `modus-vivendi'.

Face specifications are passed to `custom-theme-set-faces'.
While variables are handled by `custom-theme-set-variables'.
Those are stored in `modus-themes-faces' and
`modus-themes-custom-variables' respectively." (let ((palette-sym (gensym)) (colors (mapcar #'car modus-themes-operandi-colors))) (list 'let* (cons '(class '((class color) (min-colors 89))) (cons (list palette-sym (list 'modus-themes--palette (list 'quote name))) (mapcar #'(lambda (color) (list color (list 'alist-get (list 'quote color) palette-sym))) colors))) (cons 'custom-theme-set-faces (cons (list 'quote name) modus-themes-faces)) (cons 'custom-theme-set-variables (cons (list 'quote name) modus-themes-custom-variables))))), 3

Compiling file /home/hkh/.emacs.d/elpa/modus-themes-4.6.0/modus-operandi-tinted-theme.el at Mon Dec 30 20:58:02 2024
modus-operandi-tinted-theme.el:37:2: Error: Wrong number of arguments: ((modus-themes-custom-variables modus-themes-faces t) (name) "Bind NAME's color palette around face specs and variables.

NAME should be the proper name of a Modus theme, either
`modus-operandi' or `modus-vivendi'.

Face specifications are passed to `custom-theme-set-faces'.
While variables are handled by `custom-theme-set-variables'.
Those are stored in `modus-themes-faces' and
`modus-themes-custom-variables' respectively." (let ((palette-sym (gensym)) (colors (mapcar #'car modus-themes-operandi-colors))) (list 'let* (cons '(class '((class color) (min-colors 89))) (cons (list palette-sym (list 'modus-themes--palette (list 'quote name))) (mapcar #'(lambda (color) (list color (list 'alist-get (list 'quote color) palette-sym))) colors))) (cons 'custom-theme-set-faces (cons (list 'quote name) modus-themes-faces)) (cons 'custom-theme-set-variables (cons (list 'quote name) modus-themes-custom-variables))))), 3

Compiling file /home/hkh/.emacs.d/elpa/modus-themes-4.6.0/modus-operandi-tritanopia-theme.el at Mon Dec 30 20:58:02 2024
modus-operandi-tritanopia-theme.el:37:2: Error: Wrong number of arguments: ((modus-themes-custom-variables modus-themes-faces t) (name) "Bind NAME's color palette around face specs and variables.

NAME should be the proper name of a Modus theme, either
`modus-operandi' or `modus-vivendi'.

Face specifications are passed to `custom-theme-set-faces'.
While variables are handled by `custom-theme-set-variables'.
Those are stored in `modus-themes-faces' and
`modus-themes-custom-variables' respectively." (let ((palette-sym (gensym)) (colors (mapcar #'car modus-themes-operandi-colors))) (list 'let* (cons '(class '((class color) (min-colors 89))) (cons (list palette-sym (list 'modus-themes--palette (list 'quote name))) (mapcar #'(lambda (color) (list color (list 'alist-get (list 'quote color) palette-sym))) colors))) (cons 'custom-theme-set-faces (cons (list 'quote name) modus-themes-faces)) (cons 'custom-theme-set-variables (cons (list 'quote name) modus-themes-custom-variables))))), 3

Compiling file /home/hkh/.emacs.d/elpa/modus-themes-4.6.0/modus-themes.el at Mon Dec 30 20:58:02 2024

In modus-themes--prompt:
modus-themes.el:1432:8: Warning: function modus-themes--prompt used to take 8
    arguments, now takes 2

In modus-themes--heading:
modus-themes.el:1470:8: Warning: function modus-themes--heading used to take 6
    arguments, now takes 2-4

In modus-themes--completion-line:
modus-themes.el:1498:8: Warning: function modus-themes--completion-line used
    to take 5-7 arguments, now takes 1

In modus-themes--completion-match:
modus-themes.el:1521:8: Warning: function modus-themes--completion-match used
    to take 5 arguments, now takes 2

In modus-themes-theme:
modus-themes.el:4243:11: Warning: macro modus-themes-theme used to take 1
    argument, now takes 2 or 3

Compiling file /home/hkh/.emacs.d/elpa/modus-themes-4.6.0/modus-vivendi-deuteranopia-theme.el at Mon Dec 30 20:58:02 2024
modus-vivendi-deuteranopia-theme.el:37:2: Error: Wrong number of arguments: ((modus-themes-custom-variables modus-themes-faces t) (name) "Bind NAME's color palette around face specs and variables.

NAME should be the proper name of a Modus theme, either
`modus-operandi' or `modus-vivendi'.

Face specifications are passed to `custom-theme-set-faces'.
While variables are handled by `custom-theme-set-variables'.
Those are stored in `modus-themes-faces' and
`modus-themes-custom-variables' respectively." (let ((palette-sym (gensym)) (colors (mapcar #'car modus-themes-operandi-colors))) (list 'let* (cons '(class '((class color) (min-colors 89))) (cons (list palette-sym (list 'modus-themes--palette (list 'quote name))) (mapcar #'(lambda (color) (list color (list 'alist-get (list 'quote color) palette-sym))) colors))) (cons 'custom-theme-set-faces (cons (list 'quote name) modus-themes-faces)) (cons 'custom-theme-set-variables (cons (list 'quote name) modus-themes-custom-variables))))), 3

Compiling file /home/hkh/.emacs.d/elpa/modus-themes-4.6.0/modus-vivendi-theme.el at Mon Dec 30 20:58:02 2024
modus-vivendi-theme.el:37:2: Error: Wrong number of arguments: ((modus-themes-custom-variables modus-themes-faces t) (name) "Bind NAME's color palette around face specs and variables.

NAME should be the proper name of a Modus theme, either
`modus-operandi' or `modus-vivendi'.

Face specifications are passed to `custom-theme-set-faces'.
While variables are handled by `custom-theme-set-variables'.
Those are stored in `modus-themes-faces' and
`modus-themes-custom-variables' respectively." (let ((palette-sym (gensym)) (colors (mapcar #'car modus-themes-operandi-colors))) (list 'let* (cons '(class '((class color) (min-colors 89))) (cons (list palette-sym (list 'modus-themes--palette (list 'quote name))) (mapcar #'(lambda (color) (list color (list 'alist-get (list 'quote color) palette-sym))) colors))) (cons 'custom-theme-set-faces (cons (list 'quote name) modus-themes-faces)) (cons 'custom-theme-set-variables (cons (list 'quote name) modus-themes-custom-variables))))), 3

Compiling file /home/hkh/.emacs.d/elpa/modus-themes-4.6.0/modus-vivendi-tinted-theme.el at Mon Dec 30 20:58:02 2024
modus-vivendi-tinted-theme.el:37:2: Error: Wrong number of arguments: ((modus-themes-custom-variables modus-themes-faces t) (name) "Bind NAME's color palette around face specs and variables.

NAME should be the proper name of a Modus theme, either
`modus-operandi' or `modus-vivendi'.

Face specifications are passed to `custom-theme-set-faces'.
While variables are handled by `custom-theme-set-variables'.
Those are stored in `modus-themes-faces' and
`modus-themes-custom-variables' respectively." (let ((palette-sym (gensym)) (colors (mapcar #'car modus-themes-operandi-colors))) (list 'let* (cons '(class '((class color) (min-colors 89))) (cons (list palette-sym (list 'modus-themes--palette (list 'quote name))) (mapcar #'(lambda (color) (list color (list 'alist-get (list 'quote color) palette-sym))) colors))) (cons 'custom-theme-set-faces (cons (list 'quote name) modus-themes-faces)) (cons 'custom-theme-set-variables (cons (list 'quote name) modus-themes-custom-variables))))), 3

Compiling file /home/hkh/.emacs.d/elpa/modus-themes-4.6.0/modus-vivendi-tritanopia-theme.el at Mon Dec 30 20:58:02 2024
modus-vivendi-tritanopia-theme.el:37:2: Error: Wrong number of arguments: ((modus-themes-custom-variables modus-themes-faces t) (name) "Bind NAME's color palette around face specs and variables.

NAME should be the proper name of a Modus theme, either
`modus-operandi' or `modus-vivendi'.

Face specifications are passed to `custom-theme-set-faces'.
While variables are handled by `custom-theme-set-variables'.
Those are stored in `modus-themes-faces' and
`modus-themes-custom-variables' respectively." (let ((palette-sym (gensym)) (colors (mapcar #'car modus-themes-operandi-colors))) (list 'let* (cons '(class '((class color) (min-colors 89))) (cons (list palette-sym (list 'modus-themes--palette (list 'quote name))) (mapcar #'(lambda (color) (list color (list 'alist-get (list 'quote color) palette-sym))) colors))) (cons 'custom-theme-set-faces (cons (list 'quote name) modus-themes-faces)) (cons 'custom-theme-set-variables (cons (list 'quote name) modus-themes-custom-variables))))), 3
(emacs-version) 
("GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.2)" )

@HiTuX
Copy link
Author

HiTuX commented Dec 30, 2024

I think the problem is in modus-theme-4.6.0 shipped in ELPA.
I just instsalled modus-theme from MELPA (‘modus-themes-20241228.1050/’). and it works fine.

@HiTuX
Copy link
Author

HiTuX commented Dec 30, 2024

I think the problem is in modus-theme-4.6.0 shipped in ELPA.
I just instsalled modus-theme from MELPA (‘modus-themes-20241228.1050/’). and it works fine.

No! sorry, I was wrong, the porblem persists. I got the same problem after restarting emacs !!!!!!!!!!!!!
I'll keep testing this night ;(

@HiTuX
Copy link
Author

HiTuX commented Dec 31, 2024

I just backup my .emacs.d and create a new fresh init.el file. modus-theme works fine. Thus, I think the problem is in my old config. Thank you and sorry for inconvenience.

@protesilaos
Copy link
Owner

protesilaos commented Jan 1, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants