branch: externals/ebdb
commit a4e9f16d3266eeea192d52aa1135b7f05cd06155
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>

    Also snarf URL fields
    
    * ebdb-snarf.el (ebdb-snarf-routines): Add a new element to this list.
    * ebdb.org: Mention in docs.
---
 ebdb-snarf.el | 5 ++++-
 ebdb.org      | 4 ++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/ebdb-snarf.el b/ebdb-snarf.el
index 7bcf98b..1bb9204 100644
--- a/ebdb-snarf.el
+++ b/ebdb-snarf.el
@@ -46,7 +46,10 @@
 (require 'ebdb-com)
 
 (defcustom ebdb-snarf-routines
-  '((ebdb-field-mail 
"[[:blank:]([<\"]*\\([^[:space:]\":\n<[]+@[^]:[:space:])>\"\n]+\\)"))
+  `((ebdb-field-mail 
"[[:blank:]([<\"]*\\([^[:space:]\":\n<[]+@[^]:[:space:])>\"\n]+\\)")
+    (ebdb-field-url ,(concat "\\("
+                            (regexp-opt ebdb-url-valid-schemes)
+                            "//[^ \n\t]+\\)")))
 
   "An alist of EBDB field classes and related regexps.
 
diff --git a/ebdb.org b/ebdb.org
index c0d7d09..5a58ae8 100644
--- a/ebdb.org
+++ b/ebdb.org
@@ -841,8 +841,8 @@ information related to EBDB records from it.  For example, 
calling
 <[email protected]>" will find an existing contact or prompt to create a
 new one, and then display that contact.
 
-Snarfing is a work in progress: at present, only mail addresses (and
-nearby names) are acted upon, and it often doesn't work correctly.
+Snarfing is a work in progress: at present, only mail addresses, URLs
+and nearby names are acted upon, and it often doesn't work correctly.
 
 - Command: ebdb-snarf &optional string start end recs
 

Reply via email to