[PATCH] emacs: Make notmuch-message-mode play nicely with flyspell

2015-11-03 Thread Michal Sojka
Flyspell mode uses a special setting for message-mode to not spell-check message headers except Subject. Apply this setting also to notmuch-message-mode. --- emacs/notmuch-mua.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index fd98ea4..466edd

[RFC 1/5] cli: fix function name in notmuch new debug logging

2015-11-03 Thread Jani Nikula
add_files_recursive has been renamed add_files long ago. --- notmuch-new.c| 15 +++ test/T050-new.sh | 40 2 files changed, 27 insertions(+), 28 deletions(-) diff --git a/notmuch-new.c b/notmuch-new.c index d45d0af8642a..e5037761c8ee 100644

[RFC 5/5] cli: print number of ignored non-mails encountered in notmuch new scan

2015-11-03 Thread Jani Nikula
Also advise the user how to ignore them explicitly. --- notmuch-new.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/notmuch-new.c b/notmuch-new.c index d06f9c906fc6..8d942507364a 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -54,6 +54,7 @@ typedef struct { int total_files;

[RFC 4/5] cli: add notmuch config append command to append to string list configs

2015-11-03 Thread Jani Nikula
Make it easy to add new entries to string list configs. For example, 'notmuch config append new.ignore my-non-mail-file'. --- notmuch-config.c | 47 +++ 1 file changed, 47 insertions(+) diff --git a/notmuch-config.c b/notmuch-config.c index d252bb25d4bb

[RFC 3/5] cli: support shell globbing patterns in new.ignore

2015-11-03 Thread Jani Nikula
Keep the existing strcmp on the basename for backwards compatibility, and additionally use the new.ignore entries as fnmatch(3) patterns on the absolute filename. Note that it's not enough to add e.g. "foo*bar" to the list; you will need to do "*/foo*bar" to match the path also. --- notmuch-new.c

[RFC 0/5] globbing on new.ignore etc.

2015-11-03 Thread Jani Nikula
This series adds globbing support to new.ignore using fnmatch(3). Just an RFC for starters because it's missing tests and man pages etc. There's some cleanup patches first, and then 'notmuch config append' command to make it easier to add new ignores to the list. BR, Jani. Jani Nikula (5): cli

[RFC 2/5] cli: don't call _entry_in_ignore_list twice in count files debug

2015-11-03 Thread Jani Nikula
Split file ignores in count_files to fixed and user configured in order to not have to call _entry_in_ignore_list twice when debugging is enabled. Minor detail. --- notmuch-new.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/notmuch-new.c b/notmuch-new.c i

[PATCH] emacs: Fix regression in (notmuch-)message-mode initialization

2015-11-03 Thread Michal Sojka
Recent addition of notmuch-message-mode introduced a few regressions. I use message-setup-hook to set some buffer local variables and this stopped working. The reason is that notmuch-message-mode, which cleans all buffer local variables, is called after calling message-mail, which calls the message