Commit graph

7030 commits

Author SHA1 Message Date
Jonas Bernoulli
471f161850 emacs: define notmuch-hello-url as a constant 2020-12-06 16:18:50 -04:00
Jonas Bernoulli
dfd99c7fba emacs: sanitize function that displays version
Previously it was defined in "notmuch-hello.el" and its name contained
"hello" solely because it replaced an anonymous function that was
mistakenly only bound in `notmuch-hello-mode-map'.  But it makes more
sense to bind it in all notmuch modes and even if we did not change
that aspect it still would make no sense to have "hello" in its name.
2020-12-06 16:18:34 -04:00
Jonas Bernoulli
ff80122972 emacs: more cleanup since dropping support for Emacs 24
Notmuch requires at least version 25 of Emacs now.

Adjust comments that previously referenced version 24 specifically,
even though they also apply to later releases. Remove documentation
and code that no longer applies.

- `mm-shr' no longer references `gnus-inhibit-images'.
2020-12-06 16:18:20 -04:00
Jonas Bernoulli
1acaaa093c emacs: remove kludge for Emacs 23 from notmuch-mua-mail
Notmuch requires at least Emacs version 25.

The `return-action' argument was added prior to Emacs 24.1
in 25ca2e61403f97b5a023164f2924d5f8aca2492a.
2020-12-06 16:17:52 -04:00
Jonas Bernoulli
f061ae5b42 emacs: fix old bug in notmuch-mua-mail
This fixes a regression introduced in [1: 7e20d264].  If the argument
RETURN-ACTION was non-nil then we should pass along the value of that
argument.  Instead we passed along the constant symbol `return-action'.

1: 7e20d26480
   emacs: Fix mail composition under Emacs 23
2020-12-06 16:17:36 -04:00
Jonas Bernoulli
8d701cdc99 emacs: remove redundant notmuch-hello-trim
Use `string-trim', which exists since Emacs 24.4.
2020-12-06 16:17:24 -04:00
Jonas Bernoulli
05a436f730 emacs: don't fset keymaps
These keymaps are never invoked as commands
so the function definitions serve no purpose.
2020-11-11 20:13:26 -04:00
Jonas Bernoulli
b9f328b75d emacs: add doc-string to notmuch-tree-mode-map 2020-11-11 20:13:16 -04:00
Jonas Bernoulli
0496668ad5 emacs: define notmuch-message-mode-map explicitly
Key bindings should not be defined at the top-level but inside
a `defvar' form.  Doing it at the top-level makes it harder to
reliably customize key bindings.
2020-11-11 20:13:00 -04:00
Jonas Bernoulli
bad0549da4 emacs: silence byte-compiler 2020-11-11 20:12:48 -04:00
David Bremner
900ee94b0f debian: upload 0.31.2-3 2020-11-09 13:59:58 -04:00
David Bremner
5323fbb4ec debian: changelog for 0.31.2-2 2020-11-09 08:46:07 -04:00
David Bremner
19590605ea debian: run tests in verbose mode
A hopefully temporary change to try and debug some test failures on
autobuilders.
2020-11-09 08:44:41 -04:00
David Bremner
02a7b026d9 release: explicitely build sphinx-html
This is to force it to happen after the "make clean".
2020-11-08 13:33:08 -04:00
David Bremner
bbe6262342 NEWS: update for 0.31.2 2020-11-08 13:19:07 -04:00
David Bremner
852df1a7ef debian: remove quilt patches
These were generated by dgit due a mix up with .orig.tar.xz files.
2020-11-08 13:19:07 -04:00
David Bremner
c87dd8ab2e debian: update changelog for 0.31.2-1 2020-11-08 13:19:07 -04:00
David Bremner
6003af14c4 version: bump to 0.31.2 2020-11-08 13:19:07 -04:00
David Bremner
d824f83c6f build: change one more occurrence of 'version' to 'version.txt'.
This one disguised via tar and sed trickery.
2020-11-08 13:18:51 -04:00
David Bremner
c5504cb043 Commit Debian 3.0 (quilt) metadata
[dgit (9.12) quilt-fixup]
2020-11-08 10:08:00 -04:00
David Bremner
40b75f50be release: call python3 instead of python
Debian does not install /usr/bin/python by default any more.
2020-11-08 10:01:53 -04:00
David Bremner
8e721f12ba release: update release-checks.sh for s/version/version.txt/
Another place missed by the rename.
2020-11-08 10:00:57 -04:00
David Bremner
0e6d2876b8 debian: changelog for 0.31.1-1 2020-11-08 07:48:47 -04:00
David Bremner
87ae900f57 NEWS: add news for 0.31.1 2020-11-08 07:42:55 -04:00
David Bremner
b8a3ed175c update versions 2020-11-08 07:32:10 -04:00
David Bremner
59edcfd702 build: fix update-versions rule
This was missed in the rename of the 'version' file to version.txt
2020-11-08 07:27:48 -04:00
Ralph Seichter
981d5a0168 Rename version to version.txt
Building Notmuch on macOS is known to cause problems because the Notmuch
distribution archive contains two files named "version". These names
clash with the <version> header as defined in C++20. Therefore, the
existing naming will likely become a problem on other platforms as well,
once compilers adopt the new standard.

Signed-off-by: Ralph Seichter <github@seichter.de>
Amended-by: db s/keyword/header/ in commit message.
2020-10-30 16:14:24 -03:00
David Bremner
582e919e27 lib/config: don't set destructor until iterator is initialized.
As diagnosed by Olivier Taïbi in
id:20201027100916.emry3k2wujod4xnl@galois.lan, if an exception is
thrown while the initialization is happening (e.g. if the function is
called on a closed database), then the destructor is (sometimes)
invoked on an uninitialized Xapian object.

Solve the problem by moving the setting of the destructor until after
the placement new successfully completes. It is conceivable this might
cause a memory leak, but that seems preferable to crashing, and in any
case, there seems to be nothing better to be done if the
initialization is failing things are in an undefined state by
definition.
2020-10-29 21:13:01 -03:00
Tomi Ollila
b042a59cdf configure: replace $(realpath emacs) with $(cd emacs && pwd -P)
For portability; the realpath command (e.g. from GNU coreutils)
is not so common outside Linux systems.

The "$(cd emacs && pwd -P)" replaces that realpath(1) execution
suitably in this context (using just bash(1) builtins).
2020-10-21 07:01:37 -03:00
Tomi Ollila
bdb6956afd emacs docs: rstdoc.el: consistent single quote conversions
With text-quoting-style 'grave keeps "'" and "`" quotes unaltered
for further processing done by this code (regardless of locale...).
The tools that read the reStructuredText markup generated can do
their styling instead.

Added temporary conversions of ' and ` to \001 and \002 so that
's and `s outside of `...' and `...` are converted separately
('s restored back to ' and `s converted to \`).

Both `...' and `...` are finally "converted" to `...` (not ``...``).
https://docutils.sourceforge.io/docs/user/rst/quickref.html documents
that as `interpreted text`:

 "The rendering and meaning of interpreted text is domain- or
  application-dependent. It can be used for things like index
  entries or explicit descriptive markup (like program identifiers)."

Which looks pretty much right.
2020-10-21 06:55:39 -03:00
Tim Quelch
45193bab16 emacs: Remove notmuch-mua-message-send-hook
Currently `message-send-hook` functions are being called twice: In
notmuch send common when `notmuch-mua-send-hook` functions are
run (which by default includes `notmuch-mua-message-send-hook`) and in
`message-send` itself.

Because `message-send-hook` functions are run in `message-send` itself,
we don't need also need to run them before we delegate to `message-send`

Calling `notmuch-mua-message-send-hook` resulted in functions in
`message-send-hook` to be called twice. This causes bugs in
non-idempotent hook functions.
2020-09-19 06:49:17 -03:00
David Bremner
d127b16afe notmuch 0.31 release
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEkiyHYXwaY0SiY6fqA0U5G1WqFSEFAl9UMq8ACgkQA0U5G1Wq
 FSFrzQ//SOg+QEXCtBMZxRTwCdeUwhCAznhmuQW+gD6M+/0RzgNwB+LuXrgK4E8i
 h30Veb92bLjUiGBtCVwGgQt4uQ8OFStZQQoaP/d2YDIwSj83MRyi4rEdn71afC2I
 qptFCKK+qBMMdYPojTfX6hs1LySvGmCubSwJpavcdeksFS14I4+ibRejCji7oQj0
 OkcxRSAIpOnrTpRYGOqe+I4xkTGa8H2yhsTFVjTJAEvGYHpvAPiaQj53CL3jN0jq
 PAaS+w4oJdjwtVCtjebgf5ouhDLft2vyPQrVCzjSVlOv5HoDYWocXK1Zzf1YcHRV
 m3jYn13PUiocQE+Pn/TEaI2MOI+Yl9NYT2Su1H2nvgVEyntIvPJkfBi9K30FgVpw
 UBMFMxyTNnGsIGbv6sxDOxtTWiczRT/cKGBOCabq7daHDlpCFT/pH9/7WpAu9cfk
 04gMZP1m6Q8VV8TseCmBdnRJM+x2JjVRcrRFXB5jlvGrGl+ZfaJ0CaOR0eVOSQS/
 K/YR7YIbrR8tnp/8n3g+KXUDk2Ufamy9r/h8kzVr/5G0xgfZmuVRhpn0a0fDe4D+
 rDnucuG4wlmxsWSwSDxVbYwK5LBm9qzaw9Xg7h2UsyCpKYSQgCRFmejbUTFGu6T3
 5St1V7tHj/WczQr39dYkf6soyx0CGEoGke8zSgINWHR+BCVB18Y=
 =slOY
 -----END PGP SIGNATURE-----

Merge tag '0.31' into master

notmuch 0.31 release
2020-09-05 22:27:32 -03:00
David Bremner
4175d5cb91 NEWS: set release date 2020-09-05 21:50:03 -03:00
David Bremner
0b4490c82c debian: changelog for 0.31-1 2020-09-05 21:48:27 -03:00
David Bremner
008b8b0574 version: bump to 0.31 2020-09-05 21:26:36 -03:00
Mark Walters
f43ea63953 News: add entry for unthreaded mode
A belated NEWS entry for the new un-threaded mode introduced in Notmuch
0.30.
2020-09-05 21:22:09 -03:00
David Bremner
85b5803869 test: fix syntax errors in erroring calls to notmuch insert
notmuch insert does not currently support passing a filename for the
input, so all of these tests have an extra error in addition to the
one being tested for.

Currently this does not make a difference because the error being
tested for is caught before the error of an extra command line
argument. In the future it might make a difference, and in any case it
is confusing.
2020-09-04 21:04:33 -03:00
David Bremner
81b3909509 NEWS: mention reproducibility fix 2020-08-30 08:18:47 -03:00
David Bremner
ee26cae093 NEWS: mention Emacs 27.1 compatibility fixes 2020-08-30 08:16:03 -03:00
David Bremner
c8c0304d77 version: bump to 0.31~rc2 2020-08-29 09:32:36 -03:00
David Bremner
d9385113ef debian: drop notmuch-emacs dependency package
elpa-notmuch is now present in oldstable, and we don't need to support
direct upgrades from older releases than that.
2020-08-29 09:28:36 -03:00
David Bremner
d54b7ae049 debian: suggest mailscripts
These contain several useful tools for the notmuch user, particularly
on Debian.
2020-08-29 09:28:24 -03:00
David Bremner
c0d340778c debian: suggest elpa-mailscripts
These contain some useful functions for notmuch users, mainly wrappers
for scripts from mailscripts.
2020-08-29 09:28:15 -03:00
David Bremner
a623f6b50a NEWS: remaining user visible library changes
These could both cause / fix crashes for user code.
2020-08-23 20:25:30 -03:00
David Bremner
0f90b2eceb NEWS: mention new API entries 2020-08-23 20:25:30 -03:00
David Bremner
16ac5dbaaf NEWS: mention port to Xapian 1.5 2020-08-23 20:25:30 -03:00
David Bremner
2fd1a878c7 NEWS: mention exception handling changes 2020-08-23 20:25:30 -03:00
David Bremner
1d74065955 NEWS: mention merging of documentation for python bindings 2020-08-23 08:53:37 -03:00
William Casarin
68bff37dd7 NEWS: add news entry for tree navigation changes
Signed-off-by: William Casarin <jb55@jb55.com>
Amended-by: db, add verb
2020-08-23 08:24:01 -03:00
Teemu Likonen
3512e2bc83 Emacs: Fix notmuch-message-summary-face definition
Emacs face definition forms are either

    ((DISPLAY . PLIST)
     (DISPLAY . PLIST))

or

    ((DISPLAY PLIST)   ;For backward compatibility.
     (DISPLAY PLIST))

Commit a2388bc56e (2020-08-08) follows
neither of the correct formats. It defines:

    `((((class color) (background light))
       ,@(and (>= emacs-major-version 27) '(:extend t))
       (:background "#f0f0f0"))
      (((class color) (background dark))
       ,@(and (>= emacs-major-version 27) '(:extend t))
       (:background "#303030")))

which produces:

    ((DISPLAY
      :extend t (:background "#f0f0f0"))
     (DISPLAY
      :extend t (:background "#303030")))

And that is wrong format.

This change fixes the face definition form to produce:

    ((DISPLAY
      :extend t :background "#f0f0f0")
     (DISPLAY
      :extend t :background "#303030"))

which follows the (DISPLAY . PLIST) format (see above).
2020-08-22 09:23:26 -03:00