evil-collection icon indicating copy to clipboard operation
evil-collection copied to clipboard

Errors after `mu4e` update to 1.8.x

Open dschrempf opened this issue 3 years ago • 5 comments

mu and mu4e have been updated to version 1.8.x. See https://github.com/djcb/mu/blob/release/1.8/NEWS.org.

When I start mu4e, I get the following error with evil-collection:

Debugger entered--Lisp error: (search-failed "quit")
  re-search-forward("quit")
  evil-collection-mu4e-replace-region(#("\11* [;]Switch focus\n\11* [u]pdate email & database (A..." 0 3 (keymap (keymap (13 . mu4e-context-switch) (mouse-2 . mu4e-context-switch))) 3 4 (keymap (keymap (13 . mu4e-context-switch) (mouse-2 . mu4e-context-switch)) mouse-face highlight) 4 5 (face mu4e-highlight-face keymap (keymap (13 . mu4e-context-switch) (mouse-2 . mu4e-context-switch)) mouse-face highlight) 5 18 (keymap (keymap (13 . mu4e-context-switch) (mouse-2 . mu4e-context-switch)) mouse-face highlight) 18 19 (keymap (keymap (13 . mu4e-context-switch) (mouse-2 . mu4e-context-switch))) 19 22 (keymap (keymap (13 . mu4e-update-mail-and-index) (mouse-2 . mu4e-update-mail-and-index))) 22 23 (keymap (keymap (13 . mu4e-update-mail-and-index) (mouse-2 . mu4e-update-mail-and-index)) mouse-face highlight) 23 24 (face mu4e-highlight-face keymap (keymap (13 . mu4e-update-mail-and-index) (mouse-2 . mu4e-update-mail-and-index)) mouse-face highlight) 24 67 (keymap (keymap (13 . mu4e-update-mail-and-index) (mouse-2 . mu4e-update-mail-and-index)) mouse-face highlight) 67 68 (keymap (keymap (13 . mu4e-update-mail-and-index) (mouse-2 . mu4e-update-mail-and-index))) 69 72 (keymap (keymap (13 . mu4e-news) (mouse-2 . mu4e-news))) 72 73 (keymap (keymap (13 . mu4e-news) (mouse-2 . mu4e-news)) mouse-face highlight) 73 74 (face mu4e-highlight-face keymap (keymap (13 . mu4e-news) (mouse-2 . mu4e-news)) mouse-face highlight) 74 78 (keymap (keymap (13 . mu4e-news) (mouse-2 . mu4e-news)) mouse-face highlight) 78 79 (keymap (keymap (13 . mu4e-news) (mouse-2 . mu4e-news))) 79 82 (keymap (keymap (13 . mu4e-about) (mouse-2 . mu4e-about))) ...) "\n  Misc" "quit")
  evil-collection-mu4e-update-main-view()
  run-hooks(change-major-mode-after-body-hook special-mode-hook mu4e-main-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook special-mode-hook mu4e-main-mode-hook))
  run-mode-hooks(mu4e-main-mode-hook)
  mu4e-main-mode()
  mu4e--main-redraw-buffer()
  mu4e--main-view-real-1(nil)
  mu4e--main-view()
  mu4e--pong-handler((:pong "mu" :props (:version "1.8.0" :personal-addresses ("MY-EMAIL") :database-path "/home/user/.cache/mu/xapian" :root-maildir "/home/user/Maildir" :doccount 80565 :queries ((:query "(flag:flagged OR flag:unread) AND maildir:/mail/I..." :count 2 :unread 0) (:query "(flag:flagged OR flag:unread) AND maildir:/mail/U..." :count 6 :unread 0) (:query "(flag:flagged OR flag:unread) AND maildir:/mail/L..." :count 0 :unread 0) (:query "flag:flagged AND \"maildir:/mail/Sent Mail..." :count 0 :unread 0) (:query "(maildir:/mail/Linux AND date:..1m) OR maildir:/T..." :count 6860 :unread 0) (:query "(not maildir:/Archive) AND date:..3y" :count 4609 :unread 0) (:query "maildir:\"/Archive\"" :count 44349 :unread 0) (:query "maildir:\"/mail/Inbox\"" :count 9197 :unread 0) (:query "maildir:\"/mail/Linux\"" :count 7849 :unread 0) (:query "maildir:\"/mail/University\"" :count 17565 :unread 0) (:query "maildir:\"/Drafts\"" :count 0 :unread 0) (:query "maildir:\"/mail/Sent Mail\"" :count 1605 :unread 0) (:query "maildir:\"/Trash\"" :count 0 :unread 0)))) mu4e--main-view)
  #f(compiled-function (info) #<bytecode 0x1db087ad9e29d341>)((:pong "mu" :props (:version "1.8.0" :personal-addresses ("MY-EMAIL") :database-path "/home/user/.cache/mu/xapian" :root-maildir "/home/user/Maildir" :doccount 80565 :queries ((:query "(flag:flagged OR flag:unread) AND maildir:/mail/I..." :count 2 :unread 0) (:query "(flag:flagged OR flag:unread) AND maildir:/mail/U..." :count 6 :unread 0) (:query "(flag:flagged OR flag:unread) AND maildir:/mail/L..." :count 0 :unread 0) (:query "flag:flagged AND \"maildir:/mail/Sent Mail..." :count 0 :unread 0) (:query "(maildir:/mail/Linux AND date:..1m) OR maildir:/T..." :count 6860 :unread 0) (:query "(not maildir:/Archive) AND date:..3y" :count 4609 :unread 0) (:query "maildir:\"/Archive\"" :count 44349 :unread 0) (:query "maildir:\"/mail/Inbox\"" :count 9197 :unread 0) (:query "maildir:\"/mail/Linux\"" :count 7849 :unread 0) (:query "maildir:\"/mail/University\"" :count 17565 :unread 0) (:query "maildir:\"/Drafts\"" :count 0 :unread 0) (:query "maildir:\"/mail/Sent Mail\"" :count 1605 :unread 0) (:query "maildir:\"/Trash\"" :count 0 :unread 0)))))
  mu4e--server-filter(#<process *mu4e-server*> "\376456\377(:pong \"mu\" :props (:version \"1.8.0\" :persona...")

dschrempf avatar Jun 27 '22 06:06 dschrempf

Oh, seems like mu4e 1.8 has a new main panel UI.

condy0919 avatar Jun 28 '22 07:06 condy0919

I just wanted to note that I see a similar message while I'm running:

❯ mu --version
mu (mail indexer/searcher) version 1.4.15

I am able to still use mu4e to receive and send mail, however the *Messages* buffer shows:

error in process filter: evil-collection-mu4e-replace-region: Search failed: "quit"
error in process filter: Search failed: "quit"
error in process filter: evil-collection-mu4e-replace-region: Search failed: "quit"
error in process filter: Search failed: "quit"

basbossink-ds avatar Jul 26 '22 15:07 basbossink-ds

Same here on FreeBSD with:

mu --version
mu (mail indexer/searcher) version 1.6.10

I have to mu index on the terminal to see an update headers list.

I just wanted to note that I see a similar message while I'm running:

❯ mu --version
mu (mail indexer/searcher) version 1.4.15

I am able to still use mu4e to receive and send mail, however the *Messages* buffer shows:

error in process filter: evil-collection-mu4e-replace-region: Search failed: "quit"
error in process filter: Search failed: "quit"
error in process filter: evil-collection-mu4e-replace-region: Search failed: "quit"
error in process filter: Search failed: "quit"

cantao avatar Jul 27 '22 13:07 cantao

I'm using mu 1.8.* without similar problems:

λ mu --version
mu (mail indexer/searcher) version 1.8.7
Copyright (C) 2008-2021 Dirk-Jan C. Binnema
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

tshu-w avatar Jul 27 '22 13:07 tshu-w

The problem is that the UI screen of mu4e does not contain the string "quit". Instead it has the string "[q]uit" to mark q as the key command.

Using doom emacs, I've tried to work around it with this snippet.

(after! evil-collection
  (setq evil-collection-mu4e-end-region-misc "\\[q\\]uit"))

Setting evil-collection-mu4e-end-region-misc to "\[q\]uit" manually, before mu4e is opened the first time, works.

[EDIT]

It can be worked around with doom emacs with

(after! evil-collection
  (after! mu4e
    (setq evil-collection-mu4e-end-region-misc "\\[q\\]uit")))

jm-g avatar Sep 23 '22 06:09 jm-g

Other mu4e compatibility thread.

Please PR jm-g if it is still relevant and may help other users.

jojojames avatar Mar 09 '23 19:03 jojojames