Commit Graph

2372 Commits

Author SHA1 Message Date
a720c9cb1c mu4e-compose: split citing / header extraction
We use a body from mu4e-view-message-text for citing, and
mu4e--decoded-message for header extraction.

There's room for some refactoring.
2023-11-10 16:47:34 +02:00
117600ef20 mu4e-main: cosmetics / docs 2023-11-10 16:47:23 +02:00
2058f15506 mu4e: improve startup routine
Switch to main buffer if it already exists, in the non-background case.
2023-11-10 16:47:23 +02:00
171fe9a018 mu4e-compose: add missing arg to mu4e-compose-new lambda 2023-11-08 18:18:47 +02:00
30a78d3cb9 mu4e-compose: use raw message for "forward"
Not the decoded one.
2023-11-08 15:33:47 +02:00
0941b37fcc Fix mu4e-compose-mail 2023-11-08 10:00:16 +01:00
d19c78f30d mu4e: Fix warnings in contrib 2023-11-08 10:00:06 +01:00
ea7c05c183 mu4e-compose: implement mu4e--decoded-message
Instead of mu4e-view-message-text, use a more targeted approach that
does just enough to get a decoded message with all the headers, which we
can use for replying.
2023-11-07 16:40:09 +02:00
c76c410256 mu4e: always include message-id in mu4e-view-message-text
Regardless of mu4e-view-headers; and ensure the message-id is in
<brackets>.
2023-11-05 17:52:14 +02:00
556396bb85 mu4e-compose: explicitly generate-headers
Ongoing troubles with this, and apparently some differences between
Emacs versions (?).

Explicitly generated the needed headers.
2023-11-05 16:47:08 +02:00
dfe28f033a mu4e-view: do full render in mu4e-view-message-text
Otherwise decoding does not work correctly.
2023-11-04 23:38:02 +02:00
a551aaa694 mu4e-compose: rework header insertion
Clean up the composition pipeline a bit, and set
message-generate-headers-first explicitly.

Hide headers later.
2023-11-04 23:38:02 +02:00
c3bc50bd02 mu4e-view: assign gnus-article-buffer in mu4e-view-mode
Some external programs (such as bbdb) seems to depend on that.
2023-11-04 11:16:24 +02:00
8abf0983fd mu4e-compose: make draft-editing work in new setup
Move around initialization a bit so we can use it for draft-editing as
well.
2023-11-03 21:17:43 +02:00
b428d9702e mu4e-compose: make mu4e-compose-dont-reply-to-self obsolete
Doesn't really fit in nicely with the new composer; update NEWS.org,
manual for users to migrate.
2023-11-03 21:17:43 +02:00
541c818a9f mu4e-compose: include references / in-reply-to
For replies and forwarded messages.
2023-11-02 22:21:10 +02:00
5b29ad8b6d mu4e-compose: use seq-filter instead of seq-keep
seq-keep is only arrived with emacs 29, and seq-filter does the job
2023-11-01 19:46:47 +02:00
9f39d78a71 mu4e-compose: use decoded message for replying
Or From: etc. would use some undecoded version with some
=?iso-8859-1?Q?.... blobs.
2023-11-01 19:46:47 +02:00
79281256a6 mu4e: make defvar mu4e-view-completion-minor-mode-map
So users can customize it.
2023-11-01 18:42:23 +02:00
b1587607e1 mu4e: obsolete some compose vars, update NEWS.org
We can re-use the existing implementations.
2023-10-31 19:45:17 +02:00
a02ef7bb07 mu4e-search: allow updating keymap for minor mode 2023-10-30 22:55:42 +02:00
a696902c34 mu4e-compose: allow updating keymap for minor mode 2023-10-30 22:55:42 +02:00
eee73f8199 mu4e: better handle alternative address
In compose / contacts
2023-10-29 17:16:05 +02:00
00191a3ec7 mu4e: improve mu4e-compose-dont-reply-to-self handling
Use mu4e-personal-or-alternative-address to decide on whether an address
belongs to "this user". Update docs.
2023-10-29 17:15:35 +02:00
ea78fab0ef mu4e-view: remove ^M from raw message
They can cause rendering issues later.
2023-10-29 17:15:35 +02:00
b30e774c12 mu4e: update documentation 2023-10-29 17:15:35 +02:00
61c8067491 mu4e-compose: add in-reply-to when needed
Was missing.
2023-10-26 18:34:07 +03:00
8be95f2616 mu4e-icalendar: update for new composer
Rework a bit for the new composer; and make the calendar-support
"built-in".
2023-10-25 22:05:06 +03:00
b2f3a63a3a mu4e.texi: update composer documentationx 2023-10-25 22:05:06 +03:00
84b50fb10f mu4e-window: let composer handle buffer creation
Fits better with how emacs does it.
2023-10-25 22:05:06 +03:00
13d068f183 mu4e: update headers/view for new composer 2023-10-25 22:05:06 +03:00
85bfe76336 mu4e-compose: overhaul message composer
This is a new composer sub-system, which more closely follows
Gnus/message; in particular, we let gnus take care of creating draft
messages.

This reduces code size and allows us to re-use some of the more advanced
features.

There are a number of user-visible changes:

- `mu4e-compose-resend' directly uses `message-resend', so there is no
  more editing phase (which used to be a bit broken with re-encoding
  MIME messages.
2023-10-25 22:05:06 +03:00
24f1fe8d45 mu4e-contacts: add mu4e-personal-or-alternative-address 2023-10-23 17:24:44 +03:00
4392d4e308 Fix completion w other keys than quick key 2023-10-18 16:25:52 +02:00
967b724e75 build: avoid dynamic dates for reproducibility
We were using dates (in documentation, (c) notices etc) based on the
build-date; that makes it hard to do reproducible builds, so specify a
specific date in the top-level meson file, and use that throughout.
2023-10-14 15:24:00 +03:00
c021433519 mu4e-headers: switch buffer to search results
..except for 'background searches', such as the one after re-indexing.

Fixes #2545.
2023-10-07 08:16:33 +03:00
2c4c3d8d7c mu4e/meson.build: more tweaking to avoid warnings 2023-10-07 00:18:56 +03:00
1bc9d6b515 mu4e: get rid of load-prefer-newer t
This triggered what I think is a bug/limitation in emacs; move the
source files to the build dir _after_ byte-compiling so we don't need
load-prefer-newer to avoid build warnings.

Fixes #2565.
2023-10-05 08:44:11 +03:00
4d11abd1ca mu4e-view: ignore decoding errors
We can't do much about them; still attempt to show the message.

Fixes #2561.
2023-10-05 08:44:11 +03:00
27619a2220 Fix defcustom :type of mu4e-headers-leave-behavior
The const values of the choice had the wrong order `(const :tag <value> <text>)`.
The correct order is `(const :tag <text> <value>)`.
2023-09-28 11:52:39 +02:00
3dad743e16 mu4e-mark: avoid byte-compiler warning 2023-09-21 23:58:55 +03:00
8fc13ab8f3 mu4e: Shorten descriptions a bit 2023-09-20 22:31:19 +03:00
67c8ff75a7 Fix missing or incorrect descriptions in file headers
Try to make useful descriptions and use conventional --- to separate filename
from description.
2023-09-20 22:04:48 +03:00
b01973205d infodir: allow absolute path
Fixes #2548
2023-09-05 08:34:27 +03:00
579ef175a9 mu4e: use special-mode for mu4e-last-update-buffer
This buffer is not intended to be edited.
Special mode also allows quickly dismissing via the quit-window binding.
2023-08-31 12:52:30 -04:00
82152d7fb3 Merge pull request #2546 from progfolio/feat/thread-prefix-face
mu4e: propertize thread prefix characters
2023-08-31 18:49:10 +03:00
375e684ce6 mu4e: propertize thread prefix characters
Brings visual consistency to unfolded threads.
2023-08-31 11:12:15 -04:00
7859268202 Revert "mu4e-headers: switch to buffer on current frame"
This reverts commit 11b7e5748c.

The change has some unpleasant side-effect (switching to the headers
buffer from whatever you are doing); needs some more thought.
2023-08-31 10:02:36 +03:00
11b7e5748c mu4e-headers: switch to buffer on current frame
We were possible showing the headers on _another_ frame, which is rather
confusing.

HT: Marcel van der Boom.

Fixes #2545
2023-08-30 18:50:15 +03:00
c4a141975e mu4e-view: remove 'describe bindings' override
Not sure where it was there in the first place

Fixes #2541.
2023-08-24 23:28:59 +03:00