Closed LukasCBossert closed 1 year ago
Hi @LukasCBossert !
Did you install doom-nano-modeline
?
If so, this happens if there is an error when generating the decorated string of the modeling. Can you please run (doom-nano-modeline-default-mode)
and check if there is any error?
Hi @ronisbr ,
(doom-nano-modeline-default-mode)
is enabled and in my message-buffer I see this
Error during redisplay: (eval (funcall (or (catch 'found (dolist (elt doom-nano-modeline-mode-formats) (let* ((config (cdr elt)) (mode-p (plist-get config :mode-p)) (format (plist-get config :format))) (when mode-p (when (funcall mode-p) (throw 'found format)))))) #'doom-nano-modeline-default-mode-format))) signaled (wrong-number-of-arguments #<subr mapconcat> 2) [8 times]
does this help?
For the sake of completeness:
In my config.el
I have:
(after! doom-themes
(load-theme 'doom-nano-dark t)
)
(use-package! doom-nano-modeline
:config
(doom-nano-modeline-mode 1)
(global-hide-mode-line-mode 1)
)
in the packages.el
:
(package! doom-nano-modeline
:recipe (:host github
:repo "ronisbr/doom-nano-modeline"))
and the two theme-files are in my .doom.d/themes/
-folder.
Everything is right in your configuration. I have no idea why we are having this problem in mapconcat
function. What is you Emacs version?
GNU Emacs 28.2 (build 1, aarch64-apple-darwin21.6.0, Carbon Version 165 AppKit 2113.6) of 2022-09-15
Is it blank in every file? For example, try opening a C++ file.
yes, each file is affected. Regardless of the type.
Did you have any time to look into this or any idea what I could do, @ronisbr ?
Is it possible to try in a fresh doom section? For example, delete .doom.d, .emacs.d, add doom-nano-themes and doom-nano-modeline, and try again?
I did a complete new installation and only added the doom-nano-themes and and the doom-nano-modeline (as written above).
Still same error:
Error during redisplay: (eval (funcall (or (catch 'found (dolist (elt doom-nano-modeline-mode-formats) (let* ((config (cdr elt)) (mode-p (plist-get config :mode-p)) (format (plist-get config :format))) (when mode-p (when (funcall mode-p) (throw 'found format)))))) #'doom-nano-modeline-default-mode-format))) signaled (wrong-number-of-arguments #<subr mapconcat> 2) [99 times]
My doom-info
is:
generated Mar 03, 2023 01:24:29
system MacOS 13.2.1 Darwin 22.3.0 arm64 mac
emacs 28.2 ~/.config/emacs/
doom 3.0.0-pre PROFILE=_@0 grafted, HEAD -> master, origin/master, origin/HEAD
8f6b045 2023-03-01 17:32:32 -0500 ~/.config/doom/
shell /bin/zsh
features ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE PDUMPER THREADS
TOOLKIT_SCROLL_BARS XIM ZLIB
traits gui server-running envvar-file
modules :config use-package :completion company vertico :ui doom doom-dashboard
hl-todo modeline ophints (popup +defaults) (vc-gutter +pretty)
vi-tilde-fringe workspaces :editor (evil +everywhere) file-templates fold
snippets :emacs dired electric undo vc :checkers syntax :tools (eval
+overlay) lookup magit :os macos :lang emacs-lisp markdown org sh :config
(default +bindings +smartparens)
packages (doom-nano-modeline :recipe (:host github :repo
ronisbr/doom-nano-modeline))
I am using Emacs 29. I will install 28 to check if there is some compatibility issue.
I dont mind upgrading if this helps.... (if you tell me how to do best using homebrew).
Ok, I installed emacs 29 now and it works!!!!!
Wow! Thanks! Probably the function mapreduce
changed the API! I need to verify how can I support Emacs 28.
I found the problem! The last argument in mapconcat
in Emacs 28 is not optional! It should now be fixed by https://github.com/ronisbr/doom-nano-modeline/commit/14a6adb28e06c383c351c1823237abaddfbab4d1
Can you please test in Emacs 28?
oh - I deleted my Emacs 28 completely......
No problem! I will test later :) Thanks!
With my current setup I do not get the header bar as in your screenshot
I have a blank line instead:
Does my
init.el
-file taking effect on it?