unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 0/2] emacs allow save and load of the address-completions
@ 2016-11-20 16:50 Mark Walters
  2016-11-20 16:50 ` [PATCH 1/2] emacs: address: move address-full-harvest-finished to a function Mark Walters
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mark Walters @ 2016-11-20 16:50 UTC (permalink / raw)
  To: notmuch

This series adds a load/save functionality for the address
completions. This avoids the slow and poor completion provided until
the full address-hash has been generated -- this can take some time,
(over a minute on my machine), and is annoying if you frequently
restart emacs (e.g. when debugging things).

Although the patch is quite large it is relatively simple: essentially
a "print" to save, and a "read" to load. I have tried quite hard to
stop over-writing existing files, and to make sure the user does not
get surprising results if they change settings or the address
completion is upgraded in some way (e.g., we store the frequency of
each match in the map).

By default the save/load is switched off: this avoids accidental
privacy leaks, but does make it harder for users to discover.

Best wishes

Mark



Mark Walters (2):
  emacs: address: move address-full-harvest-finished to a function
  emacs: address: save hash

 emacs/notmuch-address.el | 85 ++++++++++++++++++++++++++++++++++++++++++++++--
 emacs/notmuch-company.el |  4 +--
 2 files changed, 84 insertions(+), 5 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-28  2:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-20 16:50 [PATCH 0/2] emacs allow save and load of the address-completions Mark Walters
2016-11-20 16:50 ` [PATCH 1/2] emacs: address: move address-full-harvest-finished to a function Mark Walters
2016-11-20 16:50 ` [PATCH 2/2] emacs: address: save hash Mark Walters
2017-01-28  2:32 ` [PATCH 0/2] emacs allow save and load of the address-completions David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).