Commits

Anonymous committed e5227b8

(eudc-inline-query-format): New semantics and custom definition
(eudc-bbdb-enable-substring-matches): New variable

Comments (0)

Files changed (1)

eudc-custom-vars.el

 				       (const :menu-tag "Duplicate" duplicate)))))
   :group 'eudc)
 
-(defcustom eudc-inline-query-format '(firstname name)
+(defcustom eudc-inline-query-format '((name) 
+				      (firstname name))
   "*Format of an inline expansion query.
-If the inline query string consists of several words, this list specifies 
-how these individual words are mapped onto attribute names.
-If nil all the words will be mapped onto the default server/protocol key."
+This is a list of FORMATs.  A FORMAT is a list of one or more EUDC 
+attribute names.  A FORMAT applies if it contains as many attributes 
+as individual words in the inline query string.  
+If several FORMATs apply then they are tried in order until a match 
+is found.  If nil all the words will be mapped onto the default 
+server/protocol attribute name."
   :tag "Format of Inline Expansion Queries"
   :type  '(repeat
-	   (choice
-	    :tag "Attribute"
-	    (const :menu-tag "First Name" :tag "First Name" firstname)
-	    (const :menu-tag "Surname" :tag "Surname" name)
-	    (const :menu-tag "Email Address" :tag "Email Address" email)
-	    (const :menu-tag "Phone" :tag "Phone" phone)
-	    (symbol :menu-tag "Other" :tag "Attribute name")))
+	   (repeat
+	    :menu-tag "Format"
+	    :tag "Format"
+	    (choice
+	     :tag "Attribute"
+	     (const :menu-tag "First Name" :tag "First Name" firstname)
+	     (const :menu-tag "Surname" :tag "Surname" name)
+	     (const :menu-tag "Email Address" :tag "Email Address" email)
+	     (const :menu-tag "Phone" :tag "Phone" phone)
+	     (symbol :menu-tag "Other" :tag "Attribute name"))))
   :group 'eudc)
 
 (defcustom eudc-expansion-overwrites-query t
   :type 'boolean
   :group 'eudc-bbdb)
 
+(defcustom eudc-bbdb-enable-substring-matches t
+  "If non-nil, authorize substring matches in the same way BBDB does.
+Otherwise records must match queries exactly."
+  :type 'boolean
+  :group 'eudc-bbdb)
+
 ;;}}}