[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to use bbdb-snarf to capture addresses from point

From: Bob Newell
Subject: Re: how to use bbdb-snarf to capture addresses from point
Date: Mon, 27 Jan 2020 10:00:24 -1000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

"Roland Winkler" <address@hidden> writes:
>> (bbdb-snarf (thing-at-point 'email))
> thing-at-point only returns the email address itself, not the name that
> may go with it.  Therefore, it is probably cleaner to put point and
> mark around the region you want to snarf.  Also, if you define a
> command, it is probably cleaner to spell out the snarfing rule you
> want to use (which is 'mail for the above).

You make a very good point about specifying a 'snarf' rule
explicitly, and you are right about my usage of
'thing-at-point being limited to just picking up the email
address without any related information. I've been using this
code but will certainly revise it. Thank you for the

The trick is, though, that it isn't always possible to cleanly
define a region with just the info you want. I've tried
various things along those lines and often end up with a
completely extraneous note field.

I'll work with this a little further as time allows. When
coding a command in elisp, nearly all things are possible.

Bob Newell
Honolulu, Hawai`i
- Via Gnus/BBDB/Org/Emacs/Linux

reply via email to

[Prev in Thread] Current Thread [Next in Thread]