Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mu4e bug] headers scrolled off the top of the window when viewing message in mu4e:view #2683

Closed
jaknel opened this issue Apr 5, 2024 · 2 comments
Labels
bug mu4e specific for mu4e

Comments

@jaknel
Copy link

jaknel commented Apr 5, 2024

Describe the bug

The buffer is scrolled within the window such that the first few headers are not visible when first selecting a message to read. Expected behavior is that all headers are visible on first opening an email. M-x gnus-article-hide-headers reformats the buffer headers as I would expect, but does delete the Mu4e added Flags and Maildir headers. I think the issue is in this function and possibly at this line:

(let ((gnus-treatment-function-alist
where gnus-treatment-function-alist gets redefined but I haven't figured out a solution.

Example

When opening a sample email these are the three headers visible:

Date: Fri, 5 Apr 2024 09:55:53 -0400 (43 minutes, 45 seconds ago)
Flags: seen, personal
Maildir:

However when scrolling to the top of the email the message has these headers:
From:
Subject:
To:
CC:
Date: Fri, 5 Apr 2024 09:55:53 -0400 (43 minutes, 45 seconds ago)
Flags: seen, personal
Maildir:

How to Reproduce

  1. started emacs -Q
  2. (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e")
  3. M-x load-library RET mu4e RET
  4. M-x mu4e
  5. select an email to read
  6. Scroll up to see all headers.

Environment
Ubuntu Linux

mu master 9316d89 (4/5/2024)
emacs master ce29ae32d0b05cedbc9ba65c1a347ab7c34420ad (3/18/2024)

@jaknel jaknel added bug mu4e specific for mu4e new labels Apr 5, 2024
@djcb djcb removed the new label Apr 5, 2024
@djcb
Copy link
Owner

djcb commented Apr 5, 2024

Hmmm, that code snippet is years old; OTOH earlier this week people mentioned suddenly seeing this behavior. I can't reproduce with my normal daily-driver emacs, but I can with the steps-to-reproduce... I'll but a fix in place. Thanks!

@djcb djcb closed this as completed in 9557ba4 Apr 5, 2024
@jaknel
Copy link
Author

jaknel commented Apr 5, 2024

Thanks. Tested the patch and works for me.

djcb added a commit that referenced this issue Apr 18, 2024
This seems necessary in some cases; for some reason _this week_ that came
up a few time, although the code is old. Could repro with a bare emacs.

Fixes #2683.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mu4e specific for mu4e
Projects
None yet
Development

No branches or pull requests

2 participants