Re: How do you synchronize your notmuch tags across multiple machines?

2019-01-13 Thread Ioan-Adrian Ratiu
My solution to this problem is to have only one notmuch instance run on a remote VPS and connect to it via "thin" notmuch-emacs front-ends, very similar to [1]. It has been working very well for the last few years. [1] https://notmuchmail.org/remoteusage/ On Mon, 17 Dec 2018, Dan Čermák

Re: [PATCH v2 00/11] Add filesize index, search, sort & emacs UI

2017-05-23 Thread Ioan-Adrian Ratiu
On Tue, 23 May 2017, Jani Nikula <j...@nikula.org> wrote: > On Fri, 19 May 2017, Ioan-Adrian Ratiu <a...@adirat.com> wrote: >> I'd like to add a feature to quickly work with mail file sizes >> because using custom scripts / external programs which parse >>

Re: [PATCH v2 03/11] notmuch-search: add filesize based sort order

2017-05-22 Thread Ioan-Adrian Ratiu
On Fri, 19 May 2017, Tomi Ollila <tomi.oll...@iki.fi> wrote: > On Fri, May 19 2017, Ioan-Adrian Ratiu wrote: > >> With this it now becomes possible to order the search results by >> filesize using the --sort=biggest-first/smallest-first args. > > Quick drive-by com

[PATCH v2 10/11] emacs: notmuch-search: add display thread sizes capability

2017-05-18 Thread Ioan-Adrian Ratiu
By default this is off because it's tiresome to look at all those numbers in every search view. It's much more pleasant to have it enabled by default in notmuch-show even if you apply searches and sort results based on file size. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> ---

[PATCH v2 11/11] emacs: notmuch-show: add filesize to headerline

2017-05-18 Thread Ioan-Adrian Ratiu
Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- emacs/notmuch-show.el | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index c670160d..f2cb09d2 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@

[PATCH v2 09/11] notmuch-show: export message filesize

2017-05-18 Thread Ioan-Adrian Ratiu
Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- notmuch-show.c | 5 + 1 file changed, 5 insertions(+) diff --git a/notmuch-show.c b/notmuch-show.c index 7021008e..8229c85c 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -91,6 +91,7 @@ format_message_sprinter (sprinter

[PATCH v2 08/11] notmuch-search: output total_filesize thread result

2017-05-18 Thread Ioan-Adrian Ratiu
This works for all the search output formats (sexp, json, text). Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- devel/schemata | 1 + notmuch-search.c | 6 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/devel/schemata b/devel/schemata index 00ebb7a6..c9

[PATCH v2 07/11] lib: thread: add thread total size function

2017-05-18 Thread Ioan-Adrian Ratiu
Given a thread object this function computes the total disk space used by all messages contained in the thread. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- lib/notmuch.h | 7 +++ lib/thread.cc | 12 2 files changed, 19 insertions(+) diff --git a/lib/notmuch.h

[PATCH v2 03/11] notmuch-search: add filesize based sort order

2017-05-18 Thread Ioan-Adrian Ratiu
With this it now becomes possible to order the search results by filesize using the --sort=biggest-first/smallest-first args. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- lib/notmuch.h| 8 lib/query.cc | 6 ++ notmuch-search.c | 2 ++ 3 files changed, 16 inse

[PATCH v2 06/11] sprinter: add unsigned_long printer function

2017-05-18 Thread Ioan-Adrian Ratiu
We need to output unsigned long values for message and thread (sum of all message's) file sizes. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- sprinter-json.c | 9 + sprinter-sexp.c | 9 + sprinter-text.c | 9 + sprinter.h | 1 + 4 files chang

[PATCH v2 05/11] emacs: notmuch-search: add filesize sorting

2017-05-18 Thread Ioan-Adrian Ratiu
for a saved search (via the :sort-order property). Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- emacs/notmuch-hello.el | 9 ++--- emacs/notmuch-lib.el | 4 +++- emacs/notmuch.el | 12 ++-- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/emacs/n

[PATCH v2 04/11] emacs: make notmuch-search-oldest-first generic

2017-05-18 Thread Ioan-Adrian Ratiu
logic. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- doc/notmuch-emacs.rst | 4 ++-- emacs/notmuch-hello.el | 15 +++ emacs/notmuch-jump.el | 11 +-- emacs/notmuch-lib.el | 7 --- emacs/notmuch-tree.el | 2 +- emacs/notmuch.el

[PATCH v2 01/11] lib: message: index message file sizes

2017-05-18 Thread Ioan-Adrian Ratiu
Parse & store the file sizes inside notmuch_message_t objects while indexing. This is a useful foundation to build upon to provide per message and per thread size statistics, sorting and filtering mesages based on their sizes, etc. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com>

[PATCH v2 00/11] Add filesize index, search, sort & emacs UI

2017-05-18 Thread Ioan-Adrian Ratiu
I'd like to add a feature to quickly work with mail file sizes because using custom scripts / external programs which parse maildir contents is slow, and non-intuitive, especially since notmuch does incremental parsing and has such a nice emacs UI. Ioan-Adrian Ratiu (11): lib: message: index

[PATCH v2 02/11] lib: database: store message filesize & add range processor

2017-05-18 Thread Ioan-Adrian Ratiu
n filesize value, I did not have the time to test a "hybrid" database where just some of the messages have the value. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- lib/database-private.h | 1 + lib/database.cc| 6 ++ 2 files changed, 7 insertions(+) diff --git

[PATCH 3/3] emacs: notmuch-search: add filesize sorting

2017-05-13 Thread Ioan-Adrian Ratiu
, but you can't toggle from oldest-first to biggest-first. I've found this kind of toggling confusing so I've prohibited it, but enabling it is trivial if need be. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- emacs/notmuch-hello.el | 9 ++--- emacs/notmuch-lib.el | 4 +++-

[PATCH 2/3] emacs: make notmuch-search-oldest-first generic

2017-05-13 Thread Ioan-Adrian Ratiu
logic. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- doc/notmuch-emacs.rst | 4 ++-- emacs/notmuch-hello.el | 15 +++ emacs/notmuch-jump.el | 11 +-- emacs/notmuch-lib.el | 7 --- emacs/notmuch-tree.el | 2 +- emacs/notmuch.el

[PATCH 1/3] notmuch-search: implement 'filesize' search

2017-05-13 Thread Ioan-Adrian Ratiu
in the results/show buffer. Another interesting idea would be to offer some optional statistics in the UI buffers like we do for saved searches `query-count` to show stuff like disk space occupied by mail files maching a search, etc. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- lib/da

[RFC][PATCH] notmuch-search: add file size search feature

2017-05-13 Thread Ioan-Adrian Ratiu
e ID (only the MsgID determines whether files are "duplicates", right?). Any ideas how best to store/handle duplicates? Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- lib/database-private.h | 1 + lib/database.cc| 6 ++ lib/index.cc | 10 ++

[PATCH v6 0/2] Refactor config reading to support non-regular files

2016-12-10 Thread Ioan-Adrian Ratiu
Changes since v5 (based on Tomi's feedback): * Return the same error message when config file is not found to avoid breaking test T040-setup.1. Ioan-Adrian Ratiu (1): notmuch-config: replace config reading function Jani Nikula (1): cli: abstract config file reading to a separate

[PATCH v6 1/2] cli: abstract config file reading to a separate function

2016-12-10 Thread Ioan-Adrian Ratiu
From: Jani Nikula Simplify and fix the coding style while at it. --- notmuch-config.c | 65 ++-- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/notmuch-config.c b/notmuch-config.c index e5d42a0..bd52790 100644

[PATCH v6 2/2] notmuch-config: replace config reading function

2016-12-10 Thread Ioan-Adrian Ratiu
rity sensitive users: If someone has private information in the config file, it can be encrypted on disk, then decrypted in RAM and passed through a pipe directly to notmuch without the use of intermediate plain text files. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com>

[PATCH v5 1/2] cli: abstract config file reading to a separate function

2016-12-08 Thread Ioan-Adrian Ratiu
From: Jani Nikula Simplify and fix the coding style while at it. --- notmuch-config.c | 65 ++-- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/notmuch-config.c b/notmuch-config.c index e5d42a0..bd52790 100644

[PATCH v5 2/2] notmuch-config: replace config reading function

2016-12-08 Thread Ioan-Adrian Ratiu
rity sensitive users: If someone has private information in the config file, it can be encrypted on disk, then decrypted in RAM and passed through a pipe directly to notmuch without the use of intermediate plain text files. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com>

[PATCH v5 0/2] Refactor config reading to support non-regular files

2016-12-08 Thread Ioan-Adrian Ratiu
Changes since v4: (based on Tomi's feedback): * Replaced strlen with config_len in the call to g_key_file_load_from_data() * Added a null pointer check and minor whitespace fixes before exiting get_config_from_file Ioan-Adrian Ratiu (1): notmuch-config: replace config reading

[PATCH v4 1/2] cli: abstract config file reading to a separate function

2016-12-05 Thread Ioan-Adrian Ratiu
From: Jani Nikula Simplify and fix the coding style while at it. --- notmuch-config.c | 65 ++-- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/notmuch-config.c b/notmuch-config.c index e5d42a0..bd52790 100644

[PATCH v4 2/2] notmuch-config: replace config reading function

2016-12-05 Thread Ioan-Adrian Ratiu
rity sensitive users: If someone has private information in the config file, it can be encrypted on disk, then decrypted in RAM and passed through a pipe directly to notmuch without the use of intermediate plain text files. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com>

[PATCH v4 0/2] Refactor config reading to support non-regular files

2016-12-05 Thread Ioan-Adrian Ratiu
Changes since v3: (thanks Tomi for the awesome feedback): * Rewrote the config-reading function's exit logic to use a 'linux kernel' style & cleanup based on goto's. * Minor variable NULL initialization change, comment removal. Ioan-Adrian Ratiu (1): notmuch-config: replace co

[PATCH v3 1/2] cli: abstract config file reading to a separate function

2016-12-04 Thread Ioan-Adrian Ratiu
From: Jani Nikula Simplify and fix the coding style while at it. --- notmuch-config.c | 65 ++-- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/notmuch-config.c b/notmuch-config.c index e5d42a0..bd52790 100644

[PATCH v3 2/2] notmuch-config: replace config reading function

2016-12-04 Thread Ioan-Adrian Ratiu
rity sensitive users: If someone has private information in the config file, it can be encrypted on disk, then decrypted in RAM and passed through a pipe directly to notmuch without the use of intermediate plain text files. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com>

[PATCH v3 0/2] Refactor config reading to support non-regular files

2016-12-04 Thread Ioan-Adrian Ratiu
Changes since v2 (based on Tomi's feedback): * Rewrote config reading loop to use fread instead of fgets (behaves the same but the code looks much better now). Ioan-Adrian Ratiu (1): notmuch-config: replace config reading function Jani Nikula (1): cli: abstract config file reading

[PATCH v2 2/2] notmuch-config: replace config reading function

2016-11-06 Thread Ioan-Adrian Ratiu
rity sensitive users: If someone has private information in the config file, it can be encrypted on disk, then decrypted in RAM and passed through a pipe directly to notmuch without the use of intermediate plain text files. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com>

[PATCH v2 1/2] cli: abstract config file reading to a separate function

2016-11-06 Thread Ioan-Adrian Ratiu
From: Jani Nikula Simplify and fix the coding style while at it. --- notmuch-config.c | 65 ++-- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/notmuch-config.c b/notmuch-config.c index e5d42a0..bd52790 100644

[PATCH v2 0/2] Refactor config reading to support non-regular files

2016-11-06 Thread Ioan-Adrian Ratiu
Changes since v1 (Based on Jani's feedback): * Incorporated Jani's patch into this series and rebased my changes on top Ioan-Adrian Ratiu (1): notmuch-config: replace config reading function Jani Nikula (1): cli: abstract config file reading to a separate function notmuch-config.c | 94

[PATCH] notmuch-config: replace config reading function

2016-11-05 Thread Ioan-Adrian Ratiu
rity sensitive users: If someone has private information in the config file, it can be encrypted on disk, then decrypted in RAM and passed through a pipe directly to notmuch without the use of intermediate plain text files. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com>

[PATCH v4 5/6] emacs: add no-display arg to generic refresh functions

2016-10-08 Thread Ioan-Adrian Ratiu
. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- emacs/notmuch-lib.el | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 2d27e56..e1b5066 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -418,17 +

[PATCH v4 2/6] emacs: notmuch-search-refresh-view: reuse buffer

2016-10-08 Thread Ioan-Adrian Ratiu
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

[PATCH v4 3/6] emacs: notmuch-search: add no-display functionality

2016-10-08 Thread Ioan-Adrian Ratiu
If no-display is non-nil when updating a notmuch-search buffer, do not force bring to foreground in a window said search results buffer. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- emacs/notmuch.el | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a

[PATCH v4 4/6] emacs: notmuch-show: refresh all windows displaying buffer

2016-10-08 Thread Ioan-Adrian Ratiu
, (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 <a...@adirat.

[PATCH v4 1/6] emacs: make the refresh code more consistent

2016-10-08 Thread Ioan-Adrian Ratiu
From: Mark Walters The current refresh code is a little haphazard with some of the refresh functions called interactively, and some not. Some of the refresh functions take arguments and they aren't consistent. This makes all the functions have the same form. ---

[PATCH v4 6/6] emacs: notmuch-lib: add refresh all buffers function

2016-10-08 Thread Ioan-Adrian Ratiu
the buffer-specific refresh functions to work in the background and not bring forward the refreshed buffer in a window. This again is very useful for silent async background updating the emacs display when new mail is fetched. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- emacs/n

[PATCH v4 0/6] Add refresh all buffers functionality

2016-10-08 Thread Ioan-Adrian Ratiu
/10ne1/emacs-config/blob/master/lisp/my-notmuch.el Ioan-Adrian Ratiu (5): emacs: notmuch-search-refresh-view: reuse buffer emacs: notmuch-search: add no-display functionality emacs: notmuch-show: refresh all windows displaying buffer emacs: add no-display arg to generic refresh functions

Re: [PATCH] emacs: make the refresh code more consistent

2016-10-07 Thread Ioan-Adrian Ratiu
On Thu, 06 Oct 2016, Mark Walters wrote: > The current refresh code is a little haphazard with some of the > refresh functions called interactively, and some not. Some of the > refresh functions take arguments and they aren't consistent. > > This makes all the functions

Re: [PATCH v3 3/4] emacs: add refresh buffer optional no-display arg

2016-10-06 Thread Ioan-Adrian Ratiu
On Thu, 06 Oct 2016, Mark Walters <markwalters1...@gmail.com> wrote: > On Thu, 06 Oct 2016, Ioan-Adrian Ratiu <a...@adirat.com> wrote: >> Add an optional no-display arg to the generic buffer refresh function, >> notmuch-refresh-this-buffer, which works the same way

Re: [PATCH v2 0/4] Add refresh all buffers functionality

2016-10-06 Thread Ioan-Adrian Ratiu
On Thu, 06 Oct 2016, Daniel Kahn Gillmor wrote: > > > On Sun 2016-09-25 03:32:08 -0400, Tomi Ollila wrote: >> 2) then, minor commit message related comment: if there is going to be v3, >> in id:20160924200735.25425-2-...@adirat.com adi mentioned 'next patches' >> -- those

[PATCH v3 3/4] emacs: add refresh buffer optional no-display arg

2016-10-06 Thread Ioan-Adrian Ratiu
ared since the last search refresh and have this information updated in real time even when switching buffers. The ultimate goal of this is to have all notmuch buffers auto-refresh when the email client syncs (this function is added in the next commit). Signed-off-by: Ioan-Adrian Ratiu <a.

[PATCH v3 1/4] emacs: reuse buffer when refreshing searches

2016-10-06 Thread Ioan-Adrian Ratiu
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

[PATCH v3 2/4] emacs: notmuch-show: refresh all windows showing a buffer

2016-10-06 Thread Ioan-Adrian Ratiu
and re-apply the current shown message for all windows. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- emacs/notmuch-show.el | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index f2487ab..ac7eb77

[PATCH v3 0/4] Add refresh all buffers functionality

2016-10-06 Thread Ioan-Adrian Ratiu
go in another patch series. Ioan-Adrian Ratiu (4): emacs: reuse buffer when refreshing searches emacs: notmuch-show: refresh all windows showing a buffer emacs: add refresh buffer optional no-display arg emacs: notmuch-lib: add refresh all buffers function emacs/notmuc

[PATCH v3 4/4] emacs: notmuch-lib: add refresh all buffers function

2016-10-06 Thread Ioan-Adrian Ratiu
and this again is very useful when doing periodic timer-based mail syncing. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- emacs/notmuch-lib.el | 15 +++ 1 file changed, 15 insertions(+) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index af6a8f4..01733a2 100644 --- a

Re: [PATCH v2 3/4] emacs: add refresh buffer optional no-display arg

2016-10-06 Thread Ioan-Adrian Ratiu
On Sun, 25 Sep 2016, Mark Walters <markwalters1...@gmail.com> wrote: > On Sat, 24 Sep 2016, Ioan-Adrian Ratiu <a...@adirat.com> wrote: >> Add an optional no-display arg to the generic buffer refresh function, >> notmuch-refresh-this-buffer, which works the same way

Re: [PATCH v2 2/4] emacs: notmuch-show: refresh all windows showing a buffer

2016-09-25 Thread Ioan-Adrian Ratiu
Hi Mark and thank you again for the great feedback. On Sun, 25 Sep 2016, Mark Walters <markwalters1...@gmail.com> wrote: > On Sat, 24 Sep 2016, Ioan-Adrian Ratiu <a...@adirat.com> wrote: >> This updates all windows displaying a notmuch-show buffer when the >> buffer

Re: [PATCH v2 0/4] Add refresh all buffers functionality

2016-09-24 Thread Ioan-Adrian Ratiu
On Sat, 24 Sep 2016, David Bremner <da...@tethera.net> wrote: > Ioan-Adrian Ratiu <a...@adirat.com> writes: > >> On Sat, 24 Sep 2016, Ioan-Adrian Ratiu <a...@adirat.com> wrote: >>> Argh, so right after I posted this I found a bug: for every new window >

Re: [PATCH v2 0/4] Add refresh all buffers functionality

2016-09-24 Thread Ioan-Adrian Ratiu
On Sat, 24 Sep 2016, Ioan-Adrian Ratiu <a...@adirat.com> wrote: > Argh, so right after I posted this I found a bug: for every new window > in which you open the same notmuch-show buffer it creates a new buffer. > > For example if from notmuch-search you open a thread "hello

Re: [PATCH v2 0/4] Add refresh all buffers functionality

2016-09-24 Thread Ioan-Adrian Ratiu
uot; "hello<2>" etc buffer instead of showing a single "hello" buffer for all windows. I'm aware of this issue and I'll fix it in v3, however please if you have time & feedback for v2 I'd greatly appreciate it. Best wishes, Ionel On Sat, 24 Sep 2016, Ioan-Adrian Ratiu <

[PATCH v2 4/4] emacs: notmuch-lib: add refresh all buffers function

2016-09-24 Thread Ioan-Adrian Ratiu
and this again is very useful when doing periodic timer-based mail syncing. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- emacs/notmuch-lib.el | 12 1 file changed, 12 insertions(+) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 6618365..72fee4d 100644 --- a/emacs/n

[PATCH v2 1/4] emacs: reuse buffer when refreshing searches

2016-09-24 Thread Ioan-Adrian Ratiu
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 patches 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

[PATCH v2 3/4] emacs: add refresh buffer optional no-display arg

2016-09-24 Thread Ioan-Adrian Ratiu
ared since the last search refresh and have this information updated in real time even when switching buffers. The ultimate goal of this is to have all notmuch buffers auto-refresh when the email client syncs (this function is added in the next patch). Signed-off-by: Ioan-Adrian Ratiu <a.

[PATCH v2 2/4] emacs: notmuch-show: refresh all windows showing a buffer

2016-09-24 Thread Ioan-Adrian Ratiu
and re-apply the current shown message for all windows. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- emacs/notmuch-show.el | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 641398d..c39065f

[PATCH v2 0/4] Add refresh all buffers functionality

2016-09-24 Thread Ioan-Adrian Ratiu
ssage "Syncing mail in background") (set-process-sentinel (start-process "mbsync" nil "mbsync" "gmail") 'done-sync-sentinel)) (run-with-idle-timer 600 nil 'run-mail-sync) Ioan-Adrian Ratiu (4): emacs: reuse buffer when refreshing search

Re: [PATCH] emacs: add tag jump menu

2016-09-18 Thread Ioan-Adrian Ratiu
On Sun, 18 Sep 2016, Jani Nikula <j...@nikula.org> wrote: > On Sun, 18 Sep 2016, Ioan-Adrian Ratiu <a...@adirat.com> wrote: >> On Sun, 18 Sep 2016, Mark Walters <markwalters1...@gmail.com> wrote: >>> On Sun, 18 Sep 2016, Ioan-Adrian Ratiu <a...@adir

Re: [PATCH] emacs: add tag jump menu

2016-09-18 Thread Ioan-Adrian Ratiu
On Sun, 18 Sep 2016, Mark Walters <markwalters1...@gmail.com> wrote: > On Sun, 18 Sep 2016, Ioan-Adrian Ratiu <a...@adirat.com> wrote: >> Hi >> >> I have implemented something similar in my tree and I really like the >> idea. I have one issue though.

Re: [PATCH] emacs: add tag jump menu

2016-09-18 Thread Ioan-Adrian Ratiu
Hi I have implemented something similar in my tree and I really like the idea. I have one issue though. On Sat, 17 Sep 2016, Mark Walters wrote: > Add a "jump" style menu for doing tagging operations. > --- > > Jani suggested something like this on irc today. This is

Re: [PATCH 4/4] emacs: add refresh all buffers function

2016-09-17 Thread Ioan-Adrian Ratiu
On Fri, 16 Sep 2016, Mark Walters <markwalters1...@gmail.com> wrote: > On Sat, 10 Sep 2016, Ioan-Adrian Ratiu <a...@adirat.com> wrote: >> This new notmuch-refresh-all-buffers function calls each buffer's major >> mode specific refresh function using the generic

Re: [PATCH 2/4] emacs: adjust all types of notmuch show buffers

2016-09-17 Thread Ioan-Adrian Ratiu
Hi and thank you for the feedback! On Fri, 16 Sep 2016, Mark Walters <markwalters1...@gmail.com> wrote: > On Sat, 10 Sep 2016, Ioan-Adrian Ratiu <a...@adirat.com> wrote: >> The current notmuch-show-message-adjust logic only adjusts the buffer >> focused in the current

[PATCH 2/4] emacs: adjust all types of notmuch show buffers

2016-09-10 Thread Ioan-Adrian Ratiu
all buffers feature because you can use similar code to refresh any buffer: (with-current-buffer "*random show buffer*" (notmuch-refresh-this-buffer)) Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- emacs/notmuch-show.el | 11 ++- 1 file changed, 10 insertion

[PATCH 1/4] emacs: reuse buffer when refreshing searches

2016-09-10 Thread Ioan-Adrian Ratiu
is not focused or even not shown in any window - this will be used in the next patches 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 <a...@adirat.com> --- emacs/notmuch.el | 7 ---

[PATCH 0/4] Add refresh all buffers functionality

2016-09-10 Thread Ioan-Adrian Ratiu
'done-sync-sentinel)) (run-with-idle-timer 600 nil 'run-mail-sync) Ioan-Adrian Ratiu (4): emacs: reuse buffer when refreshing searches emacs: adjust all types of notmuch show buffers emacs: add refresh buffer optional no-display arg emacs: add refresh all buffers f

[PATCH 3/4] emacs: add refresh buffer optional no-display arg

2016-09-10 Thread Ioan-Adrian Ratiu
ared since the last search refresh and have this information updated in real time even when switching buffers. The ultimate goal of this is to have all notmuch buffers auto-refresh when the email client syncs (this function is added in the next patch). Signed-off-by: Ioan-Adrian Ratiu <a.

[PATCH 4/4] emacs: add refresh all buffers function

2016-09-10 Thread Ioan-Adrian Ratiu
in the background and this again is very useful when doing periodic timer-based mail syncing. Signed-off-by: Ioan-Adrian Ratiu <a...@adirat.com> --- emacs/notmuch-lib.el | 15 +++ 1 file changed, 15 insertions(+) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 6618365..4