From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 0E9186DE0C51 for ; Sun, 20 Nov 2016 08:50:41 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.064 X-Spam-Level: X-Spam-Status: No, score=0.064 tagged_above=-999 required=5 tests=[AWL=-0.066, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GxANoDxDNZZV for ; Sun, 20 Nov 2016 08:50:40 -0800 (PST) Received: from mail-wj0-f195.google.com (mail-wj0-f195.google.com [209.85.210.195]) by arlo.cworth.org (Postfix) with ESMTPS id 2C4686DE0C3A for ; Sun, 20 Nov 2016 08:50:40 -0800 (PST) Received: by mail-wj0-f195.google.com with SMTP id jb2so2207229wjb.3 for ; Sun, 20 Nov 2016 08:50:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=+xOcSpR2Yczos6wnisR1RbUIzLAMsW0xzQlvXVUOfyY=; b=ZmbNbyAEfAteavBbw84922OTsOV/7GUnUmUiRlHVhevdzGdFfKaYLdYSoJSRiwI4kk KdWxb4AiFMKd7Jt/fL0A6rjzaTFek3kXvDOERLdFc6aoq6nJm8cF2Gii3oVSOPkf7PUs e1BOJVyaRmPqyhKn3hfKut2cgz1ZtoB5j64rNLzb2s/hXIL2nuRmqHAAB1mTEPl2G1j1 O5oZuDyNghlYO72UyhYtAWRLGI8g98bOKDMKfcvzuEV9HBvIc7m2p211anWQVSFGGoU7 fsnolcX2zuBIzN0UMkGXkbvtOHGLPM01UX8yteqAvxYS8/vTdldLSvMGSUdOWC3mnveq oKag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+xOcSpR2Yczos6wnisR1RbUIzLAMsW0xzQlvXVUOfyY=; b=BU2+txG4IRycU7YHIXs5VNeY24189Zkr3iK97JXi5gbkbOdWEf3htPTNwQASdM7Yxs +cagvAJFtMRA68OzeRN0ezjIwturd6/0wC0T4uQ6FsDmJDtmxOlhzpNJNYcMgAwkYwlQ BdCETToTnO4jddPUHwtwVps2nDFYAm0m+hm7P5OsFJRKhHQkQ3q4nomjhOcSgqKcEVFo A2kFtYdHFwznz4lOnpqk3uhqdIFKibpdjew9WKk6skt/qSGWeitxdB+yw/gxB2+hFJfP /q6KpCgjn5bhWqO6L+Og51Edz63zrIy/iISq95iSUUWGbVbXvT+o3k6TLLK/Rvz1V8xu NcRA== X-Gm-Message-State: AKaTC0182lcDgy7pIDtcqf/zLExDMIxUzdW8U+kyotx9fwRv+T8PLm+SntPIgXmdQTtfFA== X-Received: by 10.194.113.2 with SMTP id iu2mr7319650wjb.32.1479660638132; Sun, 20 Nov 2016 08:50:38 -0800 (PST) Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162]) by smtp.gmail.com with ESMTPSA id g10sm20171438wjw.18.2016.11.20.08.50.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Nov 2016 08:50:37 -0800 (PST) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH 0/2] emacs allow save and load of the address-completions Date: Sun, 20 Nov 2016 16:50:32 +0000 Message-Id: <1479660634-17956-1-git-send-email-markwalters1009@gmail.com> X-Mailer: git-send-email 2.1.4 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Nov 2016 16:50:41 -0000 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