]> git.notmuchmail.org Git - notmuch/log
notmuch
2 years agoChangelog for backport of 0.31.4-2 debian/buster-backports archive/debian/0.31.4-2_bpo10+1 debian/0.31.4-2_bpo10+1
David Bremner [Fri, 10 Sep 2021 10:36:03 +0000 (07:36 -0300)]
Changelog for backport of 0.31.4-2

2 years agoMerge branch 'debian/bullseye' into debian/buster-backports
David Bremner [Fri, 10 Sep 2021 10:34:16 +0000 (07:34 -0300)]
Merge branch 'debian/bullseye' into debian/buster-backports

Update to current Debian stable

2 years agodebian: document new build-dependency debian/bullseye archive/debian/0.31.4-2 debian/0.31.4-2
David Bremner [Tue, 29 Jun 2021 01:48:29 +0000 (22:48 -0300)]
debian: document new build-dependency

2 years agoCommit Debian 3.0 (quilt) metadata
David Bremner [Tue, 29 Jun 2021 01:44:24 +0000 (22:44 -0300)]
Commit Debian 3.0 (quilt) metadata

[dgit (9.13) quilt-fixup]

2 years agodebian: add xapian-tools for tests
David Bremner [Sat, 24 Apr 2021 15:13:37 +0000 (12:13 -0300)]
debian: add xapian-tools for tests

xapian-metadata is used by some of the new tests.

(cherry picked from commit 9f8458a998a0a20f435b5d47ac085acb9490ddae)

2 years agodebian/changelog: refinalize for upload
David Bremner [Tue, 29 Jun 2021 01:09:54 +0000 (22:09 -0300)]
debian/changelog: refinalize for upload

2 years agochangelog for 0.31.4-2
David Bremner [Sun, 27 Jun 2021 01:44:36 +0000 (22:44 -0300)]
changelog for 0.31.4-2

2 years agolib/n_d_index_file: re-use thread-id of existing message
David Bremner [Sat, 15 May 2021 18:40:22 +0000 (15:40 -0300)]
lib/n_d_index_file: re-use thread-id of existing message

This prevents the message document getting multiple thread-id terms
when there are multiple files with the same message-id.

This change shifts some thread ids, requiring adjustments to other tests.

(cherry picked from commit 3f4de98e7c8c70f9a86a4f899147126f79907bd9)

3 years agodebian: drop patches 0.31.4 archive/debian/0.31.4-1 debian/0.31.4-1
David Bremner [Thu, 18 Feb 2021 11:53:00 +0000 (07:53 -0400)]
debian: drop patches

we should by synced up with the tarball again

3 years agodoc: bump copyright year
David Bremner [Thu, 18 Feb 2021 11:52:39 +0000 (07:52 -0400)]
doc: bump copyright year

3 years agodebian: changelog for 0.31.4-1
David Bremner [Thu, 18 Feb 2021 11:23:24 +0000 (07:23 -0400)]
debian: changelog for 0.31.4-1

3 years agoNEWS: news for 0.31.4
David Bremner [Thu, 18 Feb 2021 11:21:48 +0000 (07:21 -0400)]
NEWS: news for 0.31.4

3 years agoversion: update to 0.31.4
David Bremner [Thu, 18 Feb 2021 11:17:22 +0000 (07:17 -0400)]
version: update to 0.31.4

3 years agotest: Fix race condition in T568-lib-thread.sh
David Bremner [Mon, 15 Feb 2021 00:55:55 +0000 (20:55 -0400)]
test: Fix race condition in T568-lib-thread.sh

The assignment of thread-ids is (apparently) non-deterministic in a
way that mostly seems to show up on multicore machines. In my tests
the number is different from that previously assumed by this test
about 15% of the time on a 50 thread (25 core) Xeon.

Since message id's are fixed, use a message known to be in the thread
of interest to pick out the correct thread-id.

3 years agofix build failure with glib 2.67
David Bremner [Mon, 15 Feb 2021 20:43:50 +0000 (16:43 -0400)]
fix build failure with glib 2.67

Based on a patch from Michael J Gruber [1].  As of glib 2.67 (more
specifically [2]), including "gmime-extra.h" inside an extern "C"
block causes build failures, because glib is using C++ features.

Observing that "gmime-extra.h" is no longer needed in
notmuch-private.h, which can simply delete that include, but
we have to correspondingly move the includes which might include
it (in particular crypto.h) out of the extern "C" block also.

This seems less fragile than only moving gmime-extra, and relying on
preprocessor sentinels to keep the deeper includes from happening.

Move to the include to the outside of the extern block.

[1]: id:aee618a3d41f7889a7449aa16893e992325a909a.1613055071.git.git@grubix.eu
[2]: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1715

3 years agodebian: skip gdb based tests on hppa archive/debian/0.31.3-2 debian/0.31.3-2
David Bremner [Sat, 26 Dec 2020 19:14:27 +0000 (15:14 -0400)]
debian: skip gdb based tests on hppa

3 years agoCommit Debian 3.0 (quilt) metadata archive/debian/0.31.3-1 debian/0.31.3-1
David Bremner [Fri, 25 Dec 2020 16:39:26 +0000 (12:39 -0400)]
Commit Debian 3.0 (quilt) metadata

[dgit (9.12) quilt-fixup]

3 years agodebian: drop debian/patches
David Bremner [Fri, 25 Dec 2020 16:37:18 +0000 (12:37 -0400)]
debian: drop debian/patches

These were originally committed by git-debrebase. Unfortunately git
debrebase does not seem to like the notmuch git workflow, so giving up
on it for now.

3 years agodebian: don't tag debian tag at release is made. 0.31.3
David Bremner [Fri, 25 Dec 2020 16:26:35 +0000 (12:26 -0400)]
debian: don't tag debian tag at release is made.

This reflects a change in the debian workflow to use dgit, which does
the tagging for us.  It also leaves room for debian specific fixups.

3 years agoNEWS: add news for 0.31.3
David Bremner [Fri, 25 Dec 2020 15:52:29 +0000 (11:52 -0400)]
NEWS: add news for 0.31.3

3 years agodebian: changelog for 0.31.3-1
David Bremner [Fri, 25 Dec 2020 15:49:32 +0000 (11:49 -0400)]
debian: changelog for 0.31.3-1

3 years agoversion: bump 0.31.3
David Bremner [Fri, 25 Dec 2020 15:42:12 +0000 (11:42 -0400)]
version: bump 0.31.3

3 years agotest/T360-symbol-hiding.sh: trim extra output from readelf
David Bremner [Tue, 15 Dec 2020 20:45:09 +0000 (16:45 -0400)]
test/T360-symbol-hiding.sh: trim extra output from readelf

readelf on (at least) ppc64le sometimes generates some extension to
the Ndx name inside '[]'. Remove this output to allow our simple
column based parsing to work.

3 years agopython/notmuch2: fix exclude tag handling
Johannes Larsen [Fri, 25 Dec 2020 15:21:45 +0000 (11:21 -0400)]
python/notmuch2: fix exclude tag handling

A typo in Database._create_query lost the exclude_tag names during the
string to utf-8 conversion.

Amended by DB: fixed patch format and updated commit message.

3 years agolib/config: delay setting talloc destructor
David Bremner [Sat, 8 Aug 2020 14:16:47 +0000 (11:16 -0300)]
lib/config: delay setting talloc destructor

If Xapian has thrown an exception, it is not safe to invoke the
destructor when freeing the list struct.

(cherry picked from commit 43ba5ed7eca6e9f6433b8c2c2a9d834d4101b92a)

3 years agodebian: fix distribution
David Bremner [Sun, 13 Dec 2020 17:24:31 +0000 (13:24 -0400)]
debian: fix distribution

3 years agoCommit Debian 3.0 (quilt) metadata
David Bremner [Sun, 13 Dec 2020 17:15:13 +0000 (13:15 -0400)]
Commit Debian 3.0 (quilt) metadata

[dgit (9.12) quilt-fixup]

3 years agodebian: changelog for re-upload
David Bremner [Sun, 13 Dec 2020 17:14:37 +0000 (13:14 -0400)]
debian: changelog for re-upload

3 years agoCommit Debian 3.0 (quilt) metadata
David Bremner [Sun, 13 Dec 2020 15:20:29 +0000 (11:20 -0400)]
Commit Debian 3.0 (quilt) metadata

[dgit (9.12) quilt-fixup]

3 years agodebian: changelog for 0.31.2-3~bpo10+1
David Bremner [Sun, 13 Dec 2020 14:57:16 +0000 (10:57 -0400)]
debian: changelog for 0.31.2-3~bpo10+1

3 years agodebian: disable dwz for ruby extensions
David Bremner [Sun, 13 Dec 2020 15:02:34 +0000 (11:02 -0400)]
debian: disable dwz for ruby extensions

The dreaded "dwarf 0" bug is fixed in later binutils, but not in
buster.

3 years agodebian: bump version of dh-elpa dependency to 2.0.6
David Bremner [Sun, 13 Dec 2020 14:49:26 +0000 (10:49 -0400)]
debian: bump version of dh-elpa dependency to 2.0.6

Looking for improvements in dh_missing handling.

3 years agoMerge tag 'debian/0.31.2-3' into debian/buster-backports
David Bremner [Sun, 13 Dec 2020 14:38:31 +0000 (10:38 -0400)]
Merge tag 'debian/0.31.2-3' into debian/buster-backports

notmuch release 0.31.2-3 for unstable (sid) [dgit]

[dgit distro=debian no-split --quilt=linear]

3 years agoCommit Debian 3.0 (quilt) metadata archive/debian/0.31.2-5 debian/0.31.2-5
David Bremner [Sun, 13 Dec 2020 12:25:39 +0000 (08:25 -0400)]
Commit Debian 3.0 (quilt) metadata

[dgit (9.12) quilt-fixup]

3 years agodebian: changelog for 0.31.2-5
David Bremner [Sun, 13 Dec 2020 12:25:29 +0000 (08:25 -0400)]
debian: changelog for 0.31.2-5

3 years agotest/T360-symbol-hiding: use readelf in place of nm
David Bremner [Fri, 11 Dec 2020 17:06:44 +0000 (13:06 -0400)]
test/T360-symbol-hiding: use readelf in place of nm

It turns out that using nm -P isn't as portable as hoped. In
particular with some ELF ABIs (e.g. ppc64 ELFv1), the desired symbols
end up in the data section instead of text.

The test is currently only functional on ELF based architectures, so I
think it's legit to depend on readelf instead of nm.

The switch to readelf has the advantage that we can explicitely ask
for all of the symbols with global visibility, rather than grepping
for notmuch. That seems a more robust approach since it will catch any
strangely named global symbols.

3 years agoCommit Debian 3.0 (quilt) metadata archive/debian/0.31.2-4 debian/0.31.2-4
David Bremner [Fri, 11 Dec 2020 01:07:10 +0000 (21:07 -0400)]
Commit Debian 3.0 (quilt) metadata

[dgit (9.12) quilt-fixup]

3 years agodebian: changelog for 0.31.2-4
David Bremner [Fri, 11 Dec 2020 01:03:35 +0000 (21:03 -0400)]
debian: changelog for 0.31.2-4

3 years agobuild/docs: move docstring prereq to file targets
David Bremner [Thu, 10 Dec 2020 01:55:38 +0000 (21:55 -0400)]
build/docs: move docstring prereq to file targets

Under a sufficiently high level of parallelism [1] there seems to be a
a race condition that allows sphinx-build to start running before the
docstrings are extracted. This change moves the docstring stamp from
the phony targets sphinx-html and sphinx-info to the file targets that
they depend on. I'm not sure why this makes things better, but I am
fairly confident it does not make things worse, and experimentally it
seems to eliminate the race condition.

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976934

3 years agodebian: upload 0.31.2-3 archive/debian/0.31.2-3 debian/0.31.2-3
David Bremner [Mon, 9 Nov 2020 17:59:58 +0000 (13:59 -0400)]
debian: upload 0.31.2-3

3 years agodebian: changelog for 0.31.2-2 archive/debian/0.31.2-2 debian/0.31.2-2
David Bremner [Mon, 9 Nov 2020 12:46:07 +0000 (08:46 -0400)]
debian: changelog for 0.31.2-2

3 years agodebian: run tests in verbose mode
David Bremner [Mon, 9 Nov 2020 12:44:41 +0000 (08:44 -0400)]
debian: run tests in verbose mode

A hopefully temporary change to try and debug some test failures on
autobuilders.

3 years agorelease: explicitely build sphinx-html 0.31.2 debian/0.31.2-1
David Bremner [Sun, 8 Nov 2020 17:33:08 +0000 (13:33 -0400)]
release: explicitely build sphinx-html

This is to force it to happen after the "make clean".

3 years agoNEWS: update for 0.31.2
David Bremner [Sun, 8 Nov 2020 16:47:30 +0000 (12:47 -0400)]
NEWS: update for 0.31.2

3 years agodebian: remove quilt patches
David Bremner [Sun, 8 Nov 2020 15:56:20 +0000 (11:56 -0400)]
debian: remove quilt patches

These were generated by dgit due a mix up with .orig.tar.xz files.

3 years agodebian: update changelog for 0.31.2-1
David Bremner [Sun, 8 Nov 2020 15:33:27 +0000 (11:33 -0400)]
debian: update changelog for 0.31.2-1

3 years agoversion: bump to 0.31.2
David Bremner [Sun, 8 Nov 2020 16:36:35 +0000 (12:36 -0400)]
version: bump to 0.31.2

3 years agobuild: change one more occurrence of 'version' to 'version.txt'.
David Bremner [Sun, 8 Nov 2020 16:58:03 +0000 (12:58 -0400)]
build: change one more occurrence of 'version' to 'version.txt'.

This one disguised via tar and sed trickery.

3 years agoCommit Debian 3.0 (quilt) metadata archive/debian/0.31.1-1 debian/0.31.1-1
David Bremner [Sun, 8 Nov 2020 14:08:00 +0000 (10:08 -0400)]
Commit Debian 3.0 (quilt) metadata

[dgit (9.12) quilt-fixup]

3 years agorelease: call python3 instead of python 0.31.1
David Bremner [Sun, 8 Nov 2020 14:01:53 +0000 (10:01 -0400)]
release: call python3 instead of python

Debian does not install /usr/bin/python by default any more.

3 years agorelease: update release-checks.sh for s/version/version.txt/
David Bremner [Sun, 8 Nov 2020 14:00:57 +0000 (10:00 -0400)]
release: update release-checks.sh for s/version/version.txt/

Another place missed by the rename.

3 years agodebian: changelog for 0.31.1-1
David Bremner [Sun, 8 Nov 2020 11:46:51 +0000 (07:46 -0400)]
debian: changelog for 0.31.1-1

3 years agoNEWS: add news for 0.31.1
David Bremner [Sun, 8 Nov 2020 11:39:14 +0000 (07:39 -0400)]
NEWS: add news for 0.31.1

3 years agoupdate versions
David Bremner [Sun, 8 Nov 2020 11:32:10 +0000 (07:32 -0400)]
update versions

3 years agobuild: fix update-versions rule
David Bremner [Sun, 8 Nov 2020 11:27:48 +0000 (07:27 -0400)]
build: fix update-versions rule

This was missed in the rename of the 'version' file to version.txt

3 years agoRename version to version.txt
Ralph Seichter [Wed, 28 Oct 2020 14:44:35 +0000 (15:44 +0100)]
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.
3 years agolib/config: don't set destructor until iterator is initialized.
David Bremner [Fri, 30 Oct 2020 00:13:01 +0000 (21:13 -0300)]
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.

3 years agoconfigure: replace $(realpath emacs) with $(cd emacs && pwd -P)
Tomi Ollila [Tue, 20 Oct 2020 06:57:11 +0000 (09:57 +0300)]
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).

3 years agoemacs docs: rstdoc.el: consistent single quote conversions
Tomi Ollila [Fri, 9 Oct 2020 07:32:02 +0000 (10:32 +0300)]
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.

3 years agoemacs: Remove notmuch-mua-message-send-hook
Tim Quelch [Sat, 12 Sep 2020 04:45:40 +0000 (14:45 +1000)]
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.

3 years agoMerge tag '0.31' into master
David Bremner [Sun, 6 Sep 2020 01:27:32 +0000 (22:27 -0300)]
Merge tag '0.31' into master

notmuch 0.31 release

3 years agoNEWS: set release date 0.31 archive/debian/0.31-1 debian/0.31-1
David Bremner [Sun, 6 Sep 2020 00:50:03 +0000 (21:50 -0300)]
NEWS: set release date

3 years agodebian: changelog for 0.31-1
David Bremner [Sun, 6 Sep 2020 00:48:27 +0000 (21:48 -0300)]
debian: changelog for 0.31-1

3 years agoversion: bump to 0.31
David Bremner [Sun, 6 Sep 2020 00:26:36 +0000 (21:26 -0300)]
version: bump to 0.31

3 years agoNews: add entry for unthreaded mode
Mark Walters [Sat, 5 Sep 2020 17:44:45 +0000 (18:44 +0100)]
News: add entry for unthreaded mode

A belated NEWS entry for the new un-threaded mode introduced in Notmuch
0.30.

3 years agotest: fix syntax errors in erroring calls to notmuch insert
David Bremner [Fri, 4 Sep 2020 01:10:57 +0000 (22:10 -0300)]
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.

3 years agoNEWS: mention reproducibility fix 0.31_rc2 archive/debian/0.31_rc2-1 debian/0.31_rc2-1
David Bremner [Sat, 29 Aug 2020 12:23:10 +0000 (09:23 -0300)]
NEWS: mention reproducibility fix

3 years agoNEWS: mention Emacs 27.1 compatibility fixes
David Bremner [Sat, 29 Aug 2020 12:23:09 +0000 (09:23 -0300)]
NEWS: mention Emacs 27.1 compatibility fixes

3 years agoversion: bump to 0.31~rc2
David Bremner [Sat, 29 Aug 2020 12:32:36 +0000 (09:32 -0300)]
version: bump to 0.31~rc2

3 years agodebian: drop notmuch-emacs dependency package
David Bremner [Tue, 25 Aug 2020 11:03:26 +0000 (08:03 -0300)]
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.

3 years agodebian: suggest mailscripts
David Bremner [Tue, 25 Aug 2020 11:03:25 +0000 (08:03 -0300)]
debian: suggest mailscripts

These contain several useful tools for the notmuch user, particularly
on Debian.

3 years agodebian: suggest elpa-mailscripts
David Bremner [Tue, 25 Aug 2020 11:03:24 +0000 (08:03 -0300)]
debian: suggest elpa-mailscripts

These contain some useful functions for notmuch users, mainly wrappers
for scripts from mailscripts.

3 years agoNEWS: remaining user visible library changes
David Bremner [Sun, 23 Aug 2020 12:22:45 +0000 (09:22 -0300)]
NEWS: remaining user visible library changes

These could both cause / fix crashes for user code.

3 years agoNEWS: mention new API entries
David Bremner [Sun, 23 Aug 2020 12:19:28 +0000 (09:19 -0300)]
NEWS: mention new API entries

3 years agoNEWS: mention port to Xapian 1.5
David Bremner [Sun, 23 Aug 2020 12:16:16 +0000 (09:16 -0300)]
NEWS: mention port to Xapian 1.5

3 years agoNEWS: mention exception handling changes
David Bremner [Sun, 23 Aug 2020 12:02:18 +0000 (09:02 -0300)]
NEWS: mention exception handling changes

3 years agoNEWS: mention merging of documentation for python bindings
David Bremner [Sun, 23 Aug 2020 11:53:37 +0000 (08:53 -0300)]
NEWS: mention merging of documentation for python bindings

3 years agoNEWS: add news entry for tree navigation changes
William Casarin [Sat, 22 Aug 2020 18:05:44 +0000 (11:05 -0700)]
NEWS: add news entry for tree navigation changes

Signed-off-by: William Casarin <jb55@jb55.com>
Amended-by: db, add verb
3 years agoEmacs: Fix notmuch-message-summary-face definition
Teemu Likonen [Sun, 16 Aug 2020 17:13:23 +0000 (20:13 +0300)]
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 a2388bc56e55da5d5695816818274f8a84b0ed92 (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).

3 years agoAUTHORS: update for 0.31
David Bremner [Tue, 18 Aug 2020 11:43:06 +0000 (08:43 -0300)]
AUTHORS: update for 0.31

Just shuffles existing authors around, mainly due to Jonas's
enthusiastic cleanup work.

3 years agoemacs: Use pop-to-buffer-same-window rather than switch-to-buffer
Sean Whitton [Tue, 11 Aug 2020 16:59:13 +0000 (09:59 -0700)]
emacs: Use pop-to-buffer-same-window rather than switch-to-buffer

This means that notmuch commands obey display-buffer-alist so the user
can customize how buffers show up.

It also permits the use of C-x 4 4, C-x 5 5 and C-x t t, available in
Emacs 28.  For example, one can use C-x 4 4 M-x notmuch-jump-search RET
to open a saved search in another window rather than the current window.
Or in notmuch-search mode, C-x 5 5 RET to view the message at point in
a new frame.

notmuch-tree has custom buffer display logic, so bind
display-buffer-overriding-action to make pop-to-buffer-same-window
behave exactly as switch-to-buffer while that function is running.

3 years agodebian/changelog: fix typo
David Bremner [Tue, 18 Aug 2020 11:48:02 +0000 (08:48 -0300)]
debian/changelog: fix typo

3 years agoupdate changelog for 0.31~rc1-1 0.31_rc1 archive/debian/0.31_rc1-1 debian/0.31_rc1-1
David Bremner [Tue, 18 Aug 2020 10:58:28 +0000 (07:58 -0300)]
update changelog for 0.31~rc1-1

3 years agoversion: bump to 0.31~rc1
David Bremner [Tue, 18 Aug 2020 00:02:30 +0000 (21:02 -0300)]
version: bump to 0.31~rc1

3 years agoNEWS: notmuch-mutt: system(shell pipeline) replaced internally
Tomi Ollila [Mon, 17 Aug 2020 20:39:22 +0000 (23:39 +0300)]
NEWS: notmuch-mutt: system(shell pipeline) replaced internally

3 years agotest: fix uninitialized variable use in T562-lib-database
David Bremner [Sun, 16 Aug 2020 17:04:36 +0000 (14:04 -0300)]
test: fix uninitialized variable use in T562-lib-database

Fix a copy paste error of using the boolean ret as a notmuch_status_t,
and uninitialized.

3 years agobuild: clean up sphinx.config
David Bremner [Sun, 16 Aug 2020 15:27:11 +0000 (12:27 -0300)]
build: clean up sphinx.config

Follow the existing practice and remove it under "distclean", same as
sh.config and Makefile.config

3 years agodevel/release-checks.sh: use grep to find copyright year. 0.31_rc0
David Bremner [Sun, 16 Aug 2020 14:32:28 +0000 (11:32 -0300)]
devel/release-checks.sh: use grep to find copyright year.

This is quite fragile, but it works for now, unlike the python
version.

In general it seems conf.py is not intended to be evaluated outside of
sphinx, as it assumes certain global names (in particular "tags") are
defined.

3 years agodebian: update symbols for 0.31
David Bremner [Sun, 16 Aug 2020 14:12:59 +0000 (11:12 -0300)]
debian: update symbols for 0.31

Two new API entries for better error handling

3 years agodebian: start changelog for 0.31~rc0-1
David Bremner [Sun, 16 Aug 2020 14:09:18 +0000 (11:09 -0300)]
debian: start changelog for 0.31~rc0-1

3 years agoversion: bump to 0.31~rc0
David Bremner [Sun, 16 Aug 2020 14:06:13 +0000 (11:06 -0300)]
version: bump to 0.31~rc0

Start the release process for 0.31

3 years agoemacs/tree: add notmuch-tree-archive-thread-then-next
William Casarin [Tue, 11 Aug 2020 17:36:53 +0000 (10:36 -0700)]
emacs/tree: add notmuch-tree-archive-thread-then-next

Now that notmuch-tree-next-thread acts more like its notmuch-show
counterpart, let's update the binding to move to the next thread after
archiving.

Signed-off-by: William Casarin <jb55@jb55.com>
3 years agoemacs/tree: enable moving to next thread in search results
William Casarin [Tue, 11 Aug 2020 17:36:52 +0000 (10:36 -0700)]
emacs/tree: enable moving to next thread in search results

This introduces a new function called
notmuch-tree-next-thread-from-search which is analogous to
notmuch-show-next-thread. It will switch to the next or previous
thread from the parent search results.

We rename notmuch-tree-{prev,next}-thread to a more descriptive
notmuch-tree-{prev,next}-thread-in-tree to reflect the fact that it
only moves to the next thread in the current tree.

notmuch-tree-next-thread now switches to the next thread in the
current tree first, but if there are none, it looks for the next tree
in the search results.

This makes notmuch-tree feel more like notmuch-show when using the
M-Enter, M-n and M-p bindings.

Signed-off-by: William Casarin <jb55@jb55.com>
3 years agoemacs/tree: introduce notmuch-tree-parent-buffer variable
William Casarin [Tue, 11 Aug 2020 17:36:51 +0000 (10:36 -0700)]
emacs/tree: introduce notmuch-tree-parent-buffer variable

This variable will be used in a similar fashion to
notmuch-show-parent-buffer. It will be used to navigate between
threads from the parent search buffer.

Signed-off-by: William Casarin <jb55@jb55.com>
3 years agotest: update README to reflect dropping upgrade tests
David Bremner [Sat, 15 Aug 2020 12:15:05 +0000 (09:15 -0300)]
test: update README to reflect dropping upgrade tests

These test databases have been unneeded since ee897cab8.

3 years agoEmacs: Indent first header line only when indentation is turned on
Teemu Likonen [Sat, 15 Aug 2020 06:28:29 +0000 (09:28 +0300)]
Emacs: Indent first header line only when indentation is turned on

Previously in message-show mode message's first header line (From
header) was always indented, even if user had turned thread
indentation off with "<" (notmuch-show-toggle-thread-indentation)
command.

This change modifies notmuch-show-insert-headerline function so that
it doesn't indent the first header line if notmuch-show-indent-content
variable is nil.

This change also modifies tests so that they expect this new output
format:
test/emacs-show.expected-output/notmuch-show-indent-thread-content-off

3 years agonotmuch-mutt: replace shell pipeline with internal pipe processing
Tomi Ollila [Mon, 27 Jul 2020 19:38:33 +0000 (22:38 +0300)]
notmuch-mutt: replace shell pipeline with internal pipe processing

The shell pipeline used to symlink files based in search results
to "cache" directory for mutt(1) to use was prone to portability
problems (due to /bin/sh differences).

The replacement executes `notmuch search` without intermediate shell
(so shell_quote was removed in this case), reads the filenames from
piped output and symlinks files internally.

3 years agoconfigure: Check if emacs >= 25 (instead of >= 24) is available
Tomi Ollila [Tue, 11 Aug 2020 07:38:19 +0000 (10:38 +0300)]
configure: Check if emacs >= 25 (instead of >= 24) is available

"The minimum supported major version of GNU Emacs is now 25.1."

25.1 is the first "released" version of Emacs 25.

3 years agotry-emacs-mua: Trim `require' advice for Emacs 25
Jonas Bernoulli [Sat, 8 Aug 2020 11:50:09 +0000 (13:50 +0200)]
try-emacs-mua: Trim `require' advice for Emacs 25

- Since Emacs 25 comes with `load-prefer-newer' we can remove the
  complicated variant of the advice, which implemented a poorman's
  version of that.

- Since Emacs 25 comes with the new advice mechanism, we can use
  that now for the simple variant of the advice, which just informs
  about the library that is being required.

3 years agoemacs: Use new advice mechanism do advice mm-shr
Jonas Bernoulli [Sat, 8 Aug 2020 11:50:08 +0000 (13:50 +0200)]
emacs: Use new advice mechanism do advice mm-shr

Also because we now only support Emacs >= 25,
we can remove the check for Emacs >= 24.