Commit Graph

4927 Commits

Author SHA1 Message Date
06c9b17a4e mu: remove mfind command
Better document what find does instead.
2020-02-24 21:18:54 +02:00
934adae70a lib: use same allocator when copying MuMsgPartSigStatusReport
Fixes a sigabrt when freeing later.
2020-02-23 15:20:01 +02:00
ac164b7e26 mu-command-parser: do not allow unknown parameters
We were simply ignoring unknown parameters; but it's better to raise an
error, as it's likely unintented (typo or otherwise)
2020-02-22 14:11:54 +02:00
e1f797cd1a Merge pull request #1584 from hpdeifel/m-q-quoting
mu4e: Fix quoting in M-q keybinding definition
2020-02-22 14:08:57 +02:00
333067d47b mu4e: Fix quoting in M-q keybinding definition
In the keybinding defintions for mu4e-view-mode-map, the variable
mu4e-view-use-gnus was used quoted in an if condition, which means that the
condition always evaluated to true. Therefore, M-q would always be bound to
article-fill-long lines and never to mu4e-view-fill-long-lines.
2020-02-22 10:50:22 +01:00
650c4c052d store: catch exceptions in dtor 2020-02-21 19:29:27 +02:00
ff79d2b7d3 msg-crypto: fix small leak 2020-02-21 19:29:27 +02:00
24ecceb10e Merge pull request #1578 from Chris00/maildir
mu4e-view: (gnus) Remove duplicate bound variable
2020-02-21 19:28:44 +02:00
62bc45aaa7 Merge pull request #1581 from thierryvolpiatto/Fix_revert_buffer
mu4e-main: Fix revert buffer
2020-02-21 19:28:09 +02:00
837ab0b703 headers: require proc-view even for gnus
Temporary measure, so e.g. view-in-browser works

Fixes #1579.
2020-02-21 19:26:39 +02:00
bd6865a00b .gitignore: Update 2020-02-21 19:24:20 +02:00
adbb57c098 server: enable repl history 2020-02-21 19:19:30 +02:00
ec684cc99c Update mode-line when changing context
* mu4e/mu4e-context.el (mu4e-context-switch): Do it.
2020-02-21 09:08:48 +01:00
b301b7663b Don't use mu4e-index-updated-hook in mu4e~start
Using mu4e-index-updated-hook in mu4e~start with a lambda is just like
adding the call to mu4e-info-handler so do it explicitely which is
much cleaner.

* mu4e/mu4e-utils.el (mu4e-info-handler): Always refresh main buffer.
(mu4e~start): Remove insertion of mu4e-index-updated-hook.
2020-02-21 08:54:16 +01:00
b1369b6ad9 Fix mu4e-main revert-buffer-function and use it
* mu4e/mu4e-headers.el (mu4e~headers-quit-buffer): Refresh main buffer
when done.
* mu4e/mu4e-main.el (mu4e-main-mode-map): Don't bind "g" to mu4e, "g"
should be bound to revert-buffer (special-mode).
(mu4e-main-mode): No need to specify map.
(mu4e~main-view-real-1): New.
(mu4e~main-redraw-buffer): New.
(mu4e~main-view-real): Use them.
(mu4e~main-view): Take one more arg REFRESH.
(mu4e~main-toggle-mail-sending-mode): revert-buffer when done.
2020-02-21 08:33:07 +01:00
e1db731f7d mu4e-view: (gnus) Remove duplicate bound variable
Fixes https://github.com/djcb/mu/issues/1269
2020-02-21 08:28:01 +01:00
ed1fcda81a server: use MU_QUERY_FLAG_SKIP_UNREADABLE by default 2020-02-21 01:42:37 +02:00
8d6d151090 server: support readline history / persistence
When using readline, remember the last 50 commands; persist.
2020-02-21 01:17:23 +02:00
20ce7b7066 lib/parser -> lib/query
And update the names to follow the mu- convention.
2020-02-20 21:53:48 +02:00
a132f5c21f mu4e-view: (gnus) enable displaying custom headers
insert custom headers / mu4e specific headers when in gnus mode
2020-02-19 20:55:22 +02:00
c4f46966e7 mu4e-vars: add note about message fields / gnus view 2020-02-19 20:55:22 +02:00
e10fc21a9b mu4e: Rename 'Unnamed' sections 2020-02-18 23:49:50 +02:00
fe7a0e4da2 mu4e: Move various definitions into a better location 2020-02-18 23:49:50 +02:00
74332947a0 mu4e: Split libraries into outline sections 2020-02-18 23:49:50 +02:00
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
6c58a311d1 mu4e: Add missing mandatory "FILE ends here" library footer 2020-02-18 23:49:50 +02:00
15c6680037 mu4e: Add missing mandatory "Code:" section headers 2020-02-18 23:49:50 +02:00
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
19cfa008f0 mu4e-proc: fix mu4e~proc-extract / decrypt
Needs update for new protocol.
2020-02-18 22:38:40 +02:00
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
000c19e505 server: improve error message 2020-02-18 12:03:42 +02:00
6b07819d9a mu4e/mu-server: use :descending, :no-view parameters
There was some confusion between mu4e and mu-server.
2020-02-18 12:03:42 +02:00
c4c56fa7f0 mu-store: auto-commit store in dtor 2020-02-17 22:29:44 +02:00
0b4dee6996 mu-script: fix compiler warning 2020-02-17 21:45:21 +02:00
bff48cc87f Merge pull request #1573 from tarsiiformes/cleanup
fix mu4e indentation
2020-02-17 20:54:10 +02:00
6d581c4ca0 mu4e~view-define-mode: Place doc-string in correct position 2020-02-17 14:28:00 +01:00
9f26819efb mu4e: Demote a few broken commands to functions
It would was not possible to interactively invoke these functions
because their `interactive' form does not provide all the mandatory
arguments.
2020-02-17 14:28:00 +01:00
30e005d574 Fix a few typos 2020-02-17 14:28:00 +01:00
7d758da0e3 Add .mailmap file
Always use the author's full name instead of either the name or nick.
2020-02-17 14:28:00 +01:00
32066ae433 mu4e~contains-line-matching: Cosmetics 2020-02-17 14:28:00 +01:00
f66be19121 mu4e~proc-running-p: Cosmetics 2020-02-17 14:28:00 +01:00
832d32ef23 mu4e-proc.el: Remove duplicated variable declarations 2020-02-17 14:28:00 +01:00
4ce296d6b2 manual: Deal with annoying misfeature of texinfo
Texinfo is of the opinion that every hyperlink has to be prefixed
by either "see" or "in".  If neither of these words appears there,
then it inserts "see" and it cannot be told not to do that.

This turns a correct sentence like:
  > Mu4e lets you define custom actions for messages in the <Headers view>.
into:
  > Mu4e lets you define custom actions for messages in the see <Headers view>.
The best compromise is
  > Mu4e lets you define custom actions for messages in <Headers view>.
which isn't correct but at least less messed up.

Alternatively one could rephrase every sentence that contains a link
to circumvent Texinfo's speech impairment.  Or one could replace each
link with a footnote and place the actual link in the footnote.
2020-02-17 14:28:00 +01:00
440ea3fe6f manual: Fix indentation in code blocks 2020-02-17 14:28:00 +01:00
5f0013d797 org-mu4e.el: Place summary on a single line
Use the previous summary as commentary instead.
2020-02-17 14:28:00 +01:00
96cd0632f9 mu4e: Improve consistency of library headers 2020-02-17 14:28:00 +01:00
c2ef02f57c mu4e: Begin each elisp summary line with three semicolons 2020-02-17 14:28:00 +01:00
4c9be1d062 mu4e-header-info: Fix indentation 2020-02-17 14:28:00 +01:00
6790c0d015 mu4e: Fix indentation 2020-02-17 14:28:00 +01:00
be1ba1ce68 mu4e: Enforce use of spaces for indentation
There already is a ".editorconfig" file for cross-editor
configuration, but most Emacs users don't use that, so this also has
to be configured the traditional Emacs way.  (Also I have some doubts
that cross-editor configuration is relevant for Emacs Lisp files.)
2020-02-17 14:28:00 +01:00