all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Karl Fogel <kfogel@red-bean.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Emacs Tangents <emacs-tangents@gnu.org>
Subject: Re: [ANNOUNCE] mailaprop: modern popup-style autofill for email addresses
Date: Mon, 15 Jan 2018 23:02:54 -0600	[thread overview]
Message-ID: <878tcy8kg1.fsf@red-bean.com> (raw)
In-Reply-To: <m3a7xehaab.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 16 Jan 2018 02:17:32 +0100")

Lars Ingebrigtsen <larsi@gnus.org> 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



  reply	other threads:[~2018-01-16  5:02 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-15 18:52 [ANNOUNCE] mailaprop: modern popup-style autofill for email addresses Karl Fogel
2018-01-15 19:48 ` John Wiegley
2018-01-15 23:31   ` Karl Fogel
2018-01-16  0:54 ` joakim
2018-01-16  4:49   ` Karl Fogel
2018-01-16  1:17 ` Lars Ingebrigtsen
2018-01-16  5:02   ` Karl Fogel [this message]
2018-01-16 13:37     ` Lars Ingebrigtsen
2018-01-16 19:17       ` Karl Fogel
2018-01-17 10:57         ` Lars Ingebrigtsen
2018-01-18 20:16           ` Karl Fogel
2018-01-19 11:37             ` Lars Ingebrigtsen
2018-02-04  6:35               ` Karl Fogel
2018-01-16  6:02   ` Karl Fogel
2018-01-16 13:38     ` Lars Ingebrigtsen
2018-01-16 13:54       ` Lars Ingebrigtsen
2018-01-16 14:23         ` Lars Ingebrigtsen
2018-01-16 19:22           ` Karl Fogel
2018-01-17 10:58             ` Lars Ingebrigtsen
2018-01-16 17:17         ` Eli Zaretskii
2018-01-17 10:53           ` Lars Ingebrigtsen
2018-01-17 15:24             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878tcy8kg1.fsf@red-bean.com \
    --to=kfogel@red-bean.com \
    --cc=emacs-tangents@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.