Commit Graph

1677 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 10c1aafa4c mu4e: Update mu4e-view-show-images doc string
Make clear it only applies to the old view.
2021-07-17 15:01:23 +03:00
Dirk-Jan C. Binnema d30f85934d mu4e.texi: Move docs for old view to appendix
Hopefully that makes it less confusing.
2021-07-17 15:01:23 +03:00
Thierry Volpiatto 617e8023f6
Fix mu4e-headers-prev with invisible lines
Skip invisible text at BOL possibly hidden by
the end of another invisible overlay covering
previous EOL.

This patch affects people using mu4e-thread-folding-mode but change nothing
when using mu4e as it is.
2021-07-12 06:47:36 +02:00
DiGitHubCap d394295fe7 Fix #2044: broken header movement with visual-line-mode
This fixes the issue introduced by 50f6f539 where header navigation
would break when `visual-line-mode' was enabled. Previously,
`forward-line' was used in `mu4e-view-headers-next', which disregarded
visual lines and moved by logical lines, but this was changed to
`line-move', which moves by visual lines when `line-move-visual' is
non-nil (the default when `visual-line-mode' is enabled). Thus, when
the current header line was wrapped and a message was open in the
split view, `mu4e-view-headers-next' would move to the next visual
line in the headers buffer (the same message), and then jump back to
the start of the previous line, preventing switching to the next
message.

This would also throw off navigation when `mu4e-view-headers-next' was
used with a prefix argument, since it would move by visual lines and
not headers.

`line-move-visual' is therefore set to nil before using `line-move' to
prevent these issues.
2021-07-05 22:39:31 -04:00
Dirk-Jan C. Binnema 7034556ab4
Merge pull request #2034 from thierryvolpiatto/remove_marked_overlays
Only remove mark overlays in `mu4e-mark-at-point`
2021-06-17 22:22:00 +03:00
Thierry Volpiatto 2f251209e3
Rename mmark overlay to mu4e-mark 2021-06-17 21:11:38 +02:00
Dirk-Jan C. Binnema 6ddfc61c8d mu4e: Update documentation for mu4e-view-fields
Fixes: #2041
2021-06-17 20:54:59 +03:00
Thierry Volpiatto 50f6f539f5
Ensure mu4e~headers-move honor line-move-ignore-invisible
This change is needed because forward-line doesn't honor this variable, more
generally visual lines.

Using `next-line` instead of `forward-line` allows this but it is more focused
on interactive use, so use `line-move` which handles visual lines without
warnings and return 0 or 1 just like `forward-line`.
2021-06-11 19:56:15 +02:00
Thierry Volpiatto 89538ef4fc
Only remove mark overlays in `mu4e-mark-at-point`
This prevent deleting overlays added by third party packages working as well
with overlays in mu4e-headers e.g. thread-folding , and probably in mu4e
itself as well with future features.  Also having a named overlay allows in
future features to modify any other overlays but these one.

As it is this patch doesn't modify the actual behavior.
2021-06-10 14:19:22 +02:00
Anders Johansson c090e36485 Fix bug with helm completing-read when saving attachments
Previously helm-comp-read-use-marked was bound also when completing on
a directory for saving attachments (when using a prefix argument). This
returned a list with the selected directory, which caused an error.
2021-06-02 18:03:39 +02:00
Salman Mohammadi 539a946aa4
mu4e/*: fix license notice at the start of source files
At the start of mu4e/* files, the license has been wrongly attributed
to GNU Emacs instead of mu4e.

Fixes https://github.com/djcb/mu/issues/2019
2021-05-29 23:45:10 +02:00
Dirk-Jan C. Binnema 0bb8ad6e4c
Merge pull request #2016 from Profpatsch/mu4e-view-dont-overwrite-home-and-end
mu4e-view: remove <home> and <end> bindings
2021-05-29 15:31:52 +03:00
Tassilo Horn b7fb722df6 Add support for bug-reference auto-setup in mu4e-view-mode
The bug-reference mode in Emacs 28 has support for several kinds of auto-setup,
one of them being for mail customizable by the variable
`bug-reference-setup-from-mail-alist`.  Add mu4e support for that so that users
can simply do

    (add-hook 'mu4e-view-mode-hook #'bug-reference-mode)

and have it working.

Also squash one byte-compiler warning about the (at compile-time) undefined
variable `gnus-article-buffer`.

* mu4e/mu4e-utils.el (mu4e-view--try-setup-bug-reference-mode): New function.
2021-05-28 23:33:08 +02:00
Profpatsch d106237c5a mu4e-view: remove <home> and <end> bindings
Users usually have `<home>` and `<end>` bound in their configuration,
for Spacemacs the default is “move-beginning-of-line” and “move-end-of-line”.

The mu4e view mode should not rebind basic navigation keys like these.
2021-05-20 14:16:37 +02:00
Dirk-Jan C. Binnema cefd66159a mu4e-headers: use the mu engine thread-subject
Instead of handling in the headers (which were broken).  The messages
that are hidden are _slightly_ different than before.
2021-05-04 17:36:24 +03:00
Dirk-Jan C. Binnema 2574071ac8 mu4e-view-gnus: use default for gnus-unbuttonized-mime-types
Changing it (e.g., to nil) doesn't work well with clickable URLs.
2021-05-02 23:48:30 +03:00
Dirk-Jan C. Binnema fa8505fa5a mu4e-vars: add thread-path/-date custom headers
Useful for debugging.
2021-05-02 23:33:06 +03:00
Dirk-Jan C. Binnema d0d305b48f mu-headers: Tweak thread prefix
Avoids some confusion.
Fixes: #1994.
Fixes: #1933.
2021-05-02 23:30:32 +03:00
Thierry Volpiatto b5656a7991
Fix #2006 by using cl-loop in mu4e-action-view-in-browser instead of seq
Using cl-loop is much simpler and readable, than using mapconcat+seq+seq.
Also it avoids requiring seq (which is not done actually).
2021-05-02 18:32:07 +02:00
Thierry Volpiatto 008f9fe443
Insert text without its text properties when replying 2021-05-01 20:28:55 +02:00
Dirk-Jan C. Binnema a11008deab Revert "mu4e-view-gnus: use the gnus mech to identify urls"
This reverts commit 6d9bd548f1.

Changes breaks article treatment.
2021-04-28 15:02:29 +03:00
Dirk-Jan C. Binnema 6d9bd548f1 mu4e-view-gnus: use the gnus mech to identify urls
Add mu4e~view-urlify, which replaces mu4e~view-activate-urls, and let
gnus determine where the URLs are.
2021-04-28 07:14:20 +03:00
Dirk-Jan C. Binnema 453c7f84e8 mu4e-view-gnus: don't render in invisible buffer
It seems that prevents image resizing from working.

Should help for issue #1998.
2021-04-27 00:10:11 +03:00
Dirk-Jan C. Binnema 5103f4614e mu4e-view-gnus: show URL links
Fixes: #1990.
2021-04-26 21:22:54 +03:00
Christophe Troestler 163fa1ee87 mu4e: Decode headers before viewing in browser 2021-04-26 01:50:23 +02:00
Christophe Troestler a9a874937e mu4e: Minor fixes to texinfo documentation 2021-04-26 01:40:11 +02:00
Dirk-Jan C. Binnema 3799975714 mu4e-view: only kill existing buffer 2021-04-25 14:05:27 +03:00
Dirk-Jan C. Binnema 15ab2c8d3a mu4e-view-gnus: better cleanup buffer
avoid seeing leftover MIME-parts of older buffers.
2021-04-25 13:44:57 +03:00
Dirk-Jan C. Binnema 704e631e8d mu4e/doc: document gnus rich-text handling 2021-04-25 11:41:24 +03:00
Dirk-Jan C. Binnema 6f206f0f7e mu4e-view-gnus: use gnus image variables directly
Let's avoid some wrapper code and use the gnus variables directly.
And some documentation updates.
2021-04-25 11:41:09 +03:00
Dirk-Jan C. Binnema f377483c16 mu4e-view-gnus: activate URLs
So we can follow them using 'g'
2021-04-25 09:08:59 +03:00
Dirk-Jan C. Binnema 71e0223d86 mu4e-view-gnus: implement mu4e-action-view-in-browser
Reimplement the browser view code for the gnus-based viewer; and let
gnus handle it too.

On change is that we currently only support showing html-messages.
2021-04-24 22:37:03 +03:00
Dirk-Jan C. Binnema 11bea28dad mu4e-view-gnus: cleanup message rendering
Refactor the way we view messages (using gnus) to reduce duplicate code.
Overall, cleanup the rendering part a bit.
2021-04-24 22:34:40 +03:00
Dirk-Jan C. Binnema 0218ed9a68 mu4e/meson.build: ensure builddir is checked first
Used for mu4e-meta.el. Not having this seems to break some users
meson-build.

HT: derek-zhou
2021-04-23 09:56:51 +03:00
Dirk-Jan C. Binnema 3a418745e1 mu4e-speedbar: fix compiler warning 2021-04-23 09:56:27 +03:00
Thierry Volpiatto bce31241a5
Remove unneeded or clause in mu4e-view-save-attachments 2021-04-22 19:30:23 +02:00
Dirk-Jan C. Binnema c6f2bf5333 Revert "mu4e-view-gnus: refactor message rendering code a bit"
This reverts commit 515af3e3d2, since it
broke the attachments display.
2021-04-20 10:54:41 +03:00
Dirk-Jan C. Binnema 515af3e3d2 mu4e-view-gnus: refactor message rendering code a bit
Split out the shared parts from mu4e~view-gnus and
mu4e~view-message-text.
2021-04-14 00:23:11 +03:00
Stephen J. Eglen f80123bb3e Simplify the code for using dired to attach messages
I originally sent some code to the mailing list in 2012 to use dired
for marking attachments.

https://groups.google.com/g/mu-discuss/c/OPwdNZbB5GE/m/hnjNlNoLIu8J

As the function in gnus.el has since been fixed, the version of
gnus-dired-mail-buffers now works fine with mu4e (and has done for
many years).  I suggest deleting the old code to make the
documentation simpler assuming that people are no longer on Emacs from
9 years ago.
2021-04-13 17:29:18 +01:00
Stephen J. Eglen 8a4a0e9a1c Spelling fixes and simplifying some code 2021-04-13 17:15:40 +01:00
Christophe Troestler e00faf6cd3 mu4e-headers: Set the point in the correct frame after search
Fixes https://github.com/djcb/mu/issues/1977
2021-04-12 23:54:13 +02:00
Christophe Troestler 561079d868 mu4e-mark: Allow executing marks without passing a prefix argument 2021-04-12 21:59:52 +02:00
Dirk-Jan C. Binnema 55d8d20771 mu4e-view-gnus: Don't special-case Ivy
Unlike helm, it's not good for multi-selections.
2021-04-12 22:12:23 +03:00
Dirk-Jan C. Binnema b68a12692f mu4e-mark: don't be too eager to avoid confirmation
Fixes: #1974.
2021-04-12 18:01:38 +03:00
Philip "Galli" Rentschler b8fe2ba682
skip confirmation when executing marks
When running `u4e-mark-execute-all` with any prefix-arg you can skip the confirmation-prompt. The potential for accidentally hitting this is quite low.
2021-04-09 16:53:48 +02:00
Dirk-Jan C. Binnema 5d414cffc9
Merge pull request #1967 from Chris00/ical
mu4e/ical: Compose the response attaching the calendar
2021-04-08 19:51:38 +03:00
Christophe Troestler 1dbe818378 mu4e/ical: Set `mu4e~view-rendering' to t as a buffer local variable
When an ics file is attached but not visualized by default, this is
necessary in order trigger the bug workaround in the advice attached
to `gnus-icalendar-event-from-handle'.
2021-04-06 15:29:56 +02:00
Christophe Troestler f673911277 mu4e/ical: Compose the response attaching the calendar
This composes the response before any hook is run which is important
so that, if those hooks modify the message, they are aware that some
MML is present.  In particular, this is needed to have the
compatibility with the org-msg package; see
https://github.com/djcb/mu/issues/1956
2021-04-06 15:29:20 +02:00
Christophe Troestler a9dd573c47 mu4e/doc: Describe `mu4e-view-blocked-images' 2021-04-06 10:19:20 +02:00
Dirk-Jan C. Binnema 0f03a03d64
Merge pull request #1962 from Chris00/attach-buffer
mu4e/compose: attach buffers & files setting any property
2021-04-06 00:14:47 +03:00