abougouffa / minemacs

MinEmacs: an Emacs configuration framework for daily use
https://abougouffa.github.io/minemacs/
MIT License
143 stars 16 forks source link

+mu4e-available-p void variable after new installation #79

Closed DarkBuffalo closed 1 year ago

DarkBuffalo commented 1 year ago

Salut @abougouffa

Sauf erreur de ma part, il semble manquer la variable +mu4e-available-p.

Debugger entered--Lisp error: (void-variable +mu4e-available-p)
  (and (memq 'me-email minemacs-modules) +mu4e-available-p)
  (if (and (memq 'me-email minemacs-modules) +mu4e-available-p) (progn (eval-after-load 'minemacs-lazy #'(lambda nil (+eval-when-idle 1.0 #'(lambda nil ...))))))
  load-with-code-conversion("/home/darkbuffalo/.emacs.m/modules/me-daemon.el" "/home/darkbuffalo/.emacs.m/modules/me-daemon.el" nil nil)
  load("/home/darkbuffalo/.emacs.m/modules/me-daemon.el" nil nil)
  (if (file-exists-p filename) (load filename nil (not minemacs-verbose)) (user-error "[MinEmacs:Error] Cannot load \"%s\", the file doesn'..." filename))
  (let ((filename (file-truename (apply #'concat filename-parts)))) (if (file-exists-p filename) (load filename nil (not minemacs-verbose)) (user-error "[MinEmacs:Error] Cannot load \"%s\", the file doesn'..." filename)))
  +load("~/.emacs.m/modules/me-daemon.el")
  (let ((module-file (car tail))) (+load module-file) (setq tail (cdr tail)))
  (while tail (let ((module-file (car tail))) (+load module-file) (setq tail (cdr tail))))
  (let ((tail (append (mapcar (apply-partially #'format "%s%s.el" minemacs-core-dir) minemacs-core-modules) (mapcar (apply-partially #'format "%s%s.el" minemacs-modules-dir) minemacs-modules)))) (while tail (let ((module-file (car tail))) (+load module-file) (setq tail (cdr tail)))))
  load-with-code-conversion("/home/darkbuffalo/.emacs.m/init.el" "/home/darkbuffalo/.emacs.m/init.el" t t)
  load("/home/darkbuffalo/.emacs.m/init.el" t t)
  (let ((init-file (expand-file-name "init.el" user-emacs-directory))) (setq package-user-dir (expand-file-name "elpa" user-emacs-directory)) (load init-file t t) (let ((chemacs-custom-file (chemacs-profile-get 'custom-file init-file))) (if (not custom-file) (progn (setq custom-file chemacs-custom-file) (if (equal custom-file init-file) nil (if (file-exists-p custom-file) nil (let (...) (save-current-buffer ... ...))) (load custom-file))))))
  chemacs-load-user-init()
  load-with-code-conversion("/home/darkbuffalo/.emacs.d/init.el" "/home/darkbuffalo/.emacs.d/init.el" t t)
  load("/home/darkbuffalo/.emacs.d/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode -0x126e31fa89c50207>) #f(compiled-function () #<bytecode -0x1f3c61addc0acb35>) t)
  command-line()
  normal-top-level()
abougouffa commented 1 year ago

La constante +mu4e-available-p est définie dans me-email, si ce module n'est pas activé, la condition (and (memq 'me-email minemacs-modules) +mu4e-available-p) doit s'arrêter sur le premier terme (memq 'me-email minemacs-modules) et elle ne va pas vérifier +mu4e-available-p.

Je ne vois pas pourquoi tu as eu cette erreur, sauf si tu n'utilises pas le module me-email et tu fais un (provide 'me-email) quelque part dans tes fichiers de conf.

DarkBuffalo commented 1 year ago

@abougouffa

Dans les modules il faut charger me-email avant me-daemon sinon ça produit cette erreur après une première installation.