Skip to content
Snippets Groups Projects
Commit e5227b8b4871 authored by oscarf's avatar oscarf
Browse files

(eudc-inline-query-format): New semantics and custom definition

(eudc-bbdb-enable-substring-matches): New variable
parent 393e4ee72dce
No related branches found
No related tags found
No related merge requests found
...@@ -126,5 +126,6 @@ ...@@ -126,5 +126,6 @@
(const :menu-tag "Duplicate" duplicate))))) (const :menu-tag "Duplicate" duplicate)))))
:group 'eudc) :group 'eudc)
(defcustom eudc-inline-query-format '(firstname name) (defcustom eudc-inline-query-format '((name)
(firstname name))
"*Format of an inline expansion query. "*Format of an inline expansion query.
...@@ -130,6 +131,9 @@ ...@@ -130,6 +131,9 @@
"*Format of an inline expansion query. "*Format of an inline expansion query.
If the inline query string consists of several words, this list specifies This is a list of FORMATs. A FORMAT is a list of one or more EUDC
how these individual words are mapped onto attribute names. attribute names. A FORMAT applies if it contains as many attributes
If nil all the words will be mapped onto the default server/protocol key." 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" :tag "Format of Inline Expansion Queries"
:type '(repeat :type '(repeat
...@@ -134,12 +138,15 @@ ...@@ -134,12 +138,15 @@
:tag "Format of Inline Expansion Queries" :tag "Format of Inline Expansion Queries"
:type '(repeat :type '(repeat
(choice (repeat
:tag "Attribute" :menu-tag "Format"
(const :menu-tag "First Name" :tag "First Name" firstname) :tag "Format"
(const :menu-tag "Surname" :tag "Surname" name) (choice
(const :menu-tag "Email Address" :tag "Email Address" email) :tag "Attribute"
(const :menu-tag "Phone" :tag "Phone" phone) (const :menu-tag "First Name" :tag "First Name" firstname)
(symbol :menu-tag "Other" :tag "Attribute name"))) (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) :group 'eudc)
(defcustom eudc-expansion-overwrites-query t (defcustom eudc-expansion-overwrites-query t
...@@ -341,6 +348,12 @@ ...@@ -341,6 +348,12 @@
:type 'boolean :type 'boolean
:group 'eudc-bbdb) :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)
;;}}} ;;}}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment