Closed FlyfishO25 closed 2 years ago
Did you try reinstalling and recompiling the package?
I found this error in Github CI, from a fresh install of emacs 29 and doom-modeline (purcell's workflow)
29 is unstable. I am not going to fix these issues recently.
@FlyfishO25 I also stumbled across this. Did you find a workaround while still being able to define custom segments?
I found a fix myself:
The problem is that on Emacs 29, symbol-with-pos
entities are inserted in doom-modeline-fn-alist
instead of regular symbols:
doom-modeline-fn-alist is a variable defined in doom-modeline-core.el.
Value
((#<symbol dima-notifications-timer at 107782> . doom-modeline-segment--dima-notifications-timer)
(#<symbol dima-modeline-line-column at 106495> . doom-modeline-segment--dima-modeline-line-column)
(#<symbol modeline-left at 104391> . doom-modeline-segment--modeline-left) ...
As a work around, one can use the sexp below to strip the position info, so doom-modeline-fn-alist
is in the expected format. I call it after all my custom (doom-modeline-def-segment)
functions and everything works as expected.
(setq doom-modeline-fn-alist
(--map
(cons (remove-pos-from-symbol (car it)) (cdr it))
doom-modeline-fn-alist))
@Dima-369 Oh, what are the values of doom-modeline-fn-alist
and doom-modeline-var-alist
in your env? It looks so wired.
In 28, doom-modeline-fn-alist
is
((follow . doom-modeline-segment--follow)
(grip . doom-modeline-segment--grip)
(git-timemachine . doom-modeline-segment--git-timemachine)
(helm-follow . doom-modeline-segment--helm-follow)
(helm-prefix-argument . doom-modeline-segment--helm-prefix-argument)
(helm-help . doom-modeline-segment--helm-help)
(helm-number . doom-modeline-segment--helm-number)
(helm-buffer-id . doom-modeline-segment--helm-buffer-id)
(package . doom-modeline-segment--package)
(battery . doom-modeline-segment--battery)
(irc . doom-modeline-segment--irc)
(irc-buffers . doom-modeline-segment--irc-buffers)
(gnus . doom-modeline-segment--gnus)
(mu4e . doom-modeline-segment--mu4e)
(pdf-pages . doom-modeline-segment--pdf-pages)
(debug . doom-modeline-segment--debug)
(github . doom-modeline-segment--github)
(lsp . doom-modeline-segment--lsp)
(repl . doom-modeline-segment--repl)
(info-nodes . doom-modeline-segment--info-nodes)
(input-method . doom-modeline-segment--input-method)
(objed-state . doom-modeline-segment--objed-state)
(modals . doom-modeline-segment--modals)
(parrot . doom-modeline-segment--parrot)
(buffer-position . doom-modeline-segment--buffer-position)
(misc-info . doom-modeline-segment--misc-info)
(persp-name . doom-modeline-segment--persp-name)
(workspace-name . doom-modeline-segment--workspace-name)
(window-number . doom-modeline-segment--window-number)
(hud . doom-modeline-segment--hud)
(bar . doom-modeline-segment--bar)
(media-info . doom-modeline-segment--media-info)
(buffer-size . doom-modeline-segment--buffer-size)
(matches . doom-modeline-segment--matches)
(selection-info . doom-modeline-segment--selection-info)
(word-count . doom-modeline-segment--word-count)
(checker . doom-modeline-segment--checker)
(vcs . doom-modeline-segment--vcs)
(minor-modes . doom-modeline-segment--minor-modes)
(process . doom-modeline-segment--process)
(major-mode . doom-modeline-segment--major-mode)
(remote-host . doom-modeline-segment--remote-host)
(indent-info . doom-modeline-segment--indent-info)
(buffer-encoding . doom-modeline-segment--buffer-encoding)
(buffer-default-directory-simple . doom-modeline-segment--buffer-default-directory-simple)
(buffer-default-directory . doom-modeline-segment--buffer-default-directory)
(buffer-info-simple . doom-modeline-segment--buffer-info-simple)
(buffer-info . doom-modeline-segment--buffer-info))
By default doom-modeline-fn-alist
looks the same as yours, but when you use doom-modeline-def-segment
it appends a symbol with a position, so on Emacs 29 doom-modeline
will work fine by default. It just breaks when a custom segment is defined. I am also on native compilation, not sure why doom-modeline-segments.el
can define the segments correctly, but my config.el
can't.
doom-modeline-var-alist
is nil
for me, I don't think that there is anything wrong with it in 29.
Not sure if #530 is helpful to this scenario.
Not sure if https://github.com/seagle0128/doom-modeline/pull/530 is helpful to this scenario.
I tried and no, doom-modeline-fn-alist
still has the same issue with the symbols. The code from the pull request does not touch anything related to how the symbol in inserted into doom-modeline-fn-alist
.
Does it make sense to reopen this bug? Emacs 29 was branched recently and regardles of Emacs version it should be relevant.
This my backtrace on this bug:
--- [init.el] ---
Loading /home/bidar/.local/private/etc/emacs/init.el (source)...
Loading Emacs...done (2705.095s)
Loading /home/bidar/.local/private/etc/emacs/etc/borg/init.el (source)...
Initializing drones...done (205 drones in 0.093s, 12 skipped)
Turned ON changing cursor when Emacs is idle.
Building list of manual directory expansions...
Building completion list of all manual topics...
Appointment reminders enabled (no diary file found)
Starting new Ispell process hunspell with default dictionary... \
Starting new Ispell process hunspell with default dictionary...done
[2022-12-23 23:27:13] `*scratch*' [47 3600]
[2022-12-23 23:27:13] ` *Minibuf-0*' [47 3600]
[2022-12-23 23:27:13] `*Messages*' [0 3600]
[2022-12-23 23:27:13] `*Shell Command Output*' [47 3600]
[2022-12-23 23:27:13] `*Native-compile-Log*' [0 3600]
[2022-12-23 23:27:13] ` *code-conversion-work*' [0 3600]
[2022-12-23 23:27:13] `*Compile-Log*' [0 3600]
[2022-12-23 23:27:13] `*Warnings*' [0 3600]
[2022-12-23 23:27:13] ` *load*' [0 3600]
[2022-12-23 23:27:13] ` *perl-completion installed modules*' [0 3600]
[2022-12-23 23:27:13] `bugs.in.org' [0 3600]
Added 3 events for today
org-super-agenda-mode enabled.
Error: error ("bar is not a defined segment")
debug-early-backtrace()
debug-early(error (error "bar is not a defined segment"))
error("%s is not a defined segment" bar)
doom-modeline--prepare-segments((bar workspace-name window-number modals matches follow buffer-info remote-host buffer-position word-count parrot selection-info))
doom-modeline-def-modeline(main (bar workspace-name window-number modals matches follow buffer-info remote-host buffer-position word-count parrot selection-info) (compilation objed-state misc-info persp-name battery grip irc mu4e gnus github debug repl lsp minor-modes input-method indent-info buffer-encoding major-mode process vcs checker time))
byte-code("\300\301!\210\300\302!\210\303\304\305\306#\210\303\307\310\311#\210\303\312\313\314#\210\303\315\316\317#\210\303\320\321\322#\210\303\323\324\325#\210\303\326\327\330#\210\303\331\332\333#\210\303\334\335\336#\210\303\337\340\341#\210\303\342\343\344#\210\303\345\346\347#\210\303\350\351\352#\210\303\353\354\355#\210\303\356\357\360#\207" [require doom-modeline-core doom-modeline-segments doom-modeline-def-modeline main (bar workspace-name window-number modals matches follow buffer-info remote-host buffer-position word-count parrot selection-info) (compilation objed-state misc-info persp-name battery grip irc mu4e gnus github debug repl lsp minor-modes input-method indent-info buffer-encoding major-mode process vcs checker time) minimal (bar matches buffer-info-simple) (media-info major-mode time) special (bar window-number modals matches buffer-info remote-host buffer-position word-count parrot selection-info) (compilation objed-state misc-info battery irc-buffers debug minor-modes input-method indent-info buffer-encoding major-mode process time) project (bar window-number modals buffer-default-directory remote-host buffer-position) (compilation misc-info battery irc mu4e gnus github debug minor-modes input-method major-mode process time) dashboard (bar window-number buffer-default-directory-simple remote-host) (compilation misc-info battery irc mu4e gnus github debug minor-modes input-method major-mode process time) vcs (bar window-number modals matches buffer-info remote-host buffer-position parrot selection-info) (compilation misc-info battery irc mu4e gnus github debug minor-modes buffer-encoding major-mode process time) package (bar window-number package) (compilation misc-info major-mode process time) info (bar window-number buffer-info info-nodes buffer-position parrot selection-info) (compilation misc-info buffer-encoding major-mode time) media (bar window-number buffer-size buffer-info) (compilation misc-info media-info major-mode process vcs time) message (bar window-number modals matches buffer-info-simple buffer-position word-count parrot selection-info) (compilation objed-state misc-info battery debug minor-modes input-method indent-info buffer-encoding major-mode time) pdf (bar window-number matches buffer-info pdf-pages) (compilation misc-info major-mode process vcs time) org-src (bar window-number modals matches buffer-info-simple buffer-position word-count parrot selection-info) (compilation objed-state misc-info debug lsp minor-modes input-method indent-info buffer-encoding major-mode process checker time) helm (bar helm-buffer-id helm-number helm-follow helm-prefix-argument) (helm-help time) timemachine (bar window-number modals matches git-timemachine buffer-position word-count parrot selection-info) (misc-info minor-modes indent-info buffer-encoding major-mode time) calculator (window-number modals matches calc buffer-position) (misc-info minor-modes major-mode process)] 4)
(doom-modeline-mode 1)
(progn (doom-modeline-mode 1) (setq doom-modeline-project-detection 'auto) (setq doom-modeline-buffer-file-name-style 'auto) (setq doom-modeline-icon t) (setq doom-modeline-major-mode-icon t) (setq doom-modeline-major-mode-color-icon t) (setq doom-modeline-buffer-state-icon t) (setq doom-modeline-buffer-modification-icon t) (setq doom-modeline-time-icon t) (setq doom-modeline-unicode-fallback t) (setq doom-modeline-buffer-name t) (setq doom-modeline-minor-modes t) (setq doom-modeline-enable-word-count nil) (setq doom-modeline-continuous-word-count-modes '(markdown-mode gfm-mode org-mode)) (setq doom-modeline-buffer-encoding t) (setq doom-modeline-indent-info t) (setq doom-modeline-checker-simple-format t) (setq doom-modeline-number-limit 99) (setq doom-modeline-vcs-max-length 12) (setq doom-modeline-workspace-name t) (setq doom-modeline-persp-name t) (setq doom-modeline-display-default-persp-name nil) (setq doom-modeline-persp-icon t) (setq doom-modeline-lsp t) (setq doom-modeline-github t) (setq doom-modeline-github-interval (* 30 60)) (setq doom-modeline-modal-icon t) (setq doom-modeline-gnus t) (setq doom-modeline-gnus-timer 0) (setq doom-modeline-gnus-excluded-groups '("nntp+Gmane:gmane.emacs.bugs" "nntp+Gmane:gmane.emacs.devel" "nntp+Gmane:gmane.emacs.gnus.general" "nntp+Gmane:gmane.emacs.gnus.user" "nntp+Gmane:gmane.emacs.help" "nntp+Gmane:gmane.emacs.announce" "nntp+Gmane:gmane.emacs.emacsconf" "nntp+Gmane:gmane.emacs.emms.user" "nntp+Gmane:gmane.emacs.erc.general" "nntp+Gmane:gmane.linux.arch.announce")) (setq doom-modeline-irc t) (setq doom-modeline-irc-stylize 'identity) (setq doom-modeline-time t) (setq doom-modeline-display-misc-in-all-mode-lines t) (setq doom-modeline-env-version t) (setq doom-modeline-env-load-string "...") (require 'doom-modeline nil nil))
(closure (t) nil (progn (doom-modeline-mode 1) (setq doom-modeline-project-detection 'auto) (setq doom-modeline-buffer-file-name-style 'auto) (setq doom-modeline-icon t) (setq doom-modeline-major-mode-icon t) (setq doom-modeline-major-mode-color-icon t) (setq doom-modeline-buffer-state-icon t) (setq doom-modeline-buffer-modification-icon t) (setq doom-modeline-time-icon t) (setq doom-modeline-unicode-fallback t) (setq doom-modeline-buffer-name t) (setq doom-modeline-minor-modes t) (setq doom-modeline-enable-word-count nil) (setq doom-modeline-continuous-word-count-modes '(markdown-mode gfm-mode org-mode)) (setq doom-modeline-buffer-encoding t) (setq doom-modeline-indent-info t) (setq doom-modeline-checker-simple-format t) (setq doom-modeline-number-limit 99) (setq doom-modeline-vcs-max-length 12) (setq doom-modeline-workspace-name t) (setq doom-modeline-persp-name t) (setq doom-modeline-display-default-persp-name nil) (setq doom-modeline-persp-icon t) (setq doom-modeline-lsp t) (setq doom-modeline-github t) (setq doom-modeline-github-interval (* 30 60)) (setq doom-modeline-modal-icon t) (setq doom-modeline-gnus t) (setq doom-modeline-gnus-timer 0) (setq doom-modeline-gnus-excluded-groups '("nntp+Gmane:gmane.emacs.bugs" "nntp+Gmane:gmane.emacs.devel" "nntp+Gmane:gmane.emacs.gnus.general" "nntp+Gmane:gmane.emacs.gnus.user" "nntp+Gmane:gmane.emacs.help" "nntp+Gmane:gmane.emacs.announce" "nntp+Gmane:gmane.emacs.emacsconf" "nntp+Gmane:gmane.emacs.emms.user" "nntp+Gmane:gmane.emacs.erc.general" "nntp+Gmane:gmane.linux.arch.announce")) (setq doom-modeline-irc t) (setq doom-modeline-irc-stylize 'identity) (setq doom-modeline-time t) (setq doom-modeline-display-misc-in-all-mode-lines t) (setq doom-modeline-env-version t) (setq doom-modeline-env-load-string "...") (require 'doom-modeline nil nil)))()
eval-after-load(tracking (closure (t) nil (progn (doom-modeline-mode 1) (setq doom-modeline-project-detection 'auto) (setq doom-modeline-buffer-file-name-style 'auto) (setq doom-modeline-icon t) (setq doom-modeline-major-mode-icon t) (setq doom-modeline-major-mode-color-icon t) (setq doom-modeline-buffer-state-icon t) (setq doom-modeline-buffer-modification-icon t) (setq doom-modeline-time-icon t) (setq doom-modeline-unicode-fallback t) (setq doom-modeline-buffer-name t) (setq doom-modeline-minor-modes t) (setq doom-modeline-enable-word-count nil) (setq doom-modeline-continuous-word-count-modes '(markdown-mode gfm-mode org-mode)) (setq doom-modeline-buffer-encoding t) (setq doom-modeline-indent-info t) (setq doom-modeline-checker-simple-format t) (setq doom-modeline-number-limit 99) (setq doom-modeline-vcs-max-length 12) (setq doom-modeline-workspace-name t) (setq doom-modeline-persp-name t) (setq doom-modeline-display-default-persp-name nil) (setq doom-modeline-persp-icon t) (setq doom-modeline-lsp t) (setq doom-modeline-github t) (setq doom-modeline-github-interval (* 30 60)) (setq doom-modeline-modal-icon t) (setq doom-modeline-gnus t) (setq doom-modeline-gnus-timer 0) (setq doom-modeline-gnus-excluded-groups '("nntp+Gmane:gmane.emacs.bugs" "nntp+Gmane:gmane.emacs.devel" "nntp+Gmane:gmane.emacs.gnus.general" "nntp+Gmane:gmane.emacs.gnus.user" "nntp+Gmane:gmane.emacs.help" "nntp+Gmane:gmane.emacs.announce" "nntp+Gmane:gmane.emacs.emacsconf" "nntp+Gmane:gmane.emacs.emms.user" "nntp+Gmane:gmane.emacs.erc.general" "nntp+Gmane:gmane.linux.arch.announce")) (setq doom-modeline-irc t) (setq doom-modeline-irc-stylize 'identity) (setq doom-modeline-time t) (setq doom-modeline-display-misc-in-all-mode-lines t) (setq doom-modeline-env-version t) (setq doom-modeline-env-load-string "...") (require 'doom-modeline nil nil))))
(closure (t) nil (eval-after-load 'tracking #'(lambda nil (progn (doom-modeline-mode 1) (setq doom-modeline-project-detection 'auto) (setq doom-modeline-buffer-file-name-style 'auto) (setq doom-modeline-icon t) (setq doom-modeline-major-mode-icon t) (setq doom-modeline-major-mode-color-icon t) (setq doom-modeline-buffer-state-icon t) (setq doom-modeline-buffer-modification-icon t) (setq doom-modeline-time-icon t) (setq doom-modeline-unicode-fallback t) (setq doom-modeline-buffer-name t) (setq doom-modeline-minor-modes t) (setq doom-modeline-enable-word-count nil) (setq doom-modeline-continuous-word-count-modes '(markdown-mode gfm-mode org-mode)) (setq doom-modeline-buffer-encoding t) (setq doom-modeline-indent-info t) (setq doom-modeline-checker-simple-format t) (setq doom-modeline-number-limit 99) (setq doom-modeline-vcs-max-length 12) (setq doom-modeline-workspace-name t) (setq doom-modeline-persp-name t) (setq doom-modeline-display-default-persp-name nil) (setq doom-modeline-persp-icon t) (setq doom-modeline-lsp t) (setq doom-modeline-github t) (setq doom-modeline-github-interval (* 30 60)) (setq doom-modeline-modal-icon t) (setq doom-modeline-gnus t) (setq doom-modeline-gnus-timer 0) (setq doom-modeline-gnus-excluded-groups '("nntp+Gmane:gmane.emacs.bugs" "nntp+Gmane:gmane.emacs.devel" "nntp+Gmane:gmane.emacs.gnus.general" "nntp+Gmane:gmane.emacs.gnus.user" "nntp+Gmane:gmane.emacs.help" "nntp+Gmane:gmane.emacs.announce" "nntp+Gmane:gmane.emacs.emacsconf" "nntp+Gmane:gmane.emacs.emms.user" "nntp+Gmane:gmane.emacs.erc.general" "nntp+Gmane:gmane.linux.arch.announce")) (setq doom-modeline-irc t) (setq doom-modeline-irc-stylize 'identity) (setq doom-modeline-time t) (setq doom-modeline-display-misc-in-all-mode-lines t) (setq doom-modeline-env-version t) (setq doom-modeline-env-load-string "...") (require 'doom-modeline nil nil)))))()
eval-after-load(gnus (closure (t) nil (eval-after-load 'tracking #'(lambda nil (progn (doom-modeline-mode 1) (setq doom-modeline-project-detection 'auto) (setq doom-modeline-buffer-file-name-style 'auto) (setq doom-modeline-icon t) (setq doom-modeline-major-mode-icon t) (setq doom-modeline-major-mode-color-icon t) (setq doom-modeline-buffer-state-icon t) (setq doom-modeline-buffer-modification-icon t) (setq doom-modeline-time-icon t) (setq doom-modeline-unicode-fallback t) (setq doom-modeline-buffer-name t) (setq doom-modeline-minor-modes t) (setq doom-modeline-enable-word-count nil) (setq doom-modeline-continuous-word-count-modes '(markdown-mode gfm-mode org-mode)) (setq doom-modeline-buffer-encoding t) (setq doom-modeline-indent-info t) (setq doom-modeline-checker-simple-format t) (setq doom-modeline-number-limit 99) (setq doom-modeline-vcs-max-length 12) (setq doom-modeline-workspace-name t) (setq doom-modeline-persp-name t) (setq doom-modeline-display-default-persp-name nil) (setq doom-modeline-persp-icon t) (setq doom-modeline-lsp t) (setq doom-modeline-github t) (setq doom-modeline-github-interval (* 30 60)) (setq doom-modeline-modal-icon t) (setq doom-modeline-gnus t) (setq doom-modeline-gnus-timer 0) (setq doom-modeline-gnus-excluded-groups '("nntp+Gmane:gmane.emacs.bugs" "nntp+Gmane:gmane.emacs.devel" "nntp+Gmane:gmane.emacs.gnus.general" "nntp+Gmane:gmane.emacs.gnus.user" "nntp+Gmane:gmane.emacs.help" "nntp+Gmane:gmane.emacs.announce" "nntp+Gmane:gmane.emacs.emacsconf" "nntp+Gmane:gmane.emacs.emms.user" "nntp+Gmane:gmane.emacs.erc.general" "nntp+Gmane:gmane.linux.arch.announce")) (setq doom-modeline-irc t) (setq doom-modeline-irc-stylize 'identity) (setq doom-modeline-time t) (setq doom-modeline-display-misc-in-all-mode-lines t) (setq doom-modeline-env-version t) (setq doom-modeline-env-load-string "...") (require 'doom-modeline nil nil))))))
(closure (t) nil (eval-after-load 'gnus #'(lambda nil (eval-after-load 'tracking #'(lambda nil (progn (doom-modeline-mode 1) (setq doom-modeline-project-detection 'auto) (setq doom-modeline-buffer-file-name-style 'auto) (setq doom-modeline-icon t) (setq doom-modeline-major-mode-icon t) (setq doom-modeline-major-mode-color-icon t) (setq doom-modeline-buffer-state-icon t) (setq doom-modeline-buffer-modification-icon t) (setq doom-modeline-time-icon t) (setq doom-modeline-unicode-fallback t) (setq doom-modeline-buffer-name t) (setq doom-modeline-minor-modes t) (setq doom-modeline-enable-word-count nil) (setq doom-modeline-continuous-word-count-modes '(markdown-mode gfm-mode org-mode)) (setq doom-modeline-buffer-encoding t) (setq doom-modeline-indent-info t) (setq doom-modeline-checker-simple-format t) (setq doom-modeline-number-limit 99) (setq doom-modeline-vcs-max-length 12) (setq doom-modeline-workspace-name t) (setq doom-modeline-persp-name t) (setq doom-modeline-display-default-persp-name nil) (setq doom-modeline-persp-icon t) (setq doom-modeline-lsp t) (setq doom-modeline-github t) (setq doom-modeline-github-interval (* 30 60)) (setq doom-modeline-modal-icon t) (setq doom-modeline-gnus t) (setq doom-modeline-gnus-timer 0) (setq doom-modeline-gnus-excluded-groups '("nntp+Gmane:gmane.emacs.bugs" "nntp+Gmane:gmane.emacs.devel" "nntp+Gmane:gmane.emacs.gnus.general" "nntp+Gmane:gmane.emacs.gnus.user" "nntp+Gmane:gmane.emacs.help" "nntp+Gmane:gmane.emacs.announce" "nntp+Gmane:gmane.emacs.emacsconf" "nntp+Gmane:gmane.emacs.emms.user" "nntp+Gmane:gmane.emacs.erc.general" "nntp+Gmane:gmane.linux.arch.announce")) (setq doom-modeline-irc t) (setq doom-modeline-irc-stylize 'identity) (setq doom-modeline-time t) (setq doom-modeline-display-misc-in-all-mode-lines t) (setq doom-modeline-env-version t) (setq doom-modeline-env-load-string "...") (require 'doom-modeline nil nil)))))))()
eval-after-load-helper("/usr/share/emacs/30.0.50/lisp/gnus/gnus-demon.elc")
do-after-load-evaluation("/usr/share/emacs/30.0.50/lisp/gnus/gnus-demon.elc")
require(gnus-demon nil nil)
(progn (require 'gnus-demon nil nil) (defalias 'gnus-demon-scan-news-2 #'(lambda nil (if gnus-plugged (progn (let ((win (current-window-configuration)) (gnus-read-active-file nil) (gnus-check-new-newsgroups nil) (gnus-verbose 2) (gnus-verbose-backends 5)) (unwind-protect (let ((wconfig (current-window-configuration))) (unwind-protect (progn (if (gnus-alive-p) (progn (save-current-buffer (set-buffer gnus-group-buffer) (gnus-group-get-new-news gnus-activate-level))))) (set-window-configuration wconfig))) (set-window-configuration win))))))) (defalias 'save-gnus-newsrc #'(lambda nil (if (and (fboundp 'gnus-group-exit) (gnus-alive-p)) (save-current-buffer (set-buffer (get-buffer "*Group*")) (gnus-save-newsrc-file))))) (setq gnus-demon-handlers '((gnus-demon-scan-mail 120 60) (gnus-demon-scan-pgp 60 60) (gnus-demon-close-connections nil 3) (save-gnus-newsrc nil 1) (gnus-demon-scan-news-2 60 5))) (gnus-demon-cancel) (gnus-demon-init) t)
(closure (web-django-mode-abbrev-table web-django-mode-syntax-table git-commit-gfm-mode-abbrev-table git-commit-gfm-mode-syntax-table copy-as-format-prefix-map dired-ranger-map t) nil (progn (require 'gnus-demon nil nil) (defalias 'gnus-demon-scan-news-2 #'(lambda nil (if gnus-plugged (progn (let ((win (current-window-configuration)) (gnus-read-active-file nil) (gnus-check-new-newsgroups nil) (gnus-verbose 2) (gnus-verbose-backends 5)) (unwind-protect (let ((wconfig (current-window-configuration))) (unwind-protect (progn (if (gnus-alive-p) (progn (save-current-buffer (set-buffer gnus-group-buffer) (gnus-group-get-new-news gnus-activate-level))))) (set-window-configuration wconfig))) (set-window-configuration win))))))) (defalias 'save-gnus-newsrc #'(lambda nil (if (and (fboundp 'gnus-group-exit) (gnus-alive-p)) (save-current-buffer (set-buffer (get-buffer "*Group*")) (gnus-save-newsrc-file))))) (setq gnus-demon-handlers '((gnus-demon-scan-mail 120 60) (gnus-demon-scan-pgp 60 60) (gnus-demon-close-connections nil 3) (save-gnus-newsrc nil 1) (gnus-demon-scan-news-2 60 5))) (gnus-demon-cancel) (gnus-demon-init) t))()
eval-after-load(gnus (closure (web-django-mode-abbrev-table web-django-mode-syntax-table git-commit-gfm-mode-abbrev-table git-commit-gfm-mode-syntax-table copy-as-format-prefix-map dired-ranger-map t) nil (progn (require 'gnus-demon nil nil) (defalias 'gnus-demon-scan-news-2 #'(lambda nil (if gnus-plugged (progn (let ((win (current-window-configuration)) (gnus-read-active-file nil) (gnus-check-new-newsgroups nil) (gnus-verbose 2) (gnus-verbose-backends 5)) (unwind-protect (let ((wconfig (current-window-configuration))) (unwind-protect (progn (if (gnus-alive-p) (progn (save-current-buffer (set-buffer gnus-group-buffer) (gnus-group-get-new-news gnus-activate-level))))) (set-window-configuration wconfig))) (set-window-configuration win))))))) (defalias 'save-gnus-newsrc #'(lambda nil (if (and (fboundp 'gnus-group-exit) (gnus-alive-p)) (save-current-buffer (set-buffer (get-buffer "*Group*")) (gnus-save-newsrc-file))))) (setq gnus-demon-handlers '((gnus-demon-scan-mail 120 60) (gnus-demon-scan-pgp 60 60) (gnus-demon-close-connections nil 3) (save-gnus-newsrc nil 1) (gnus-demon-scan-news-2 60 5))) (gnus-demon-cancel) (gnus-demon-init) t)))
(closure (web-django-mode-abbrev-table web-django-mode-syntax-table git-commit-gfm-mode-abbrev-table git-commit-gfm-mode-syntax-table copy-as-format-prefix-map dired-ranger-map t) nil (eval-after-load 'gnus #'(lambda nil (progn (require 'gnus-demon nil nil) (defalias 'gnus-demon-scan-news-2 #'(lambda nil (if gnus-plugged (progn (let ((win (current-window-configuration)) (gnus-read-active-file nil) (gnus-check-new-newsgroups nil) (gnus-verbose 2) (gnus-verbose-backends 5)) (unwind-protect (let ((wconfig (current-window-configuration))) (unwind-protect (progn (if (gnus-alive-p) (progn (save-current-buffer (set-buffer gnus-group-buffer) (gnus-group-get-new-news gnus-activate-level))))) (set-window-configuration wconfig))) (set-window-configuration win))))))) (defalias 'save-gnus-newsrc #'(lambda nil (if (and (fboundp 'gnus-group-exit) (gnus-alive-p)) (save-current-buffer (set-buffer (get-buffer "*Group*")) (gnus-save-newsrc-file))))) (setq gnus-demon-handlers '((gnus-demon-scan-mail 120 60) (gnus-demon-scan-pgp 60 60) (gnus-demon-close-connections nil 3) (save-gnus-newsrc nil 1) (gnus-demon-scan-news-2 60 5))) (gnus-demon-cancel) (gnus-demon-init) t))))()
eval-after-load(gnus-group (closure (web-django-mode-abbrev-table web-django-mode-syntax-table git-commit-gfm-mode-abbrev-table git-commit-gfm-mode-syntax-table copy-as-format-prefix-map dired-ranger-map t) nil (eval-after-load 'gnus #'(lambda nil (progn (require 'gnus-demon nil nil) (defalias 'gnus-demon-scan-news-2 #'(lambda nil (if gnus-plugged (progn (let ((win (current-window-configuration)) (gnus-read-active-file nil) (gnus-check-new-newsgroups nil) (gnus-verbose 2) (gnus-verbose-backends 5)) (unwind-protect (let ((wconfig (current-window-configuration))) (unwind-protect (progn (if (gnus-alive-p) (progn (save-current-buffer (set-buffer gnus-group-buffer) (gnus-group-get-new-news gnus-activate-level))))) (set-window-configuration wconfig))) (set-window-configuration win))))))) (defalias 'save-gnus-newsrc #'(lambda nil (if (and (fboundp 'gnus-group-exit) (gnus-alive-p)) (save-current-buffer (set-buffer (get-buffer "*Group*")) (gnus-save-newsrc-file))))) (setq gnus-demon-handlers '((gnus-demon-scan-mail 120 60) (gnus-demon-scan-pgp 60 60) (gnus-demon-close-connections nil 3) (save-gnus-newsrc nil 1) (gnus-demon-scan-news-2 60 5))) (gnus-demon-cancel) (gnus-demon-init) t)))))
load-with-code-conversion("/home/bidar/.local/private/etc/emacs/init.el" "/home/bidar/.local/private/etc/emacs/init.el" nil nil)
load-file("init.el")
borg-batch-rebuild-init()
borg-batch-rebuild(nil t)
command-line-1(("--load" "subr-x" "--eval" "(setq byte-compile-warnings '(not docstrings))" "--eval" "(fset 'original-message (symbol-function 'message))" "--eval" "(fset 'message (lambda (format &rest args) (unless (or (equal format \"pcase-memoize: equal first branch, yet different\") (equal format \"Not registering prefix \\\"%s\\\" from %s. Affects: %S\") (and (stringp (car args)) (string-match-p \"Scraping files for\" (car args)))) (apply 'original-message format args))))" "-L" "lib/borg/" "--load" "borg" "--funcall" "borg-initialize" "--eval" "(borg-batch-rebuild nil t)"))
command-line()
normal-top-level()
Loading `/home/bidar/.local/private/etc/emacs/init.el': unescaped character literals `?[', `?]' detected, `?\[', `?\]' expected!
bar is not a defined segment
make: *** [lib/borg/borg.mk:106: native] Error 255
@Thaodan The latest version works well with Emacs 29.0.60 on my Macbook pro. I suggest to reinstall the package.
@seagle0128 这 v29.1 上一直工作良好, 但是刚刚启动时突然也遇到这个情况了. 重启之后就好了, 感觉是小概率事件.
This issue has been addressed in 36dd97728611ca419de06cfec9da42a1fe9ba024.
Thank you for the bug report
doom-mode
related packages.emacs -Q
.Bug description
I got these error message below when I start
(doom-modeline-mode)
in emacs 29.0.50Steps to reproduce
Expected behavior
Expected: successfully start doom-modeline-mode
OS
Linux
Emacs Version
28
Emacs Configurations
https://github.com/FlyfishO25/.emacs.d
Error callstack
Anything else
Emacs version is not in the version list (emacs 29.0.50)