]> git.notmuchmail.org Git - notmuch/log
notmuch
7 years agoNEWS: news for notmuch-insert error handling
David Bremner [Wed, 7 Dec 2016 11:27:13 +0000 (07:27 -0400)]
NEWS: news for notmuch-insert error handling

7 years agocli/insert: document the use of EX_TEMPFAIL
David Bremner [Wed, 7 Dec 2016 11:27:12 +0000 (07:27 -0400)]
cli/insert: document the use of EX_TEMPFAIL

7 years agoMerge branch 'release'
David Bremner [Wed, 7 Dec 2016 11:28:46 +0000 (07:28 -0400)]
Merge branch 'release'

Merge changes for notmuch-insert error handling, debian bugfix release

7 years agocli/insert: return EX_TEMPFAIL for some errors
David Bremner [Mon, 28 Nov 2016 03:01:42 +0000 (23:01 -0400)]
cli/insert: return EX_TEMPFAIL for some errors

Attempt to distinguish between errors indicating misconfiguration or
programmer error, which we consider "permanent", in the sense that
automatic retries are unlikely to be useful, and those indicating
transient error conditions. We consider XAPIAN_EXCEPTION transient
because it covers the important special case of locking failure.

7 years agocli/insert: delay database open until after writing mail file
David Bremner [Sun, 27 Nov 2016 15:24:58 +0000 (11:24 -0400)]
cli/insert: delay database open until after writing mail file

The idea is to get the mail written to disk, even if we can't open the
database (e.g. because some other process has a write lock, and notmuch
is compiled for non-blocking opens).

7 years agotest: gdb insert: redirect input inside gdb script
Tomi Ollila [Mon, 28 Nov 2016 21:07:08 +0000 (23:07 +0200)]
test: gdb insert: redirect input inside gdb script

Running `gdb command < input` is not as reliable way to give input
to the command (some installations of gdb consume it). Use "set args"
gdb command to have input redirected at gdb 'run' time.

7 years agodebian: changelog stanza for 0.23.3-3
David Bremner [Mon, 5 Dec 2016 12:26:28 +0000 (08:26 -0400)]
debian: changelog stanza for 0.23.3-3

7 years agodebian: disable gdb using tests on kfreebsd-*
David Bremner [Mon, 5 Dec 2016 12:22:57 +0000 (08:22 -0400)]
debian: disable gdb using tests on kfreebsd-*

gdb seems broken there.

7 years agotest: check the handling of files vanishing between scandir and indexing
Jani Nikula [Sun, 27 Nov 2016 09:59:34 +0000 (11:59 +0200)]
test: check the handling of files vanishing between scandir and indexing

Add a file for scandir to find, but use gdb to remove it before it
gets indexed.

7 years agotest: clean up corpora.email
David Bremner [Sun, 27 Nov 2016 12:04:38 +0000 (08:04 -0400)]
test: clean up corpora.email

When we renamed corpus to corpora, we missed a spot.

7 years agoMerge branch 'release'
David Bremner [Thu, 1 Dec 2016 12:57:48 +0000 (08:57 -0400)]
Merge branch 'release'

7 years agodebian: fix transition package for notmuch-emacs
David Bremner [Thu, 1 Dec 2016 12:08:14 +0000 (08:08 -0400)]
debian: fix transition package for notmuch-emacs

The current version is more a transition to nowhere.

7 years agobuild: update the desktop database after installing the desktop file
Jani Nikula [Sat, 26 Nov 2016 09:43:49 +0000 (11:43 +0200)]
build: update the desktop database after installing the desktop file

This makes the option to choose Notmuch as mailto: handler show up in
the desktop environment settings. Ignore errors.

7 years agobuild: install notmuch-emacs-mua.desktop file with emacs
Jani Nikula [Sat, 26 Nov 2016 09:37:17 +0000 (11:37 +0200)]
build: install notmuch-emacs-mua.desktop file with emacs

There is really no need to have a separate install target for the
desktop file. Just install the desktop file with emacs, with a
configure option to opt out.

7 years agodoc: whitespace cleanup
Tomi Ollila [Sat, 26 Nov 2016 22:25:57 +0000 (00:25 +0200)]
doc: whitespace cleanup

In most part, our .rst documents are indented with 8 spaces instead
of tabs. Bring the rest of the lines to the same format.
Also, on one (supposedly empty) line, trailing spaces were removed.

7 years agoMerge tag '0.23.3'
David Bremner [Sun, 27 Nov 2016 12:09:17 +0000 (08:09 -0400)]
Merge tag '0.23.3'

notmuch 0.23.3 release

7 years agoNEWS: fix date and title 0.23.3
David Bremner [Sun, 27 Nov 2016 01:54:10 +0000 (21:54 -0400)]
NEWS: fix date and title

7 years agoMerge branch 'release'
David Bremner [Sat, 26 Nov 2016 12:43:31 +0000 (08:43 -0400)]
Merge branch 'release'

Add Jani's fix for notmuch-new

7 years agoNEWS: note disappearing files fix for notmuch new
David Bremner [Sat, 26 Nov 2016 12:41:47 +0000 (08:41 -0400)]
NEWS: note disappearing files fix for notmuch new

7 years agoNEWS: set date
David Bremner [Sat, 26 Nov 2016 12:39:32 +0000 (08:39 -0400)]
NEWS: set date

7 years agodebian: finalize? changelog for 0.23.3-1
David Bremner [Sat, 26 Nov 2016 12:38:13 +0000 (08:38 -0400)]
debian: finalize? changelog for 0.23.3-1

7 years agonotmuch.desktop: move under emacs as notmuch-emacs-mua.desktop
Jani Nikula [Mon, 21 Nov 2016 21:13:38 +0000 (23:13 +0200)]
notmuch.desktop: move under emacs as notmuch-emacs-mua.desktop

The notmuch.desktop file is part of notmuch-emacs. Move it under
emacs, and rename as notmuch-emacs-mua.desktop to reflect this.

7 years agobuild: install notmuch-emacs-mua with notmuch-emacs
Jani Nikula [Mon, 21 Nov 2016 21:13:37 +0000 (23:13 +0200)]
build: install notmuch-emacs-mua with notmuch-emacs

notmuch-emacs-mua is good enough to be installed with notmuch-emacs.

7 years agonotmuch-emacs-mua: add --hello parameter
Jani Nikula [Mon, 21 Nov 2016 21:13:36 +0000 (23:13 +0200)]
notmuch-emacs-mua: add --hello parameter

If the --hello parameter is given, display the notmuch hello buffer
instead of the message composition buffer if no message composition
parameters are given.

Signed-off-by: Jani Nikula <jani@nikula.org>
7 years agoemacs: move notmuch-emacs-mua under emacs
Jani Nikula [Mon, 21 Nov 2016 21:13:35 +0000 (23:13 +0200)]
emacs: move notmuch-emacs-mua under emacs

While the notmuch-emacs-mua script is a sort of cli command, it is
really a part of notmuch-emacs. Move it under the emacs directory.

7 years agoman: advertize notmuch-emacs-mua as notmuch emacs-mua subcommand
Jani Nikula [Mon, 21 Nov 2016 21:13:34 +0000 (23:13 +0200)]
man: advertize notmuch-emacs-mua as notmuch emacs-mua subcommand

With subcommand handling for external commands we can now hide the
implementation detail of emacs-mua being a separate notmuch-emacs-mua
script.

7 years agobuild/emacs: add target to create elpa package
David Bremner [Sat, 19 Nov 2016 17:44:29 +0000 (13:44 -0400)]
build/emacs: add target to create elpa package

This package can be created without emacs, but will only be usable in
versions of emacs supporting package.el

7 years agobuild: Move variable definitions to Makefile.global
David Bremner [Sat, 19 Nov 2016 17:44:28 +0000 (13:44 -0400)]
build: Move variable definitions to Makefile.global

I noticed when trying to use VERSION (and derived variables) in a
subdirectory that the top level Makefile.local needed to be included
first. But according to c10085c77b407d9ea704f8b4f9e0a805f63e72cb it
actually needs to be last. To break this conflict, move the variables
definitions into a new Makefile.global.

7 years agocli/new: document new exit code
David Bremner [Sat, 26 Nov 2016 02:40:37 +0000 (22:40 -0400)]
cli/new: document new exit code

It seems important to give the numeric return code for people writing
scripts. Hopefully deviations from this convention are rare.

7 years agocli: consider files vanishing during notmuch new non-fatal
Jani Nikula [Mon, 21 Nov 2016 20:14:33 +0000 (22:14 +0200)]
cli: consider files vanishing during notmuch new non-fatal

If some software other than notmuch new renames or removes files
during the notmuch new scan (specifically after scandir but before
indexing the file), keep going instead of bailing out. Failing to
index the file is just a race condition between notmuch and the other
software; the rename could happen after the notmuch new scan
anyway. It's not fatal, and we'll catch the renamed files on the next
scan.

Add a new exit code for when files vanished, so the caller has a
chance to detect the race and re-run notmuch new to recover.

Reported by Paul Wise <pabs@debian.org> at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=843127

7 years agoMerge branch 'release'
David Bremner [Fri, 25 Nov 2016 01:21:16 +0000 (21:21 -0400)]
Merge branch 'release'

Initial set of changes for 0.23.3

7 years agodebian: start changelog stanza for 0.23.3-1
David Bremner [Fri, 25 Nov 2016 00:30:58 +0000 (20:30 -0400)]
debian: start changelog stanza for 0.23.3-1

7 years agoversion: bump to 0.23.3
David Bremner [Fri, 25 Nov 2016 00:29:18 +0000 (20:29 -0400)]
version: bump to 0.23.3

7 years agoNEWS: note gnupg related test-suite fix
David Bremner [Fri, 25 Nov 2016 00:28:27 +0000 (20:28 -0400)]
NEWS: note gnupg related test-suite fix

7 years agodebian: disable dh_elpa_test
David Bremner [Fri, 25 Nov 2016 00:16:24 +0000 (20:16 -0400)]
debian: disable dh_elpa_test

Currently it seems to interfere with running the notmuch test suite.
In any case we have no ert / buttercup format tests to run.

7 years agotests: account for varying-size cryptographic signatures
Daniel Kahn Gillmor [Wed, 23 Nov 2016 17:57:22 +0000 (12:57 -0500)]
tests: account for varying-size cryptographic signatures

GnuPG 2.1.16 is now injecting the full issuer fingerprint in its
signatures, which makes them about 32 octets larger when
ascii-armored.

This change in size means that the size of the MIME parts will vary
depending on the version of gpg that the user has installed.  at any
rate, the signature part should be non-zero (this is true for
basically any MIME part), so we just test for that instead of an exact
size.

7 years agoMerge tag '0.23.2'
David Bremner [Sun, 20 Nov 2016 12:50:10 +0000 (08:50 -0400)]
Merge tag '0.23.2'

notmuch 0.23.2 release

7 years agoNEWS: set date for release 0.23.2
David Bremner [Sun, 20 Nov 2016 12:23:33 +0000 (08:23 -0400)]
NEWS: set date for release

7 years agoNEWS for notmuch-cycle-notmuch-buffers
Mark Walters [Fri, 18 Nov 2016 09:02:27 +0000 (09:02 +0000)]
NEWS for notmuch-cycle-notmuch-buffers

7 years agoNEWS: document fixes for emacs23
David Bremner [Thu, 17 Nov 2016 12:18:20 +0000 (08:18 -0400)]
NEWS: document fixes for emacs23

7 years agobuild: only install known man pages
Jani Nikula [Sat, 5 Nov 2016 20:18:18 +0000 (22:18 +0200)]
build: only install known man pages

Install man pages based on $(MAN_GZIP_FILES), which directly
corresponds to the man page source rst files. This way we can filter
the man pages to be installed as needed.

7 years agobuild: generate man page list from source files, not conf.py
Jani Nikula [Sat, 5 Nov 2016 20:18:17 +0000 (22:18 +0200)]
build: generate man page list from source files, not conf.py

Use $(wildcard ...) to generate the list of man pages based on the rst
source files present in the man page directories, instead of reading
conf.py. This has three main benefits:

1) This makes the man page build slightly less complicated and easier
   to understand. At least there are fewer moving parts.

2) This makes the build fail if we add a man page rst file, but fail
   to add it to conf.py.

3) We can use Sphinx constructs in conf.py that are not available when
   importing the file into a normal python program such as
   mkdocdeps.py.

7 years agobuild: do not touch roff files after sphinx-build
Jani Nikula [Sat, 5 Nov 2016 20:18:16 +0000 (22:18 +0200)]
build: do not touch roff files after sphinx-build

If Sphinx fails to create any of the roff files, having touch create
them hides the errors until someone realizes, possibly much later,
that the resulting files are empty. (Note that gzip doesn't fail on
empty input files.) Sphinx will change the timestamps of any files it
has written anyway.

7 years agodoc: fix references in notmuch-emacs.rst
Jani Nikula [Sat, 5 Nov 2016 20:18:15 +0000 (22:18 +0200)]
doc: fix references in notmuch-emacs.rst

Fix make sphinx-texinfo warnings:

WARNING: undefined label: notmuch-jump (if the link has no caption the
label must precede a section header)

WARNING: undefined label: notmuch-saved-searches (if the link has no
caption the label must precede a section header)

7 years agodoc/conf.py: include command name in texinfo document title
Jani Nikula [Sat, 5 Nov 2016 20:18:14 +0000 (22:18 +0200)]
doc/conf.py: include command name in texinfo document title

Seems to make more sense than to have the same title for everything.

7 years agodoc/conf.py: reindent, whitespace clean man page, texinfo lists
Jani Nikula [Sat, 5 Nov 2016 20:18:13 +0000 (22:18 +0200)]
doc/conf.py: reindent, whitespace clean man page, texinfo lists

No functional changes.

7 years agodoc/conf.py: abstract notmuch authors
Jani Nikula [Sat, 5 Nov 2016 20:18:12 +0000 (22:18 +0200)]
doc/conf.py: abstract notmuch authors

Don't repeat the same stuff so much. We probably don't want to track
individual authors for man/texinfo pages anyway.

No user visible changes.

7 years agodoc/conf.py: generate texinfo_documents list from man_pages list
Jani Nikula [Sat, 5 Nov 2016 20:18:11 +0000 (22:18 +0200)]
doc/conf.py: generate texinfo_documents list from man_pages list

No need to repeat mostly the same information twice in conf.py. We
probably want to have a corresponding texinfo document for all the man
pages. Python list comprehension to the rescue. (The reverse is not
true; we have a texinfo document for notmuch-emacs we don't want as a
man page.)

There should be no user visible changes.

7 years agodoc/conf.py: add notmuch-emacs-mua to texinfo documents
Jani Nikula [Sat, 5 Nov 2016 20:18:10 +0000 (22:18 +0200)]
doc/conf.py: add notmuch-emacs-mua to texinfo documents

This was overlooked when adding the man page.

7 years agoMerge branch 'release'
David Bremner [Thu, 17 Nov 2016 12:25:08 +0000 (08:25 -0400)]
Merge branch 'release'

Updates for 0.23.2

7 years agodebian: changelog stanza for 0.23.2-1
David Bremner [Fri, 11 Nov 2016 11:46:52 +0000 (07:46 -0400)]
debian: changelog stanza for 0.23.2-1

7 years agoversion: bump to 0.23.2
David Bremner [Thu, 17 Nov 2016 01:52:50 +0000 (21:52 -0400)]
version: bump to 0.23.2

7 years agodebian: convert to use dh-elpa
David Bremner [Fri, 11 Nov 2016 11:46:51 +0000 (07:46 -0400)]
debian: convert to use dh-elpa

This packaging helper eliminates most of the boilerplate from packaging
emacs extensions for debian. It requires package.el compatible metadata.

7 years agoemacs: generate notmuch-pkg.el
David Bremner [Fri, 11 Nov 2016 11:46:50 +0000 (07:46 -0400)]
emacs: generate notmuch-pkg.el

This file contains metadata for the built in (as of emacs 24) packaging
system.

7 years agoemacs: add compatibility functions for emacs 23
Mark Walters [Tue, 15 Nov 2016 19:48:45 +0000 (19:48 +0000)]
emacs: add compatibility functions for emacs 23

Some of the recent changes to the emacs code have used functions
introduced in emacs 24. The functions used are read-char-choice and
setq-local. This changeset adds a file notmuch-compat.el which
contains compatibility functions so that it should work on emacs
23.

Note, since these functions are taken almost unchanged from the emacs
source they are copyright the Free Software Foundation, and the header
in the file reflects that.

7 years agolib: optionally silence Xapian deprecation warnings
David Bremner [Wed, 5 Oct 2016 11:34:34 +0000 (08:34 -0300)]
lib: optionally silence Xapian deprecation warnings

This is not ideal, but the new API is not available in Xapian 1.2.x, and
it seems to soon to depend on Xapian >= 1.4

7 years agoTest: fix draft test for emacs23
Mark Walters [Mon, 14 Nov 2016 13:49:28 +0000 (13:49 +0000)]
Test: fix draft test for emacs23

emacs24 and emacs23 have different secure tag defaults: in particular,
mml-secure-message-sign only signs the part on emacs23 but the whole
message on emacs24. This difference makes one of the draft tests fail
(which causes a cascade of later failures) on emacs23. It seems that
travis uses emacs23 so it is useful to fix this.

We do this by forcing the whole message to be signed in either case --
the code snippet is extracted from mml-secure-message-sign on emacs24.

7 years agoemacs: resume messages
David Bremner [Sun, 13 Nov 2016 14:08:50 +0000 (14:08 +0000)]
emacs: resume messages

Provide functionality to resume editing a message previously saved with
notmuch-draft-save, including decoding the X-Notmuch-Emacs-Secure
header.

Resume gets the raw file from notmuch and using the emacs function
mime-to-mml reconstructs the message (including attachments).

'e' is bound to resume a draft from show or tree mode.

7 years agoemacs: check drafts for encryption tags before saving
David Bremner [Sun, 13 Nov 2016 14:08:49 +0000 (14:08 +0000)]
emacs: check drafts for encryption tags before saving

In general the user may not want to save plaintext copies of messages
that they are sending encrypted, so give them a chance to abort.

7 years agoemacs: postpone a message
Mark Walters [Sun, 13 Nov 2016 14:08:48 +0000 (14:08 +0000)]
emacs: postpone a message

This provides initial support for postponing in the emacs frontend;
resuming will follow in a later commit. On saving/postponing it uses
notmuch insert to put the message in the notmuch database

Current bindings are C-x C-s to save a draft, C-c C-p to postpone a
draft (save and exit compose buffer).

Previous drafts get tagged deleted on subsequent saves, or on the
message being sent.

Each draft gets its own message-id, and we use the namespace
draft-.... for draft message ids (so, at least for most people, drafts
are easily distinguisable).

7 years agoemacs: tree: remove binding for pressing button in message pane
Mark Walters [Sun, 13 Nov 2016 14:08:47 +0000 (14:08 +0000)]
emacs: tree: remove binding for pressing button in message pane

We want to use "e" for editting postponed messages in show, and in
tree view, so remove the binding for the function which does

     (In message pane) Activate BUTTON or button at point

7 years agoemacs: rename notmuch-address-completion-hook to notmuch-address-post-completion...
David Bremner [Sun, 13 Nov 2016 12:52:17 +0000 (08:52 -0400)]
emacs: rename notmuch-address-completion-hook to notmuch-address-post-completion-functions

Apparently it is a (not completely adhered to) emacs convention [1] that
only hooks that don't take arguments end in 'hook'

[1]: https://www.gnu.org/software/emacs/manual/html_node/elisp/Hooks.html

7 years agocompletion: complete mimetype: search prefix
Jani Nikula [Wed, 2 Nov 2016 18:46:47 +0000 (20:46 +0200)]
completion: complete mimetype: search prefix

Use /etc/mime.types if available, parsed using a sed one-liner, and
fall back to a handful of common types otherwise.

7 years agoemacs: add notmuch-address-post-completion-hook
David Bremner [Fri, 4 Nov 2016 01:02:43 +0000 (22:02 -0300)]
emacs: add notmuch-address-post-completion-hook

This hook can be used to update the message based on the results of
address completion. For example using message-templ or gnus-alias to set
the From address based on the To address just completed.

The post-completion command is added to the notmuch-company backend to
ensure that the hook is also called company completion is started
without going through notmuch-address-expand-name. See the docstring of
`company-backends' for more information.

7 years agoemacs: tree: use message pane decryption state for replies
Mark Walters [Wed, 21 Sep 2016 15:49:19 +0000 (16:49 +0100)]
emacs: tree: use message pane decryption state for replies

This makes replying to a message in tree view, use the decrypted state
from the message pane if it is open. Previously it just used the
global decryption state from notmuch-crypto-process-mime.

In particular if notmuch-crypto-process-mime is nil, and the user
views the messages (which doesn't decrypt), toggles decryption in the
message pane, and then replies, the reply will be decrypted.

7 years agoemacs: tree: allow the user to decrypt the message pane
Mark Walters [Wed, 21 Sep 2016 15:49:18 +0000 (16:49 +0100)]
emacs: tree: allow the user to decrypt the message pane

This makes $ in the tree pane toggle decryption in the message
pane. Without this the user can only decrypt the message pane by
switching to it, or by setting decryption on globally by setting
notmuch-crypto-process-mime to t.

7 years agonotmuch-emacs-mua: add support for mailto: URL handling
Jani Nikula [Sat, 22 Oct 2016 11:22:49 +0000 (14:22 +0300)]
notmuch-emacs-mua: add support for mailto: URL handling

Add support for composing an email in the Notmuch Emacs UI using a
mailto: URL. The mailto: URL mode is mutually exclusive with
specifying other message modifying parameters and positional
arguments.

7 years agoemacs: make faces readable on dark backgrounds.
Matt Armstrong [Fri, 28 Oct 2016 22:31:42 +0000 (15:31 -0700)]
emacs: make faces readable on dark backgrounds.

The notmuch-tag-flagged, notmuch-search-flagged-face and
notmuch-crypto-part-header faces defaulted to "blue", which is nearly
unreadable when a dark background is in use.  This is addressed by using
"LightBlue1" for dark backgrounds.

As a side effect, these faces are now no-op definitions for grayscale or
mono displays.

7 years agocli: try to run external notmuch- prefixed commands as subcommands
Jani Nikula [Sat, 22 Oct 2016 12:50:05 +0000 (15:50 +0300)]
cli: try to run external notmuch- prefixed commands as subcommands

If the given subcommand is not known to notmuch, try to execute
external notmuch-<subcommand> instead. This allows users to have their
own notmuch related tools be run via the notmuch command, not unlike
git does. Also notmuch-emacs-mua will be executable via 'notmuch
emacs-mua'.

By design, this does not allow notmuch's own subcommands to be
overriden using external commands.

7 years agoemacs: make notmuch-search-tag tag the region when called non-interactively.
Mark Walters [Sun, 16 Oct 2016 16:12:23 +0000 (17:12 +0100)]
emacs: make notmuch-search-tag tag the region when called non-interactively.

The normal tag commands in search mode tag the all threads meeting the
region when called interactively. This makes them do the same when
called non-interactively. This is a change in the api.

7 years agoMerge branch 'release'
David Bremner [Wed, 26 Oct 2016 00:57:23 +0000 (21:57 -0300)]
Merge branch 'release'

merge interesting buffers bugfix from release

7 years agolib: replace deprecated xapian call 'flush()' with 'commit()'
David Bremner [Wed, 5 Oct 2016 11:34:33 +0000 (08:34 -0300)]
lib: replace deprecated xapian call 'flush()' with 'commit()'

This will make notmuch incompatible with Xapian before 1.1.0, which is
more than 6 years old this point.

7 years agotest/test-lib.sh: execute basename(1)s lazier in test_expect_equal_file ()
Tomi Ollila [Sun, 9 Oct 2016 20:36:07 +0000 (23:36 +0300)]
test/test-lib.sh: execute basename(1)s lazier in test_expect_equal_file ()

Moved the 2 basename(1) executions to the test failure branch in
test_expect_equal_file ().

The output of basename(1) executions in function test_expect_equal_file ()
are only used when tests fails -- when all tests pass these 2 basename(1)
executions are no longer done at all.

7 years agoemacs: tree: make tag updates show in the message pane
Mark Walters [Sat, 15 Oct 2016 18:25:19 +0000 (19:25 +0100)]
emacs: tree: make tag updates show in the message pane

This makes tag changes appear in the message pane as well as in the
tree window.

Note that the message pane is reloaded each time a message is viewed
so the tags shown in the message pane can still be different from
those in the tree window. Usually this will just be that the tag
change is still shown as a change (strikethough underline etc) in the
tree window, and are shown after the change in the message
pane. However, if something else updates the database then the tags
shown can be genuinely different.

7 years agoemacs: interesting-buffer bugfixes/updates
Mark Walters [Sat, 22 Oct 2016 12:10:04 +0000 (13:10 +0100)]
emacs: interesting-buffer bugfixes/updates

The command notmuch-interesting-buffer has got out of date -- it
doesn't mention notmuch-tree, and it still refers to message-mode not
notmuch-message-mode. Update both of these.

This fixes the bug that notmuch-cycle-notmuch-buffers does not include
notmuch-tree or notmuch-message-mode buffers in its cycling.

7 years agodevel: Document emacs keybindings
Mark Walters [Sun, 23 Oct 2016 08:38:21 +0000 (09:38 +0100)]
devel: Document emacs keybindings

This adds a file under devel listing all the keybindings sorted by key
in the main three modes (search, show and tree).

To reduce clutter it only lists the single key "unmodified"
keybindings: I think all our uses of prefixes and modifiers are
natural variants of the unmodified binding (eg M-n compared to n in
show mode)

This should make easier to see what keybindings are available when
adding new features.

7 years agoMerge tag '0.23.1'
David Bremner [Mon, 24 Oct 2016 01:24:08 +0000 (22:24 -0300)]
Merge tag '0.23.1'

notmuch 0.23.1 release

7 years agofinalize release 0.23.1 0.23.1
David Bremner [Mon, 24 Oct 2016 01:06:39 +0000 (22:06 -0300)]
finalize release 0.23.1

7 years agoAdd notmuch-show--build-queries.
Matt Armstrong [Wed, 19 Oct 2016 22:08:15 +0000 (15:08 -0700)]
Add notmuch-show--build-queries.

notmuch-show--build-buffer now queries a list of queries built by the
former.  This simplifies the logic.  It also provides an easy place to
experiment with alternate sets of queries for given notmuch-show-*
variables (e.g. users can use advice-add to do so in a surgical way).

7 years agoMerge in test-suite, docstring fixes, release prep
David Bremner [Sat, 22 Oct 2016 15:44:39 +0000 (12:44 -0300)]
Merge in test-suite, docstring fixes, release prep

7 years agodebian: start changelog stanza for 0.23.1
David Bremner [Sat, 22 Oct 2016 15:39:11 +0000 (12:39 -0300)]
debian: start changelog stanza for 0.23.1

7 years agoversion: bump to 0.23.1
David Bremner [Sat, 22 Oct 2016 15:35:25 +0000 (12:35 -0300)]
version: bump to 0.23.1

7 years agoNEWS for two bugfixes
Mark Walters [Sat, 22 Oct 2016 06:45:17 +0000 (07:45 +0100)]
NEWS for two bugfixes

This adds news items for the two bugs

    emacs: search face bugfix
and
    emacs: fix notmuch-search-line-faces defcustom

7 years agoExpand docstrings about fcc using notmuch-insert
Keith Amidon [Wed, 19 Oct 2016 10:05:19 +0000 (03:05 -0700)]
Expand docstrings about fcc using notmuch-insert

This commit expands docstrings for notmuch-fcc-dirs and
notmuch-maildir-fcc-with-notmuch-insert to describe how quoted strings
are processed and make the ability to configure sent folders containing
whitespace more discoverable.

7 years agotest: use vt100 as "smart" terminal for known dumb/unknown terminals
Tomi Ollila [Thu, 20 Oct 2016 08:19:45 +0000 (11:19 +0300)]
test: use vt100 as "smart" terminal for known dumb/unknown terminals

Otherwise use whatever user environment has set for TERM so
that there is more chance to test on users' actual environments.

7 years agotest-lib.sh: rename $DTACH_TERM to $SMART_TERM
Tomi Ollila [Thu, 20 Oct 2016 08:19:44 +0000 (11:19 +0300)]
test-lib.sh: rename $DTACH_TERM to $SMART_TERM

7 years agoMerge emacs face fixes and NEWS
David Bremner [Wed, 19 Oct 2016 11:44:35 +0000 (08:44 -0300)]
Merge emacs face fixes and NEWS

7 years agoNEWS for 0.23.1
David Bremner [Wed, 12 Oct 2016 02:01:56 +0000 (23:01 -0300)]
NEWS for 0.23.1

7 years agoemacs: search face bugfix
Mark Walters [Wed, 12 Oct 2016 07:39:21 +0000 (08:39 +0100)]
emacs: search face bugfix

In commit 2a7b11b064233afc4feead876fa396e3c18a6b91 the default faces
for unread and flagged were accidentally swapped. This swaps them back.

7 years agoemacs: fix notmuch-search-line-faces defcustom
Mark Walters [Sat, 15 Oct 2016 09:40:48 +0000 (10:40 +0100)]
emacs: fix notmuch-search-line-faces defcustom

In commit 2a7b11b064233afc4feead876fa396e3c18a6b91 the default value
for notmuch-search-line-faces was changed so that it didn't match the
specification in the corresponding defcustom. This meant that it was
difficult for the user to customize this variable as they got a type
mismatch error.

Note anyone who had already customised this variable would not see
this bug as their customisation would match the defcustom.

7 years agoemacs: add global keybinding M-= for refresh all buffers
Mark Walters [Sat, 15 Oct 2016 07:32:46 +0000 (08:32 +0100)]
emacs: add global keybinding M-= for refresh all buffers

We can't use c-u = as some of the notmuch-show refresh function
already uses that. This is a global keybinding for a relatively
infrequent function but M-= seems unlikely to cause conflicts.

7 years agoemacs: notmuch-lib: add refresh all buffers function
Ioan-Adrian Ratiu [Sat, 15 Oct 2016 07:32:45 +0000 (08:32 +0100)]
emacs: notmuch-lib: add refresh all buffers function

notmuch-refresh-all-buffers calls each buffer's major mode specific
refresh function using the generic notmuch-refresh-this-buffer function.

Since the earlier changesets have stopped the refresh functions from
forcing the buffers to be redisplayed this can refresh buffers that
are not currently displayed without disturbing the user.  This is very
useful for silent async background updating the emacs display when new
mail is fetched.

Signed-off-by: Ioan-Adrian Ratiu <adi@adirat.com>
7 years agoemacs: notmuch-show: refresh all windows displaying buffer
Ioan-Adrian Ratiu [Sat, 15 Oct 2016 07:32:44 +0000 (08:32 +0100)]
emacs: notmuch-show: refresh all windows displaying buffer

This updates all windows displaying a notmuch-show buffer when the
buffer refresh function is called.

Each window displaying a notmuch-show buffer has its own currently
displayed message based on the (point) location. We store the state
of all displayed windows when refreshing a notmuch-show buffer and
re-apply the current shown message (point) for all windows.

Implementation note: Each window has it's own (point) value, besides
the buffer's (point) value. Sometimes these values are identical like
in the case where a single window displays a buffer. When multiple
windows display a buffer, (point) returns each window's specific value.
What we are storing in this changeset is the window values not the
buffer point values. The buffer's point is returned only if no window
is displaying the buffer, a case we do not care about here.

Signed-off-by: Ioan-Adrian Ratiu <adi@adirat.com>
7 years agoemacs: notmuch-search-refresh-view: reuse buffer
Ioan-Adrian Ratiu [Sat, 15 Oct 2016 07:32:43 +0000 (08:32 +0100)]
emacs: notmuch-search-refresh-view: reuse buffer

There's no reason to completely kill a buffer while refreshing its
search results because the buffer name is constant between refreshes
(based on the search query), only its contents may change and notmuch
search kills all local variables, so it's safe to reuse.

Reusing the same buffer also makes it possible to do things like
refreshing a buffer which is not focused or even not shown in any
window - this will be used in the next commits to add auto-refresh
capabilities to all existing notmuch buffers + a function to call
after syncing mail to refresh everything.

Signed-off-by: Ioan-Adrian Ratiu <adi@adirat.com>
7 years agoemacs: notmuch-search: add no-display functionality
Ioan-Adrian Ratiu [Sat, 15 Oct 2016 07:32:42 +0000 (08:32 +0100)]
emacs: notmuch-search: add no-display functionality

If no-display is non-nil when calling notmuch-search then do not force
the search buffer to be displayed.

Signed-off-by: Ioan-Adrian Ratiu <adi@adirat.com>
7 years agoemacs: hello: stop update from forcing the buffer to be displayed
Mark Walters [Sat, 15 Oct 2016 07:32:41 +0000 (08:32 +0100)]
emacs: hello: stop update from forcing the buffer to be displayed

Make the notmuch-hello refresh function (notmuch-hello-update) not
force the buffer to be displayed. All the callers call it when the
buffer is already displayed so it will only affect non-interactive
callers. Since it is just a trivial wrapper of notmuch-hello anyone
who wants to force the buffer to be displayed should just call
notmuch-hello.

7 years agoemacs: make the refresh functions more consistent
Mark Walters [Sat, 15 Oct 2016 07:32:40 +0000 (08:32 +0100)]
emacs: make the refresh functions more consistent

The different refreshed functions were called differently: some were
called interactively and some were not. Make them all interactive.

7 years agoemacs: tree: make refresh use generic binding
Mark Walters [Sat, 15 Oct 2016 07:32:39 +0000 (08:32 +0100)]
emacs: tree: make refresh use generic binding

Not using the generic binding is an anomaly from when tree was in
contrib (as pick).

7 years agoFix reply to encrypted mail when discouraging plain text.
Matthew Lear [Tue, 11 Oct 2016 21:24:30 +0000 (22:24 +0100)]
Fix reply to encrypted mail when discouraging plain text.

If an encrypted multipart message is received which contains html and
notmuch-multipart/alternative-discouraged is set to discourage "text/plain",
any encrypted parts are not decrypted during generation of the reply
text. This fixes that problem by making sure notmuch-mua-reply does
that.

7 years agoemacs: jump: make multilevel keys do multilevel jump
Mark Walters [Sat, 15 Oct 2016 11:50:42 +0000 (12:50 +0100)]
emacs: jump: make multilevel keys do multilevel jump

notmuch jump allows the user to specify a key sequence rather than
just a single key for its bindings. However, it doesn't show what has
already been typed so it can be difficult to see what has
happened. This makes each key press appear, and the jump menu reduce
to the possible follow up keys.

We also bind backspace (emacs symbol DEL) to go back up a level in the
subjumpmaps, and to exit from the top level.