emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/ebdb a4e9f16 324/350: Also snarf URL fields


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb a4e9f16 324/350: Also snarf URL fields
Date: Mon, 14 Aug 2017 11:47:03 -0400 (EDT)

branch: externals/ebdb
commit a4e9f16d3266eeea192d52aa1135b7f05cd06155
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    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<address@hidden:[:space:])>\"\n]+\\)"))
+  `((ebdb-field-mail 
"[[:blank:]([<\"]*\\([^[:space:]\":\n<address@hidden:[: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
 <address@hidden>" 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

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