From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.tangents Subject: Re: [ANNOUNCE] mailaprop: modern popup-style autofill for email addresses Date: Mon, 15 Jan 2018 23:02:54 -0600 Message-ID: <878tcy8kg1.fsf@red-bean.com> References: <87r2qr9cq1.fsf@red-bean.com> Reply-To: Karl Fogel NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1516079220 10145 195.159.176.226 (16 Jan 2018 05:07:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 16 Jan 2018 05:07:00 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Emacs Tangents To: Lars Ingebrigtsen Original-X-From: emacs-tangents-bounces+get-emacs-tangents=m.gmane.org@gnu.org Tue Jan 16 06:06:55 2018 Return-path: Envelope-to: get-emacs-tangents@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebJSP-0001Xn-PY for get-emacs-tangents@m.gmane.org; Tue, 16 Jan 2018 06:06:45 +0100 Original-Received: from localhost ([::1]:35550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebJUN-0000lg-LW for get-emacs-tangents@m.gmane.org; Tue, 16 Jan 2018 00:08:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebJOn-0004lb-M3 for emacs-tangents@gnu.org; Tue, 16 Jan 2018 00:03:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebJOj-0002cE-1p for emacs-tangents@gnu.org; Tue, 16 Jan 2018 00:03:01 -0500 Original-Received: from mail-io0-x235.google.com ([2607:f8b0:4001:c06::235]:33119) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebJOi-0002c0-TQ for emacs-tangents@gnu.org; Tue, 16 Jan 2018 00:02:56 -0500 Original-Received: by mail-io0-x235.google.com with SMTP id t63so15442026iod.0 for ; Mon, 15 Jan 2018 21:02:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:reply-to:date:in-reply-to :message-id:user-agent:mime-version; bh=BikfR/g8EbYT/TglK3eYYDlqkQR6u+P9bKEbRgsmmMM=; b=NoQmJE5PI0OlwxoZoA+u32a3uLkY5o/QVVLSoHQw0Gfm2o1jUlnIqwUxKJlPnUAyrY ZywWbT516M/lMg54SBEboGEpUppXIAk9MVYuFJkYt/Hu2gXGqQzM5+0Iwj7bFMgGv/aQ xfdHw8DDpciZx8KEFAKQdpVQMbY5uv1B14ka6MpQZyh+DSVvGP0AoPNV3SV40m9p3Ebg JOf4awSYh8Q0v8yZkMVAIHW4oM12vBeRssPg5rp76bxAR9YijTnwQ0gm9rdB4GQMi2Nn rk6bbGV17lsdA/wtaiH2pYl3D41u2vdEMft2q05CNAvNKKlYSk/yrCXiJn8uodz/WrUO +OZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:reply-to :date:in-reply-to:message-id:user-agent:mime-version; bh=BikfR/g8EbYT/TglK3eYYDlqkQR6u+P9bKEbRgsmmMM=; b=L2dJP5ccEp1msUwyLD+oGVEZQq59oywf8Fwy4l9pM+z7q/b/5nsRfdYGqXV/ZDFIs1 nDyoKmwHD/9fbZGDJe46m4hhhaP71huzm//Gpa5suGF6NxjryIKwgGUnnq0N/BOFXNNY szgfMf7pNg+bXkJQ3C3FC8M2LTsub31RraSUpm+zbXAHQyRuhJ72crLxnFRXgu1JKK7d 30Pk61BD09iE1SZmYqIHeI4F8rbKfxiYm6JZLvpg2J9Ge20vSlfefJHYJnPwaXcG6Tza eUDYxxKuDbYOPiytlUvMjlWUzLKlfo8b7DVmRQdbFww0LL6Ypqe94LIvS4xd+RBwzWda Oy4w== X-Gm-Message-State: AKGB3mIfZ2rPxlAsAF3j4ewmG//n5ihjOK0CZkjs2KNVAK+RuzrXOoRh KKBL9xQv51odhhcFLJcgyuz6Iw== X-Google-Smtp-Source: ACJfBos169ErSuSJ6it8Jtsvg5OSQkNm7VK8Dtpug3onBy7JZngmrWI4MHVVbSvu4zd9m/BFGAzZ2Q== X-Received: by 10.107.146.137 with SMTP id u131mr34828482iod.3.1516078975822; Mon, 15 Jan 2018 21:02:55 -0800 (PST) Original-Received: from floss ([2602:306:3707:da30:199a:da91:6a26:7821]) by smtp.gmail.com with ESMTPSA id 27sm196679ios.42.2018.01.15.21.02.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Jan 2018 21:02:55 -0800 (PST) In-Reply-To: (Lars Ingebrigtsen's message of "Tue, 16 Jan 2018 02:17:32 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::235 X-BeenThere: emacs-tangents@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-tangents-bounces+get-emacs-tangents=m.gmane.org@gnu.org Original-Sender: "Emacs-tangents" Xref: news.gmane.org gmane.emacs.tangents:228 Archived-At: Lars Ingebrigtsen writes: >Looks very nice... but the main difference between this and ecomplete >seems to be that ecomplete puts the completions in the echo area and >mailaprop uses a tooltip? Hmm, I can't tell. As of commit 9f22b7d2, ecomplete.el has no function doc strings nor any usage-informing variable doc strings, and the format of ~/.ecompleterc is not documented. From looking at the elisp file, I wasn't immediately sure what ecomplete does :-). I grepped around and found this in doc/misc/message.texi: If you're using @code{ecomplete}, all addresses from @code{To} and @code{Cc} headers will automatically be put into the @file{~/.ecompleterc} file. When you enter text in the @code{To} and @code{Cc} headers, @code{ecomplete} will check out the values stored there and ``electrically'' say what completions are possible. To choose one of these completions, use the @kbd{M-n} command to move down to the list. Use @kbd{M-n} and @kbd{M-p} to move down and up the list, and @kbd{RET} to choose a completion. It seems like ecomplete does something at least similar to what mailaprop does. The main questions I have are: 1) Is there a way to load in existing email history? If I knew the format of the .ecompletrc file, maybe I could make mailaprop.py generate it. Personally, with a million email messages' worth of legacy data, it seems a pity to start collecting addresses from scratch now :-). 2) Does it prioritize the completion list according to some scoring algorithm, so that the most likely candidates are keystrokewise closest? The "(loop for (key count time text) ...)" in `ecomplete-get-matches' gave me hope, but further reading led me to think maybe it's not doing that after all. I'm not sure, though. Best regards, -Karl