Dirk-Jan C. Binnema
9157d9102d
mu4e-utils: refactor into mu4e-helpers, separate files
...
Usurp more of the utils code than can be re-used without further dependencies in
helpers.
Split off specific parts in their own file.
After the helper/utils changes, update the rest of mu4e to take the changes into
account.
2021-08-29 21:40:42 +03:00
Dirk-Jan C. Binnema
035977a89a
mu4e-context: make it a minor-mode
...
Add mu4e-context-minor-mode, for re-use in other parts of mu4e.
Update those parts + documentation.
2021-08-29 20:30:29 +03:00
Dirk-Jan C. Binnema
b62f70f9d0
mu4e-compose: regenerate Date: when user removes it
...
However, we do not update the date if user does not do so.
2021-08-19 10:56:56 +03: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
Christophe Troestler
b2b8f562f7
mu4e/compose: attach buffers & files setting any property
2021-04-05 22:35:58 +02:00
Stephen J. Eglen
5d859d005f
Respect switch-function in compose-mail.
...
Emacs has several standard keybindings
C-x m compose-mail
C-x 4 m compose-mail-other-window
C-x 5 m compose-mail-other-frame
This patch fixes the creation of new mail buffers to respect the
latter two keybindings, C-x 4 m and C-x 5 m.
Note that there is already the variable mu4e-compose-in-new-frame
which if true opens in a new frame. That will still work for C-x m
and C-x 5 m, but if the user runs C-x 4 m, it switches to other-window
as it assumes the keybinding takes precedence. This behaviour can be
changed within mu4e~draft-open-file.
2021-04-03 22:23:21 +01:00
Dirk-Jan C. Binnema
811ae26574
Merge branch 'draft-context'
2021-03-17 11:36:12 +02:00
Al Haji-Ali
b094da8cd4
mu4e: Added mu4e-compose-context-switch for draft messages
...
Allow updating the context for the current draft message.
2021-03-17 11:35:09 +02:00
Dirk-Jan C. Binnema
d12d85e187
mu4e: work-around for format-flowed corner-case
...
Fixes : #1938
(fixes, eh, works around it)
2021-03-11 19:41:53 +02:00
Dirk-Jan C. Binnema
8d1175f511
mu4e: avoid some compiler warnings
...
(require) necessary things etc.
warnings for using "obsolete" code are still there since things should
work on emacs 25.3
2021-03-11 10:17:00 +02:00
Dirk-Jan C. Binnema
9cab1ae751
mu4e-compose: restrict to headers in before-save-hook-fn
...
Follow up to issue #1846 .
2020-12-05 11:42:54 +02:00
Dirk-Jan C. Binnema
4eed85187f
mu4e-compose: Don't auto-update Message-Id/Date
...
Fixes #1846
2020-12-02 08:51:35 +02:00
Thierry Volpiatto
c62dbb250c
Avoid looping through buffer-list when not needed
2020-11-16 08:59:45 +01:00
Thierry Volpiatto
0109172ad4
Use functions instead of lambdas in add-hook calls
2020-11-13 11:38:50 +01:00
Dirk-Jan C. Binnema
b672f6bc1d
mu4e: avoid trouble with truncate-string-to-width
...
Treatment of the 'ellipsis' parameter is a bit unclear, gave errors in
some cases.
Fixes #1716
2020-06-03 21:24:14 +03:00
Philip K
29ad71fdf2
Marked mu4e-compose-context-policy type as greedy
2020-05-27 22:54:15 +03:00
Philip K
bd87dcfd9b
Removed default case in mu4e-compose-crypto-message
2020-05-27 22:54:15 +03:00
Dirk-Jan C. Binnema
336cad35e6
Merged crypto-policy configuration into one variable
2020-05-27 22:53:41 +03:00
Dirk-Jan C. Binnema
c9a9d4be95
mu4e: handle compose-mail when mu4e is not yet running
...
We were trying to start mu4e asynchronously, then compose the mail but
this doesn't quite work the way some external packages expected, and
this would fail.
Fixes #1710
Fixes #1698
2020-05-27 22:34:43 +03:00
Dirk-Jan C. Binnema
a2d315df4c
mu4e-compose: fix external use (`compose-mail')
...
Ensure compose-mail with mu works again, including passing various
parameters.
Fixes #1695 .
2020-05-15 23:42:05 +03:00
Jonas Bernoulli
564d892701
Fix typos
2020-05-12 23:56:55 +02:00
Dirk-Jan C. Binnema
59ed21b01a
mu4e: start mu4e in compose-handler, when necessary
2020-05-01 22:44:45 +03:00
Dirk-Jan C. Binnema
1919146b94
mu4e: centralize mode-line context setting code
...
Add mu4e-context-in-modeline to handle all setting of context in the
mode-line, to address some corner-cases with the current setup.
2020-05-01 22:44:45 +03:00
Dirk-Jan C. Binnema
edd47ced71
mu4e: use mu4e-attachment-dir for attaching, too
...
Use mu4e-attachment-dir also for attaching (and not just for extracting)
attachments; the default (current draft message dir) is not very useful.
2020-04-06 20:52:24 +03:00
Abdo Haji-Ali
c335914caa
(widen) should be called before hiding the headers
...
Was also causing a corrupted header in some cases.
2020-03-29 22:06:29 +01:00
Dirk-Jan C. Binnema
83558be663
mu4e: set mu4e-compose-type earlier
...
So it can be used in hooks.
Fixes #1616 .
2020-03-16 22:42:35 +02:00
Dirk-Jan C. Binnema
fa7518ab60
mu4e-compose: don't touch default-directory
...
we probably shouldn't touch that.
2020-02-26 21:56:26 +02:00
Dirk-Jan C. Binnema
d4c959ea90
mu4e-compose: clear undo-list after entering compose mode
...
Fixes #1525 .
2020-02-26 21:11:06 +02:00
Dirk-Jan C. Binnema
e10fc21a9b
mu4e: Rename 'Unnamed' sections
2020-02-18 23:49:50 +02:00
Jonas Bernoulli
74332947a0
mu4e: Split libraries into outline sections
2020-02-18 23:49:50 +02:00
Jonas Bernoulli
040c6578be
mu4e: Place provide forms in their own sections
...
Use "_" as the title of that section so that it is less distracting
when sections are collapsed to get an overview of the library.
Using a separate section is useful because it reduces the risk of
accidentally into the middle of a library.
2020-02-18 23:49:50 +02:00
Jonas Bernoulli
83f0c9cea9
mu4e: Remove excess semicolons from library headers
...
Placing two semicolons on an otherwise empty line helps to logically
"connect" the surrounding "paragraphs", which in (only) some cases
makes sense.
Previously the three paragraphs of the permission statement were not
connected to each other like this, which is perfectly fine. However
the preceding "This file is not part of GNU Emacs." line was connected
to the first paragraph, which does not make sense considering that the
latter is not connected two the second paragraph, which it relates to
more.
Once those two semicolons are gone, it also makes sense to remove
those from the second line.
2020-02-18 23:49:50 +02:00
Dirk-Jan C. Binnema
c09a9c4372
mu4e: update context handling
...
Make mu4e-context-autoswitch works a before we updated the pong-handler
Avoid unnecessary mu4e~start int he composer.
2020-02-18 22:38:40 +02:00
Jonas Bernoulli
c2ef02f57c
mu4e: Begin each elisp summary line with three semicolons
2020-02-17 14:28:00 +01:00
Jonas Bernoulli
6790c0d015
mu4e: Fix indentation
2020-02-17 14:28:00 +01:00
Dirk-Jan C. Binnema
0d9d99df99
Merge pull request #1328 from pitti/fix-whitespace-deletion
...
mu4e: restrict deleting trailing whitespace to region
2020-02-09 00:24:32 +02:00
Dirk-Jan C. Binnema
e1e26d1da2
mu4e: update to use server maildir/database/addresses
...
Mkae mu4e-maildir and mu4e-personal-addresses obsolete, we get those
from the server.
2020-02-09 00:15:49 +02:00
Dirk-Jan C. Binnema
ac4f5f754a
mu4e: remove maildir arg from proc-add/proc-sent calls
...
The server doesn't want that parameter anymore, so we can simplify
things a bit.
2020-02-02 00:23:34 +02:00
Antoine Levitt
dcb3025d1d
revert indentation
2019-12-10 11:07:01 +01:00
Antoine Levitt
006c3399cb
Push mark on beginning/end of buffer
2019-12-05 21:36:38 +01:00
Dirk-Jan C. Binnema
d7a5349a74
mu4e-comnpose: avoid jumping to headers when saving
...
Wrap the before-save-hook function in a save-excursion.
(HT: Joost Kremers)
2019-10-23 20:21:24 +03:00
Dirk-Jan C. Binnema
798aa12a34
mu4e-compose: Generate message-id for drafts
...
Ensure even drafts have a message-id, since the querying machinery wants
that.
2019-10-20 16:13:32 +03:00
Thierry Volpiatto
9ddd035a1e
Completely use cl-lib and lexical-binding
...
Previously both cl-lib.el and cl.el were used, now use only cl-lib.el.
Use lexical-binding where needed instead of requiring cl just for
`lexical-let`.
Replace some add-to-list with cl-pushnew as add-to-list is not
recommended in lisp program and anyway doesn't work properly with
lexical binding.
2019-09-14 12:39:51 +02:00
Dirk-Jan C. Binnema
ca699324a3
mu4e: mu4e-compose: Fix configuration choices
...
End the choice group in the right place.
2019-08-10 10:53:52 +03:00
Paul W. Rankin
ca7449c575
Balance parens in mu4e-compose-context-policy
...
Fixes unbalanced parens in mu4e-compose-context-policy, which prevents Custom mode UI working.
Using standard indentation helps prevent missing these little issues.
2019-08-09 18:20:33 +10:00
Dirk-Jan C. Binnema
2beb2eda02
mu4e-contacts: cleanups, save-match-data
...
Whitespace cleanups
Flycheck cleanups
Save the match data for (after|before)-save-hook
2019-05-25 17:38:58 +03:00
djcb
0d33e64dc9
mu4e: don't sort contacts in completion handler
...
mu4e~sort-contacts-for-completion no longer exists.
2019-05-13 13:29:25 +03:00
Dirk-Jan C. Binnema
f57381bf4a
Merge pull request #1320 from jabranham/replace-cl-cl-lib
...
mu4e: Replace cl with cl-lib
2019-02-02 13:37:50 +02:00
Christophe Troestler
0746a4affe
Set mml-enable-flowed according to mu4e-compose-format-flowed
...
Fixes https://github.com/djcb/mu/issues/1358
2019-01-29 10:35:06 +01:00
Alex Branham
2674ca5583
mu4e: Replace cl with cl-lib
2019-01-04 16:03:58 -06:00