* Help writing a helm email-address-at-point fn
@ 2019-03-10 5:06 Tory S. Anderson
0 siblings, 0 replies; only message in thread
From: Tory S. Anderson @ 2019-03-10 5:06 UTC (permalink / raw)
To: Emacs Help List
I use helm and bbdb to complete addresses in my to/from/cc fields. It sort-of works, but I'm leveraging word-at-point. This means that if I type "Joe" and type "<TAB>", I see the completions I expect, but if I type "Joe Somebod" I get completions (and replace) just the "Somebod", both not taking into account the "Joe" and also leaving it there after I make my selection. It seems like I need to define a new "thing-at-point" function, but I'm having trouble figuring out how.
Looking at how bbdb-company isolates the right match, I gleaned the following regexp:
--8<---------------cut here---------------start------------->8---
(looking-back "^\\(To\\|Cc\\|Bcc\\): *.*? *\\([^,;]*\\)" (line-beginning-position))
--8<---------------cut here---------------end--------------->8---
But I can't quite figure out how to use that to make a thing-at-point I could drop in to replace my use of `word-at-point`. Any help would be much appreciated.
- Tory
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-03-10 5:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-10 5:06 Help writing a helm email-address-at-point fn Tory S. Anderson
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).