Commit Graph

5255 Commits

Author SHA1 Message Date
3691e28316 build: attempt to avoid some libc++ problems
Seems there are problems compiling mu with XCode 11.6 (see build tests);
apparently because of libc++ being different from libstdc++.

clang++ builds works fine as long as we're using libstdc++.
2020-07-26 11:56:25 +03:00
688e0a9e8b Merge pull request #1768 from tarsiiformes/typos
Fix typos
2020-07-26 11:18:38 +03:00
b711ad9151 Fix typos 2020-07-25 16:46:47 +02:00
6d73ca8ec3 mu4e: fix mu4e~proc-view-path
Ensure parameters match.
2020-07-25 17:20:39 +03:00
6b32794f0e mu4e-proc: ensure mu4e~call-mu does not truncate
For non-nil settings of print-length, print-level.

(and remove an unused defun).
2020-07-25 17:02:01 +03:00
7aebefe005 mu4e.texi: remove obsolete crypto footnote.
Fixes #1761.
2020-07-25 11:32:15 +03:00
148c906d8a fix compilation error / clang warnings 2020-07-25 11:26:08 +03:00
6cea9fcd71 mu-msg-sexp: Use list for list-post property
And some small cleanups.
2020-07-13 21:59:46 +03:00
2588aaeb9e Merge pull request #1759 from damon-kwok/fixed-missing-includes
[MSYS2] Added missing include files
2020-07-13 21:50:15 +03:00
fdc88dee1e configure: Bump version to 1.5.5 2020-07-13 21:43:59 +03:00
19c1c6cfd4 lib/mu-msg: Update for Sexp changes 2020-07-13 21:43:59 +03:00
092084b987 cmd: Update find, server for Sexp changes 2020-07-13 21:43:59 +03:00
31dd4e2104 utils/sexp: Clean up API and implementation
Also update the tests and command-parser.
2020-07-13 21:43:59 +03:00
689fd60181 Added missing include files 2020-07-13 15:02:18 +08:00
de8f1d3e6a mu4e: Fix issue with mu4e-display-image
We were getting an error when `identify` is nil.
2020-07-11 10:14:57 +03:00
2b5a747fad Merge pull request #1746 from mrvdb/mu4e-image-scale
Satisfy both max height and width for images in view
2020-07-07 00:14:51 +03:00
ad6db1d7e1 Merge pull request #1750 from stsquad/logging/more-tweaks
mu4e/mu4e-utils: save our position before deleting old data
2020-07-07 00:12:59 +03:00
f40178fe8a lib/index: fix deadlock when mu4e-index-cleanup is nil (#1749)
If the user has wants to postpone clean-up we shouldn't lock the
indexer waiting for something that will never happen. Clear the flag
event though we are actually skipping cleanup.
2020-07-06 20:49:04 +01:00
5040d52b46 mu4e/mu4e-utils: save-excursion before updating the log buffer
If the user is scrolling and searching through the log buffer to see
what went wrong it gets very annoying having an update change things.
To avoid this wrap all buffer updating code in a save-excursion so
point is preserved.
2020-07-06 20:32:27 +01:00
8bc622ff09 mu4e/mu4e-utils: refactor mu4e-log buffer creation
Move all the one time setup for mu4e-log into its own private section.
2020-07-06 20:27:13 +01:00
c4e8a8f04c Merge pull request #1747 from dato/fix_obsolete_var_name
NEWS.org, mu4e-vars.e.: fix spelling mu4e-contact-rewrite-function
2020-07-04 14:27:22 +03:00
7efdebce30 NEWS.org, mu4e-vars.e.: fix spelling mu4e-contact-rewrite-function
mu4e-contact-rewrite-function was obsoleted in 1.4, but the entry in
NEWS.org entry, and the make-obsolete-variable call, referred to it as
mu4e-contacts-rewrite-function. (Should be "contact", not "contacts".)
2020-07-03 19:21:18 -03:00
c698bc3a40 Satisfy both max height and width for images in view
- introduce private function mu4e~image-width-scale:
    determine the width to use for proportional scaling based on the image width, height and the max
    restrictions.
- use it in mu4e-display-image
2020-07-03 16:02:09 +02:00
31f918eadb Merge pull request #1742 from daybeforenet/mu-str-compilation-fix
Don't declare mu_str_size_s() with the const attribute.
2020-06-30 19:14:29 +03:00
b9d149b4a3 Merge pull request #1743 from daybeforenet/man-xref-fix
In mu(1) refer to mu-script(1) instead of mu-guile, which does not exist
2020-06-30 19:11:53 +03:00
ddf0be4623 In mu(1) refer to mu-script(1) instead of mu-guile, which does not exist 2020-07-01 00:46:04 +09:00
73603c97e2 Don't declare mu_str_size_s() with the const attribute.
When this function is declared const or pure, clang at -O1 or higher optimizes
away the call to mu_str_size_s() inside mu_str_size(), so that it ignores its
argument and returns whatever is in mu_str_size_s()'s static buffer.

Found when test-mu-str failed while testing an update of mu in OpenBSD's ports tree.
2020-07-01 00:16:19 +09:00
0355479b51 Merge pull request #1740 from stsquad/ui-fixes
mu4e/mu4e-utils: only set so-long-mode once
2020-06-29 22:43:04 +03:00
c074e7ea3b mu4e/mu4e-utils: only set so-long-mode once
Ideally we should separate the log buffer creation code so this van be
done a bit more cleanly. For now however only set so-long-mode once
otherwise you end up spamming the messages with constant:

  Changed to so-long-mode (from fundamental-mode) on account of line length.  C-c C-c to revert. [36 times]

As the messages keep rolling in.
2020-06-29 10:26:34 +01:00
556b898e4d lib: Remove unused file 2020-06-28 13:23:56 +03:00
bbc3496079 Merge pull request #1739 from asilata/master
Fix typo in org-mode links section documentation
2020-06-28 11:58:16 +03:00
0f5973c61f Merge branch 'wip/indexer' 2020-06-27 17:19:12 +03:00
dbf0e460a8 bump version to 1.5.4 2020-06-27 17:07:00 +03:00
c8eff488ba cosmetics 2020-06-27 17:07:00 +03:00
ba13a62e90 cmd-server: Update to use the new Indexer 2020-06-27 17:07:00 +03:00
f9415caab7 cmd-index: Use the new Indexer 2020-06-27 17:07:00 +03:00
10dbddec79 mu-cmd: Use the new Store API 2020-06-27 17:07:00 +03:00
4617935d80 store: Update for the new indexer
Update some APIs so we can use it with the new indexer.

Remove some now-obsolete C APIs.
2020-06-27 17:07:00 +03:00
4e6bd7dfdf lib/index: Implement new indexer
Implement a new message indexer consisting of a single-threaded scanner
and a multi-threaded indexer.

This allows for a number of optimizations as well as background
indexing, though this initial version should be behave similar to the
old indexer.
2020-06-27 17:07:00 +03:00
0e50bfc02c mu: better output
Improve the output of various mu commands
2020-06-27 17:07:00 +03:00
f416ad4249 utils: Add async-queue
Like GAsyncQueue, but for c++
2020-06-27 17:07:00 +03:00
1b056f4c51 utils: Add Mu::canonicalize_filename
We need it for unit-tests
2020-06-27 17:07:00 +03:00
6061898c2b utils: Clean up duration helpers 2020-06-27 17:07:00 +03:00
63a8c72b74 config: add message-size, batch-size option for init 2020-06-27 11:36:34 +03:00
c8e8004f29 server: show complete help by default
And add :terse to get a one-line description.
2020-06-27 10:24:37 +03:00
84c59cef5a Fix org-mode links section documentation 2020-06-27 15:54:48 +10:00
5922cd9fa2 lib/mu-msg: benchmark message creation 2020-06-26 19:26:45 +03:00
5ca0b6e148 mu4e-utils: use so-long-mode for logs when available 2020-06-26 19:25:45 +03:00
3715bb0c5e mu4e-headers: optimize header writing a bit
Try to make writing out the headers in the headers buffer slightly
faster.
2020-06-26 19:24:40 +03:00
73f4c49364 utils: add async-queue, ansio-printer
Add an async-queue (rougly, GAsyncQueue but in c++ using a deque)

Add an ANSI color printer.
2020-06-26 19:21:04 +03:00