-
Notifications
You must be signed in to change notification settings - Fork 32
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
Comments
From: HiTuX ***@***.***>
Date: Sun, 29 Dec 2024 05:14:12 -0800
Hi Prot,
Hello there!
Hopping you are doing well.
I am fine, thank you! These days have been rainy and so my electricity
is limited.
`modus-themes-toggle` and `modus-themes-rotate` failed to work, and I got this is msg in minibuffer:
```elisp
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?
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.
Thank you so much for all your contributions
You are welcome!
…--
Protesilaos Stavrou
https://protesilaos.com
|
Hoping it will turn sunny soon. wishing best for you Prot.
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
|
I think the problem is in modus-theme-4.6.0 shipped in ELPA. |
No! sorry, I was wrong, the porblem persists. I got the same problem after restarting emacs !!!!!!!!!!!!! |
I just backup my |
From: HiTuX ***@***.***>
Date: Tue, 31 Dec 2024 03:06:33 -0800
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.
Very well!
…--
Protesilaos Stavrou
https://protesilaos.com
|
Hi Prot,
Hopping you are doing well.
modus-themes-toggle
andmodus-themes-rotate
failed to work, and I got this is msg in minibuffer:This behaviour also accurs when selecting
modus-operandi
ormodus-vivendi
usingmodus-themes-select
, and sometimes even before selecting these themes.Any hints?
Thank you so much for all your contributions
The text was updated successfully, but these errors were encountered: