Commit Graph

85 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 51163f3e60 mu4e-mark: query using when killing buffer or emacs
Depending on mu4e-headers-leave-behavior, query user when killing a
buffer or emacs when there's a buffer with outstanding marks.

Fixes #2649.
2024-04-10 21:47:04 +03:00
Tassilo Horn 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
Dirk-Jan C. Binnema 3dad743e16 mu4e-mark: avoid byte-compiler warning 2023-09-21 23:58:55 +03:00
Dirk-Jan C. Binnema 8fc13ab8f3 mu4e: Shorten descriptions a bit 2023-09-20 22:31:19 +03:00
Thierry Volpiatto 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
Dirk-Jan C. Binnema 88cb22d178 mu4e: integrate mkdir better into mu4e
When moving to a non-existent folder, offer to create it and proceed from
there (that _almost_ worked earlier).

Fixes #628
Fixes #477
2023-02-12 11:17:59 +02:00
Dirk-Jan C. Binnema 29e6c21ed8 mu4e: use mu4e-join-paths 2023-01-27 09:25:40 +02:00
Dirk-Jan C. Binnema 87187d15d6 mu4e-mark: add confirmation for mu4e-mark-unmark-all
Fixes #1234
2023-01-19 22:37:50 +02:00
Mickey Petersen 42add64683 Appease the byte compiler and clean up the code 2022-12-06 09:46:39 +00:00
Mickey Petersen 8d2b75219f Browing a view that has a header pointing elsewhere is legal 2022-11-30 15:32:45 +00:00
Mickey Petersen 69a17bfcb9 Multiple buffer support and standardised window and buffer handling 2022-11-29 11:33:07 +00:00
Dirk-Jan C. Binnema a1f0c5e9eb mu4e: fix emacs-29 bytecompiler warnings
Wrong single quotes.
2022-05-28 00:51:08 +03:00
Dirk-Jan C. Binnema a4707afe12 mu4e: cleanups and flycheck fixes
- Remove some unused faces
- Fix some flycheck warnings
- Replace some `cl-` functions with `pcase` and `seq`
2022-01-23 14:27:00 +02:00
Dirk-Jan C. Binnema dc14f93c06 mu4e: remove mu4e-utils
No longer needed; remove all traces.
2021-08-30 08:36:41 +03:00
Dirk-Jan C. Binnema a6514fd683 mu4e-server: rename from mu4e-proc
Rename mu4e-proc.el into mu4e-server.el

Rename mu4e~proc... into mu4e--server...

Update users, too.
2021-08-29 21:40:42 +03:00
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
Thierry Volpiatto 2f251209e3
Rename mmark overlay to mu4e-mark 2021-06-17 21:11:38 +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
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 561079d868 mu4e-mark: Allow executing marks without passing a prefix argument 2021-04-12 21:59:52 +02: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 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
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 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
Jonas Bernoulli f31d1b065d Fix typos 2019-11-06 16:13:39 +01:00
Thierry Volpiatto e4f5576cfc
Add lexical-binding to all files and fix warnings
about free variables (declare) and unused lexical vars (prefix with "_").
2019-09-16 19:54:59 +02:00
djcb f9b615c3bb mu4e: use a simple x as the 'fancy' delete mark
The 'fancy' version had some interesting interactions (see #1245), so
this is the easiest way to avoid those.

Also some flycheck fixes.
2019-03-02 11:46:34 +02:00
Alex Branham 2674ca5583
mu4e: Replace cl with cl-lib 2019-01-04 16:03:58 -06:00
Bryan Gilbert c71bc710fb Fix region bounds checking when marking headers 2017-11-08 08:34:34 -05:00
djcb 77b8f034e9 cosmetic 2017-09-17 14:02:14 +03:00
Vladimir Sedach 9420d088eb mu4e: Added new mu4e-split-view mode: single-window
Single-window mode is meant to minimize mu4e window operations (opening,
killing, resizing, etc) and buffer changes, while still retaining the
view and headers buffers. In addition, it replaces mu4e main view with a
minibuffer prompt containing the same information.
2017-05-31 20:52:59 -07:00
djcb c115d75a50 mu4e: handle marks outside headers-view
Ensure we the marks get counted correctly outside the headers view. This
avoids mu4e trying to refresh the headers buffer when we're reading a
message.
2017-03-18 10:09:10 +02:00
djcb 87ab21702e mu4e-mark: remove debug message 2016-10-25 20:19:19 +03:00
Magnus Therning fe1104a94f mu4e: Add mu4e-mark-execute-pre-hook
Add a hook that runs just before executing a mark.

Signed-off-by: Magnus Therning <magnus@therning.org>
2016-02-02 20:28:49 +02:00
Magnus Therning 974d728bd4 mu4e: re-indent function prior to mark-hook change
Signed-off-by: Magnus Therning <magnus@therning.org>
2016-02-02 20:21:38 +02:00
djcb 967b3cb727 mu4e: update copyright years 2016-01-09 21:28:03 +02:00
djcb a14b3f0e62 Replace some 'fancy' characters
They showed up as hexboxes when using the Liberation font.
2015-12-16 21:31:17 +02:00
djcb 90d2b8a1fa mu4e: some less fancy fancy chars
Try to find some fancy chars that are more universally available.
2015-12-15 10:42:24 +02:00
djcb ddcd2f39b5 mu4e: more support for fancy-chars
Re-simplify `mu4e-use-fancy-chars` to a boolean again; add some extra
mark-chars (big character, so they are easily visible). Document it.
2015-12-15 09:07:17 +02:00
Dirk-Jan C. Binnema d8ecc98349 Merge pull request #714 from avar/avar/mu4e-mark-support-mu4e-use-fancy-chars
mu4e: Add support for mu4e-use-fancy-chars to the marking in the headers view
2015-12-13 18:20:30 +02:00
Ævar Arnfjörð Bjarmason 049e182e0c Correctly spell the word "quitting" in the protocol & documentation 2015-12-09 22:40:52 +01:00
Ævar Arnfjörð Bjarmason b88cc400e7 mu4e-mark: Add fancy characters for trash / delete
As threatened in my last commit. I found this via
https://en.wikipedia.org/wiki/Miscellaneous_Symbols_and_Pictographs &
http://www.unicode.org/charts/PDF/U1F300.pdf

I could never remember which thing d and D were, this makes it easier to
remember that. I split off this patch because maybe this doesn't belong
in mu4e since some might not like the characters, but I just wanted to
be able to have this customizable.
2015-12-08 20:42:00 +01:00
Ævar Arnfjörð Bjarmason df77f7cb20 mu4e-mark: Add ability to use mu4e-use-fancy-chars for marking
Right now we have this for showing the status of messages, e.g. whether
it has an attachment etc. But not for the "d", "D" etc. in the leftmost
column of the headers view.

This adds support for that, while bending over backwards to ensure that
anyone who's customized this in the past won't have their customizations
broken, i.e. like `mu4e-headers-trashed-mark` we can set this to a cons
cell of basic/fancy characters, but we also continue to support this
just being a string for existing users.

The next patch in this series adds a couple of non-ASCII characters to
be used for the trash / delete mark.
2015-12-08 20:38:25 +01:00
Ævar Arnfjörð Bjarmason 89eb9ee2d0 mu4e-mark: Make indentation in mu4e-mark-at-point consistent
I don't care for this mixing of tabs and spaces, but this at least makes
it consistent with the rest of the function.
2015-12-08 20:20:37 +01:00
djcb 976711c16c mu4e: support message-action when marking 'deferred'
When marking headers as 'deferred' (with '*'), and executing them ('x'),
you can now also apply arbitrary header actions to them.
2015-04-26 17:09:06 +03:00