syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.68k stars 4.89k forks source link

mu4e buffer is read only #15409

Closed rommeswi closed 1 year ago

rommeswi commented 2 years ago

Description :octocat:

mu4e does not start from home buffer a second time after closing it with q

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: Mu4e does not start. Instead, it gives a message that the mu4e buffer is read-only. Interestingly, this only occurs on the home screen but not when in another file.

Expected behaviour: :heart: :smile: Mu4e should start again

System Info :computer:

Backtrace :paw_prints:

lebensterben commented 2 years ago

Please M-x toggle-debug-on-error, and post the backtrace.

rommeswi commented 2 years ago

Nothing changed with toggle-debug-on-error. (I received confirmation that debug-on-error is enabled globally.

After pressing SPC a e m the only thing that happens is that "Buffer is read-only: #<buffer mu4e-main>" is shown in the line at the bottom.

So apparently this message is not even a lisp error but something else?

smile13241324 commented 2 years ago

Looks like I am not able to easily reproduce your issue. I have installed mu4e and setup an empty mail dir. When I am entering the home screen I can open the mu4e buffer and close it with q again. I can do this twice without getting a read only buffer message.

Could there be something else you have done which I have missed?

rommeswi commented 2 years ago
(with-eval-after-load 'mu4e
    ;; Do not reply to self - it is also necessary to set mu4e-user-mail-address-list
    (setq mu4e-compose-dont-reply-to-self t)
    ;; ISO date display:
    (setq mu4e-headers-date-format "%F")
    ;; Remove quit confirmation
    (setq mu4e-confirm-quit nil)
    ;; Set up link to mbsync
    (setq mu4e-get-mail-command "mbsync -qa")
    ;; Avoid duplicate UIDs and wrong UID names
    (setq mu4e-change-filenames-when-moving t)
    ;; This sets up org-contacts
    (setq mu4e-org-contacts-file  "DIRECTORY NAME HERE")
    (add-to-list 'mu4e-headers-actions
                 '("org-contact-add" . mu4e-action-add-org-contact) t)
    (add-to-list 'mu4e-view-actions
                 '("org-contact-add" . mu4e-action-add-org-contact) t)
    ;; View Emails in Browser
    (add-to-list 'mu4e-view-actions '("ViewInBrowser" . mu4e-action-view-in-browser) t)
    ;; Close message after sending message
    (setq message-kill-buffer-on-exit t))

These are the additional commands I have in my dotfile that are relevant to mu4e. Here are also my settings regarding the home buffer:

dotspacemacs-startup-buffer-responsive t dotspacemacs-home-shorten-agenda-source nil

I cannot see anything suspicious that would be related to this problem.

smile13241324 commented 2 years ago

Thanks for the info I will have another try.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!