annotate man/eudc.texi @ 27382:f2499774f43c

Undo previous change.
author Richard M. Stallman <rms@gnu.org>
date Fri, 21 Jan 2000 03:37:07 +0000
parents 6e868e0bc324
children 42feade9d5aa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
27316
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
1 \input texinfo.tex
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
2 @c %**start of header
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
3 @setfilename ../info/eudc
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
4 @settitle Emacs Unified Directory Client (EUDC) Manual
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
5 @iftex
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
6 @afourpaper
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
7 @end iftex
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
8 @c %**end of header
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
9
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
10 @footnotestyle end
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
11
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
12 @ifinfo
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
13 @direntry
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
14 * EUDC:: A client for directory servers (LDAP, PH)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
15 @end direntry
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
16
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
17 This file documents EUDC v1.30b
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
18
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
19 EUDC is part of Emacs.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
20
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
21 EUDC is the Emacs Unified Directory Client, a common interface to
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
22 directory servers using various protocols such as LDAP or the CCSO white
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
23 pages directory system (PH/QI)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
24
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
25 Copyright @copyright{} 1998, 2000 Free Software Foundation, Inc.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
26
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
27 Permission is granted to make and distribute verbatim
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
28 copies of this manual provided the copyright notice and
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
29 this permission notice are preserved on all copies.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
30
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
31 @ignore
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
32 Permission is granted to process this file through TeX
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
33 and print the results, provided the printed document
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
34 carries a copying permission notice identical to this
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
35 one except for the removal of this paragraph (this
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
36 paragraph not being relevant to the printed manual).
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
37 @end ignore
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
38
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
39 Permission is granted to copy and distribute modified
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
40 versions of this manual under the conditions for
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
41 verbatim copying and the terms of the ``GNU General
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
42 Public License'', and provided that the entire
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
43 resulting derived work is distributed under the terms
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
44 of a permission notice identical to this one.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
45
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
46 Permission is granted to copy and distribute
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
47 translations of this manual into another language,
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
48 under the above conditions for modified versions,
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
49 except that this permission notice may be stated in a
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
50 translation approved by the Free Software Foundation.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
51 @end ifinfo
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
52
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
53 @titlepage
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
54 @title{EUDC Manual}
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
55 @subtitle{The Emacs Unified Directory Client}
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
56 @author by Oscar Figueiredo
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
57 @code{1.30b}
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
58
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
59 @page
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
60 @vskip 0pt plus 1fill
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
61 Copyright @copyright{} 1998, 2000 Free Software Foundation, Inc.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
62
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
63 Permission is granted to make and distribute verbatim
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
64 copies of this manual provided the copyright notice and
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
65 this permission notice are preserved on all copies.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
66
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
67 @ignore
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
68 Permission is granted to process this file through TeX
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
69 and print the results, provided the printed document
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
70 carries a copying permission notice identical to this
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
71 one except for the removal of this paragraph (this
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
72 paragraph not being relevant to the printed manual).
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
73
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
74 @end ignore
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
75
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
76 Permission is granted to copy and distribute modified
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
77 versions of this manual under the conditions for
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
78 verbatim copying and the terms of the ``GNU General
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
79 Public License'', and provided that the entire
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
80 resulting derived work is distributed under the terms
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
81 of a permission notice identical to this one.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
82
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
83 Permission is granted to copy and distribute
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
84 translations of this manual into another language,
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
85 under the above conditions for modified versions,
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
86 except that this permission notice may be stated in a
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
87 translation approved by the Free Software Foundation.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
88 @end titlepage
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
89
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
90 @ifinfo
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
91 @node Top, Overview, (dir), (dir)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
92 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
93
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
94
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
95 This manual documents EUDC v1.30b, the Emacs Unified Directory Client.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
96
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
97 A common interface to directory servers using various protocols such as
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
98 LDAP or the CCSO white pages directory system (PH/QI)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
99
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
100 @end ifinfo
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
101
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
102 @menu
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
103 * Overview:: Summary of EUDC features
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
104 * Installation:: How to install EUDC
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
105 * Usage:: The various usage possibilities explained
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
106 * Credits:: Who's done what
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
107 * Variables Index::
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
108 @end menu
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
109
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
110
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
111
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
112
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
113
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
114 @node Overview, Installation, Top, Top
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
115 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
116 @chapter Overview
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
117
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
118 EUDC, the Emacs Unified Directory Client, provides a common user
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
119 interface to access directory servers using different directory
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
120 protocols.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
121
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
122 Currently supported back-ends are:
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
123
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
124 @itemize @bullet
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
125 @item
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
126 LDAP, Lightweight Directory Access Protocol
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
127 @item
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
128 CCSO PH/QI
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
129 @item
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
130 BBDB, Big Brother's Insiduous Database
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
131 @end itemize
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
132
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
133 The main features of the EUDC interface are:
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
134
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
135 @itemize @bullet
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
136 @item
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
137 Queries using a customizable form
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
138 @item
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
139 Inline query expansion (for instance you can expand a name
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
140 to an email address in a mail message buffer using a server as an
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
141 address book)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
142 @item
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
143 Multiple servers can be tried in turn until a match is found for an
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
144 inline query
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
145 @item
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
146 Fast minibuffer queries for email addresses and phone numbers
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
147 @item
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
148 Interface to BBDB to let you insert server records into your own BBDB database
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
149 (@pxref{Top,,BBDB,bbdb,BBDB Manual})
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
150 @end itemize
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
151
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
152 @menu
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
153 * LDAP:: What is LDAP ?
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
154 * CCSO PH/QI:: What is CCSO, PH, QI ?
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
155 * BBDB:: What is BBDB ?
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
156 @end menu
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
157
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
158
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
159
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
160 @node LDAP, CCSO PH/QI, Overview, Overview
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
161 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
162 @section LDAP
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
163
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
164 LDAP, Lightweight Directory Access Protocol, is a communication
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
165 protocol for directory applications defined in RFC 1777.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
166
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
167 Quoted from RFC 1777:
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
168
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
169 @quotation
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
170 [LDAP] is designed to provide access to the X.500 Directory while not
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
171 incurring the resource requirements of the Directory Access Protocol
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
172 (DAP). This protocol is specifically targeted at simple management
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
173 applications and browser applications that provide simple read/write
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
174 interactive access to the X.500 Directory, and is intended to be a
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
175 complement to the DAP itself.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
176 @end quotation
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
177
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
178 LDAP servers usually store (but are not limited to) information about
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
179 people such as their name, phone number, email address, office
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
180 location, etc@enddots{} More information about LDAP can be found at
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
181 @url{http://www.openldap.org/}
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
182
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
183 EUDC requires external support to access LDAP directory servers
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
184 (@pxref{LDAP Requirements})
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
185
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
186
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
187 @node CCSO PH/QI, BBDB, LDAP, Overview
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
188 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
189 @section CCSO PH/QI
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
190
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
191 The Central Computing Services Office (CCSO) of the University of
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
192 Illinois at Urbana Champaign (UIUC) created and freely distributes a
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
193 directory system that is currently in use in more than 300 organizations
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
194 around the world. The system records information about people such as
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
195 their address, phone number, email, academic information or any other
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
196 details it was configured to.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
197
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
198 The system consists of two parts: a database server traditionally called
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
199 @samp{qi} and a command-line client called @samp{ph}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
200 @url{ftp://uiarchive.cso.uiuc.edu/pub/packages/ph} is the main
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
201 distribution site. @url{http://www.uiuc.edu/cgi-bin/ph/lookup?Query=.}
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
202 provides a listing of the active @samp{qi} servers.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
203
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
204 The original command-line @samp{ph} client that comes with the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
205 @samp{ph/qi} distribution provides additional features like the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
206 possibility to communicate with the server in login-mode which makes it
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
207 possible to change records in the database. This is not implemented in
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
208 EUDC.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
209
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
210
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
211 @node BBDB, , CCSO PH/QI, Overview
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
212 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
213 @section BBDB
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
214
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
215 BBDB is the Big Brother's Insiduous Database, a package for Emacs
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
216 originally written by Jamie Zawinski which provides rolodex-like
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
217 database functionality featuring tight integration with the Emacs mail
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
218 and news readers.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
219
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
220 It is often used as an enhanced email address book.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
221
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
222 EUDC considers BBDB as a directory server backend just like LDAP or
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
223 PH/QI servers though BBDB has no client/server protocol and thus always
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
224 resides locally on your machine. The point in this is not to offer an
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
225 alternate way to query your BBDB database (BBDB itself provides much
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
226 more flexible ways to do that) but rather to offer an interface to your
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
227 local directory that is consistent with the interface to external
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
228 directories (LDAP, PH/QI). This is particularly interesting when
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
229 performing queries on multiple servers.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
230
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
231 EUDC also offers a means to insert results from directory queries into
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
232 your own local BBDB (@pxref{Creating BBDB Records})
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
233
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
234 @node Installation, Usage, Overview, Top
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
235 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
236 @chapter Installation
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
237
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
238 Add the following to your @file{.emacs} init file:
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
239 @lisp
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
240 (require 'eudc)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
241 @end lisp
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
242 This will install EUDC at startup.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
243
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
244 After installing EUDC you will find (the next time you launch Emacs) a
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
245 new @code{Directory Search} submenu in the @samp{Tools} menu that will
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
246 give you access to EUDC.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
247
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
248 You may also find it useful to add the following to your @file{.emacs}
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
249 initialization file to add a shortcut for email address expansion in
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
250 email composition buffers (@pxref{Inline Query Expansion})
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
251
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
252 @lisp
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
253 (eval-after-load
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
254 "message"
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
255 '(define-key message-mode-map [(control ?c) (tab)] 'eudc-expand-inline))
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
256 (eval-after-load
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
257 "sendmail"
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
258 '(define-key mail-mode-map [(control ?c) (tab)] 'eudc-expand-inline))
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
259 @end lisp
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
260
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
261 @menu
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
262 * LDAP Requirements:: EUDC needs external support for LDAP
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
263 @end menu
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
264
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
265 @node LDAP Requirements, , Installation, Installation
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
266 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
267 @section LDAP Requirements
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
268
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
269 LDAP support is added by means of @file{ldap.el} which is part of Emacs.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
270 @file{ldap.el} needs an external command line utility named
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
271 @file{ldapsearch} which is available as part of LDAP toolkits. above.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
272
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
273 @itemize @bullet
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
274 @item
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
275 Open LDAP Libraries
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
276 (@url{http://www.openldap.org/})
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
277 @item
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
278 University of Michigan's LDAP Client software
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
279 (@url{http://www.umich.edu/~dirsvcs/ldap/})
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
280 @end itemize
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
281
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
282
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
283 @node Usage, Credits, Installation, Top
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
284 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
285 @chapter Usage
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
286
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
287 This chapter describes the usage of EUDC. Most functions and
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
288 customization options are available through the @samp{Directory Search}
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
289 submenu of the @samp{Tools} submenu.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
290
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
291 @menu
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
292 * Querying Servers:: How queries are performed and handled
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
293 * Query Form:: How to use and customize the query form
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
294 * Display of Query Results:: Controlling how query results are presented
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
295 * Inline Query Expansion:: How to use and customize inline queries
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
296 * The Server Hotlist:: How to use and manage the server hotlist
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
297 * Multi-server Queries:: How to query multiple servers sucessively
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
298 * Creating BBDB Records:: How to insert query results into your BBDB
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
299 * Server/Protocol Locals:: Customizing on a per server/protocol basis
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
300 @end menu
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
301
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
302
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
303 @node Querying Servers, Query Form, Usage, Usage
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
304 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
305 @section Querying Servers
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
306
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
307 EUDC's basic functionality is to let you query a directory server and
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
308 return the results back to you. There are several things you may want
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
309 to customize in this process.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
310
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
311
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
312 @menu
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
313 * Selecting a Server:: The first thing to do
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
314 * Return Attributes:: Configuring what the server should return
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
315 * Duplicate Attributes:: What to do when records have duplicate attributes
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
316 @end menu
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
317
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
318 @node Selecting a Server, Return Attributes, Querying Servers, Querying Servers
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
319 @subsection Selecting a Server
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
320
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
321 Before doing any query you will need to set the directory server. You
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
322 need to specify the name of the host machine running the server software
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
323 and the protocol to use. If you do not set the server in any fashion,
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
324 EUDC will ask you for one when you make your first query.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
325
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
326 You can set the server by selecting one from your hotlist of servers
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
327 (@pxref{The Server Hotlist}) available in the @samp{Server} submenu or
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
328 by selecting @samp{New Server} in that same menu.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
329
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
330 LDAP servers generally require some configuration before you can perform
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
331 queries on them. In particular, the @dfn{search base} must be
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
332 configured. If the server you select has no configured search base then
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
333 EUDC will propose you to configure it at this point. A customization
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
334 buffer will be displayed where you can edit the search base and other
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
335 parameters for the server.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
336
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
337 @defvar eudc-server
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
338 The name or IP address of the remote directory server. A TCP port number
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
339 may be specified by appending a colon and a number to the name of the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
340 server. You will not need this unless your server runs on a port other
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
341 than the default (which depends on the protocol).
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
342 If the directory server resides on your own computer (which is the case
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
343 if you use the BBDB backend) then `localhost' is a reasonable value but
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
344 it will be ignored anyway.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
345 @end defvar
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
346
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
347 @defvar eudc-protocol
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
348 The directory protocol to use to query the server. Currently supported
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
349 protocols in this version of EUDC are @code{ph}, @code{ldap} and @code{bbdb}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
350 @end defvar
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
351
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
352 @deffn Command eudc-set-server
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
353 This command accessible from @samp{Server} submenu lets you specify a
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
354 new directory server and protocol.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
355 @end deffn
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
356
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
357 @node Return Attributes, Duplicate Attributes, Selecting a Server, Querying Servers
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
358 @subsection Return Attributes
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
359
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
360 Directory servers may be configured to return a default set of
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
361 attributes for each record matching a query if the query specifies none.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
362 The variable @code{eudc-default-return-attributes} controls the return
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
363 attributes you want to see, if different from the server defaults.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
364
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
365 @defvar eudc-default-return-attributes
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
366 A list of the default attributes to extract from directory entries. If
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
367 set to the symbol @code{all} then all available attributes are
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
368 returned. A value of @code{nil}, the default, means to return the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
369 default attributes as configured in the server.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
370 @end defvar
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
371
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
372 The server may return several matching records to a query. Some of the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
373 records may however not contain all the attributes you requested. You can
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
374 discard those records.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
375
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
376 @defopt eudc-strict-return-matches
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
377 If non-@code{nil}, entries that do not contain all the requested return
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
378 attributes are ignored. Default is @code{t}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
379 @end defopt
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
380
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
381 @node Duplicate Attributes, , Return Attributes, Querying Servers
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
382 @subsection Duplicate Attributes
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
383
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
384 Directory standards may authorize different instances of the same
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
385 attribute in a record. For instance the record of a person may contain
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
386 several email fields containing different email addresses. When using
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
387 a QI directory server this is difficult to distinguish from attributes
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
388 having multi-line values such as the postal address that may contain a
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
389 line for the street and another one for the zip code and city name. In
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
390 both cases, EUDC will consider the attribute duplicated.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
391
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
392 EUDC has several methods to deal with duplicated attributes. The
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
393 available methods are:
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
394
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
395 @table @code
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
396 @item list
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
397 Makes a list with the different values of the duplicate attribute. The
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
398 record is returned with only one instance of the attribute with a list
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
399 of all the different values as a value. This is the default method that
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
400 is used to handle duplicate fields for which no other method has been
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
401 specified.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
402 @item first
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
403 Discards all the duplicate values of the field keeping only the first
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
404 one.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
405 @item concat
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
406 Concatenates the different values using a newline as a separator. The
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
407 record keeps only one instance of the field the value of which is a
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
408 single multi-line string.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
409 @item duplicate
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
410 Duplicates the whole record into as many instances as there are different
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
411 values for the field. This is the default for the email field. Thus a
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
412 record containing 3 different email addresses is duplicated into three
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
413 different records each having a single email address. This is
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
414 particularly useful in combination with @code{select} as the method to
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
415 handle multiple matches in inline expansion queries (@pxref{Inline Query
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
416 Expansion}) because you are presented with the 3 addresses in a
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
417 selection buffer
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
418 @end table
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
419
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
420 Because a method may not be applicable to all fields, the variable
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
421 @code{eudc-duplicate-attribute-handling-method} lets you specify either a
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
422 default method for all fields or a method for each individual field.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
423
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
424 @defvar eudc-duplicate-attribute-handling-method
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
425 A method to handle entries containing duplicate attributes. This is
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
426 either an alist @code{(@var{attr} . @var{method})} or a symbol
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
427 @var{method}. The alist form of the variable associates a method to an
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
428 individual attribute name, the second form specifies a method applicable
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
429 to all attribute names. Available methods are: @code{list},
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
430 @code{first}, @code{concat}, @code{duplicate} (see above). Defaults to
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
431 @code{list}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
432 @end defvar
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
433
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
434
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
435
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
436 @node Query Form, Display of Query Results, Querying Servers, Usage
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
437 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
438 @section Query Form
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
439
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
440 The simplest way to query your directory server is to use the query
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
441 form. You display the query form with the @samp{Query with Form} menu
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
442 item or by invoking the command @kbd{M-x eudc-query-form}. The attribute
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
443 names presented in this form are defined by the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
444 @code{eudc-query-form-attributes} variable (unless a non-@code{nil}
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
445 argument is supplied to @code{eudc-query-form}).
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
446
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
447 Since the different directory protocols to which EUDC interfaces may
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
448 use different names for equivalent attributes, EUDC defines its own set
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
449 of attribute names and a mapping between these names and their
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
450 protocol-specific equivalent through the variable
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
451 @code{eudc-protocol-attributes-translation-alist}. Names currently
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
452 defined by EUDC are @code{name}, @code{firstname}, @code{email} and
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
453 @code{phone}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
454
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
455 @defvar eudc-query-form-attributes
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
456 A list of attributes presented in the query form. Attribute names in
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
457 this list should be either EUDC attribute names or valid attribute
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
458 names. You can get a list of valid attribute names for the current
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
459 protocol with the @samp{List Valid Attribute Names} menu item or the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
460 @kbd{M-x eudc-get-attribute-list} command. Defaults to @code{name},
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
461 @code{email} and @code{phone}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
462 @end defvar
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
463
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
464 @deffn Command eudc-query-form get-fields-from-server
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
465 Display a form to query the directory server. If given a non-@code{nil}
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
466 argument the function first queries the server for the existing fields
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
467 and displays a corresponding form. Not all protocols may support a
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
468 non-@code{nil} argument here.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
469 @end deffn
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
470
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
471 Since the names of the fields may not be explicit enough or adapted to
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
472 be directly displayed as prompt strings in the form, the variable
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
473 @code{eudc-user-attribute-names-alist} lets you define more explicit
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
474 names for directory attribute names. This variable is ignored if
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
475 @code{eudc-use-raw-directory-names} is non-@code{nil}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
476
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
477 @defvar eudc-user-attribute-names-alist
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
478 This is an alist of user-defined names for the directory attributes used in
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
479 query/response forms. Prompt strings for attributes that are not in this
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
480 alist are derived by splitting the attribute name at underscores and
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
481 capitalizing the individual words.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
482 @end defvar
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
483
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
484 @defvar eudc-use-raw-directory-names
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
485 If non-@code{nil}, use attributes names as defined in the directory.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
486 Otherwise, directory query/response forms display the user attribute
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
487 names defined in @code{eudc-user-attribute-names-alist}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
488 @end defvar
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
489
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
490 @node Display of Query Results, Inline Query Expansion, Query Form, Usage
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
491 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
492 @section Display of Query Results
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
493
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
494 Upon successful completion of a form query, EUDC will display a buffer
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
495 containing the results of the query.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
496
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
497 The fields that are returned for each record
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
498 are controlled by @code{eudc-default-return-attributes} (@pxref{Return
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
499 Attributes}).
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
500
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
501 The display of each individual field can be performed by an arbitrary
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
502 function which allows specific processing for binary values like images
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
503 or audio samples as well as values with computer semantics like URLs.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
504
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
505 @defvar eudc-attribute-display-method-alist
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
506 An alist specifying methods to display attribute values. Each member of
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
507 the list is of the form @code{(@var{name} . @var{func})} where
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
508 @var{name} is a lowercased string naming a directory attribute
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
509 (translated according to @code{eudc-user-attribute-names-alist} if
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
510 @code{eudc-use-raw-directory-names} is non-nil) and @var{func} a
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
511 function that will be passed the corresponding attribute values for
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
512 display.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
513 @end defvar
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
514
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
515 This variable has protocol-local definitions (see @pxref{Server/Protocol
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
516 Locals}). For instance, it is defined as follows for LDAP:
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
517
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
518 @lisp
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
519 (eudc-protocol-set 'eudc-attribute-display-method-alist
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
520 '(("jpegphoto" . eudc-display-jpeg-inline)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
521 ("labeledurl" . eudc-display-url)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
522 ("audio" . eudc-display-sound)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
523 ("labeledurl" . eudc-display-url)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
524 ("url" . eudc-display-url))
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
525 'ldap)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
526 @end lisp
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
527
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
528 EUDC provides a set of built-in functions to display binary value types:
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
529
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
530 @defun eudc-display-generic-binary data
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
531 Display a button for unidentified binary @var{data}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
532 @end defun
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
533
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
534 @defun eudc-display-url url
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
535 Display URL and make it clickable.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
536 @end defun
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
537
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
538 @defun eudc-display-sound data
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
539 Display a button to play the sound @var{data}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
540 @end defun
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
541
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
542 @defun eudc-display-jpeg-inline data
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
543 Display the JPEG @var{data} inline at point if possible.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
544 @end defun
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
545
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
546 @defun eudc-display-jpeg-as-button data
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
547 Display a button for the JPEG @var{data}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
548 @end defun
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
549
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
550 Right-clicking on a binary value button pops up a contextual menu with
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
551 options to process the value. Among these are saving the attribute
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
552 value to a file or sending it to an external viewer command. External
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
553 viewers should expect the value on their standard input and should
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
554 display it or perform arbitrary processing on it. Messages sent to
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
555 standard output are discarded. External viewers are listed in the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
556 variable @code{eudc-external-viewers} which you can customize.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
557
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
558 @defvar eudc-external-viewers
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
559 This is a list of viewer program specifications. Each specification is
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
560 a list whose first element is a string naming the viewer for unique
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
561 identification, the second element is the executable program which
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
562 should be invoked and the following elements are arguments that should
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
563 be passed to the program.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
564 @end defvar
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
565
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
566
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
567 @node Inline Query Expansion, The Server Hotlist, Display of Query Results, Usage
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
568 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
569 @section Inline Query Expansion
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
570
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
571 Inline query expansion is a powerful method to get completion from your
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
572 directory server. The most common usage is for expanding names to email
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
573 addresses in mail message buffers. The expansion is performed by the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
574 command @kbd{M-x eudc-expand-inline} which is available from the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
575 @samp{Directory Search} menu but can also be conveniently bound to a key
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
576 shortcut (@pxref{Installation}) The operation is controlled by the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
577 variables @code{eudc-inline-expansion-format},
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
578 @code{eudc-inline-query-format},
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
579 @code{eudc-expanding-overwrites-query} and
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
580 @code{eudc-multiple-match-handling-method}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
581
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
582 If the query fails for a server, other servers may be tried successively
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
583 until one of them finds a match (@pxref{Multi-server Queries}).
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
584
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
585 @deffn Command eudc-expand-inline replace-p
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
586 Query the server and expand the query string before point. The query
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
587 string consists of the buffer substring from the point back to the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
588 preceding comma, colon or beginning of
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
589 line. @code{eudc-inline-query-format} controls how individual words
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
590 are mapped onto directory attribute names. After querying the server
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
591 for the given string, the expansion specified by
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
592 @code{eudc-inline-expansion-format} is inserted in the buffer at
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
593 point. If @var{replace-p} is @code{t} then this expansion replaces the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
594 query string in the buffer. If @code{eudc-expanding-overwrites-query}
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
595 is non-@code{nil} then the meaning of @var{replace-p} is negated.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
596 @end deffn
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
597
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
598 @defvar eudc-inline-query-format
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
599 Format of an inline expansion query.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
600 This is actually a list of @var{format}s. A @var{format} is a list of
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
601 one or more EUDC attribute names. A @var{format} applies if it contains
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
602 as many attributes as individual words in the inline query string. If
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
603 several @var{format}s apply then they are tried in order until a match
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
604 is found. If @code{nil} all the words will be mapped onto the default
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
605 server/protocol attribute name (generally @code{name}).
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
606
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
607 For instance, use the following
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
608 @lisp
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
609 (setq eudc-inline-query-format '((name)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
610 (firstname)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
611 (firstname name)))
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
612 @end lisp
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
613 to indicate that single word expansion queries are to be considered as
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
614 surnames and if no match is found then they should be tried as first
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
615 names. Inline queries consisting of two words are considered as
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
616 consisting of a first name followed by a surname. If the query consists
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
617 of more than two words, then the first one is considered as the first
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
618 name and the remaining words are all considered as surname constituents.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
619
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
620 @var{format}s are in fact not limited to EUDC attribute names, you can
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
621 use server or protocol specific names in them. It may be safer if you
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
622 do so, to set the variable @code{eudc-inline-query-format} in a protocol
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
623 or server local fashion (see @pxref{Server/Protocol Locals}).
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
624
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
625 For instance you could use the following to match up to three words
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
626 against the @code{cn} attribute of LDAP servers:
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
627 @lisp
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
628 (eudc-protocol-set 'eudc-inline-query-format
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
629 '((cn)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
630 (cn cn)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
631 (cn cn cn))
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
632 'ldap)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
633 @end lisp
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
634 @end defvar
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
635
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
636 @defvar eudc-inline-expansion-format
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
637 This variable lets you control exactly what is inserted into the buffer
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
638 upon an inline expansion request. It is a list whose first element is a
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
639 string passed to @code{format}. Remaining elements are symbols
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
640 corresponding to directory attribute names. The corresponding attribute
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
641 values are passed as additional arguments to @code{format}. Default is
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
642 @code{("%s" email)} but you may want to consider a value like @code{("%s
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
643 <%s>" name email)}
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
644 @end defvar
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
645
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
646 @defvar eudc-multiple-match-handling-method
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
647 This variable controls what to do when multiple entries match a query
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
648 for an inline expansion. Possible values are:
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
649 @table @code
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
650 @item first
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
651 The first match is considered as being the only one, the others are
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
652 discarded.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
653 @item select
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
654 A selection buffer pops up where you can choose a particular match. This
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
655 is the default value of the variable.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
656 @item all
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
657 The expansion uses all records successively
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
658 @item abort
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
659 An error is signaled. The expansion aborts.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
660 @end table
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
661
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
662
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
663 Defaults to @code{select}
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
664 @end defvar
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
665
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
666
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
667
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
668 @node The Server Hotlist, Multi-server Queries, Inline Query Expansion, Usage
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
669 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
670 @section The Server Hotlist
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
671
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
672 EUDC lets you maintain a list of frequently used servers so that you
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
673 can easily switch from one to another. This hotlist appears in the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
674 @samp{Server} submenu. You select a server in this list by clicking on
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
675 its name. You can add the current server to the list with the command
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
676 @kbd{M-x eudc-bookmark-current-server}. The list is contained in the variable
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
677 @code{eudc-server-hotlist} which is stored in and retrieved from the file
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
678 designated by @code{eudc-options-file}. EUDC also provides a facility to
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
679 edit the hotlist interactively (@pxref{The Hotlist Edit Buffer}).
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
680
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
681 The hotlist is also used to make queries on multiple servers
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
682 successively (@pxref{Multi-server Queries}). The order in which the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
683 servers are tried is the order they appear in the hotlist, therefore it
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
684 is important to sort the hotlist appropriately.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
685
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
686 @deffn Command eudc-bookmark-server server
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
687 Add @var{server} to the hotlist of servers
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
688 @end deffn
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
689
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
690 @deffn Command eudc-bookmark-current-server
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
691 Add the current server to the hotlist of servers
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
692 @end deffn
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
693
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
694 @defvar eudc-options-file
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
695 The name of a file where EUDC stores its internal variables
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
696 (the hotlist and the current server). EUDC will try to load
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
697 that file upon initialization so, if you choose a file name
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
698 different from the defaults @file{~/.eudc-options}, be sure to set this
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
699 variable to the appropriate value @emph{before} EUDC is itself
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
700 loaded.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
701 @end defvar
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
702
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
703 @menu
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
704 * The Hotlist Edit Buffer:: An interactive hotlist editing facility
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
705 @end menu
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
706
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
707 @node The Hotlist Edit Buffer, , The Server Hotlist, The Server Hotlist
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
708 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
709 @subsection The Hotlist Edit Buffer
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
710
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
711 The hotlist edit buffer offers a means to manage a list of frequently
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
712 used servers. Commands are available in the context pop-up menu
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
713 generally bound to the right mouse button. Those commands also have
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
714 equivalent keybindings.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
715
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
716 @deffn Command eudc-hotlist-add-server
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
717 Bound to @kbd{a}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
718 Add a new server to the hotlist on the line after point
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
719 @end deffn
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
720
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
721 @deffn Command eudc-hotlist-delete-server
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
722 Bound to @kbd{d}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
723 Delete the server on the line point is on
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
724 @end deffn
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
725
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
726 @deffn Command eudc-hotlist-select-server
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
727 Bound to @kbd{s}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
728 Select the server the point is on as the current directory server for
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
729 the next queries
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
730 @end deffn
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
731
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
732 @deffn Command eudc-hotlist-transpose-servers
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
733 Bound to @kbd{t}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
734 Bubble up the server the point is on to the top of the list
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
735 @end deffn
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
736
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
737 @deffn Command eudc-hotlist-quit-edit
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
738 Bound to @kbd{q}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
739 Save the changes and quit the hotlist edit buffer. Use @kbd{x} or
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
740 @kbd{M-x kill-buffer} to exit without saving.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
741 @end deffn
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
742
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
743
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
744 @node Multi-server Queries, Creating BBDB Records, The Server Hotlist, Usage
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
745 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
746 @section Multi-server Queries
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
747
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
748 When using inline query expansion (@pxref{Inline Query Expansion}), EUDC
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
749 can try to query successively a sequence of directory servers until one
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
750 of them successfully finds a match for the query.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
751
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
752 @defvar eudc-inline-expansion-servers
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
753 This variable controls which servers are tried and in which order when
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
754 trying to perform an inline query. Possible values are:
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
755 @table @code
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
756 @item current-server
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
757 Only the current directory server is tried
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
758 @item hotlist
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
759 The servers in the hotlist are tried in order until one finds a match
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
760 for the query or `eudc-max-servers-to-query' is reached
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
761 @item server-then-hotlist
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
762 The current server then the servers in the hotlist are tried in the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
763 order they appear in the hotlist until one of them finds a match or
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
764 `eudc-max-servers-to-query' is reached. This is the default.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
765 @end table
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
766 @end defvar
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
767
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
768 @defvar eudc-max-servers-to-query
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
769 This variable indicates the maximum number of servers to query when
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
770 performing a multi-server query. The default, @code{nil}, indicates
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
771 that all available servers should be tried.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
772 @end defvar
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
773
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
774
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
775
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
776 @node Creating BBDB Records, Server/Protocol Locals, Multi-server Queries, Usage
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
777 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
778 @section Creating BBDB Records
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
779
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
780 With EUDC, you can automatically create BBDB records
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
781 (@pxref{Top,,BBDB,bbdb,BBDB Manual}) from records you get from a
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
782 directory server. You do this by moving point to the appropriate
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
783 record in a query result display buffer and invoking the command
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
784 @kbd{M-x eudc-insert-record-at-point-into-bbdb} with the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
785 keyboard binding @kbd{b} @footnote{This keybinding does not actually
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
786 call @code{eudc-insert-record-at-point-into-bbdb} but uses
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
787 @code{eudc-try-bbdb-insert} instead.}, or with the menu. EUDC
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
788 cannot update an existing BBDB record and will signal an error if you
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
789 try to insert a record matching an existing one.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
790
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
791 It is also possible to export to BBDB the whole batch of records
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
792 contained in the directory query result with the command
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
793 @kbd{M-x eudc-batch-export-records-to-bbdb}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
794
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
795 Because directory systems may not enforce a strict record format, local
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
796 server installations may use different attribute names and have
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
797 different ways to organize the information. Furthermore BBDB has its own
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
798 record structure. For these reasons converting a record from its
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
799 external directory format to the BBDB format is a highly customizable
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
800 process.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
801
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
802 @defvar eudc-bbdb-conversion-alist
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
803 The value of this variable should be a symbol naming an alist defining a
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
804 mapping between BBDB field names onto directory attribute names records.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
805 This is a protocol-local variable and is initialized upon protocol
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
806 switch (@pxref{Server/Protocol Locals}) The alist is made of cells of the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
807 form @code{(@var{bbdb-field} . @var{spec-or-list})}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
808 @var{bbdb-field} is the name of a field
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
809 that must be defined in your BBDB environment (standard field names are
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
810 @code{name}, @code{company}, @code{net}, @code{phone}, @code{address}
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
811 and @code{notes}).
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
812 @var{spec-or-list} is either a single mapping specification or a list of
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
813 mapping specifications. Lists of mapping specifications are valid for
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
814 the @code{phone} and @code{address} BBDB fields only. @var{spec}s are
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
815 actually s-expressions which are evaluated as follows:
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
816
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
817 @table @asis
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
818 @item a string
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
819 evaluates to itself
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
820 @item a symbol
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
821 evaluates to the symbol value. Symbols corresponding to directory
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
822 attribute names present in the record evaluate to the value of the field
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
823 in the record
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
824 @item a form
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
825 is evaluated as a function. The argument list may contain attribute
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
826 names which evaluate to the corresponding values in the record. The form
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
827 evaluation should return something appropriate for the particular
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
828 @var{bbdb-field} (see @code{bbdb-create-internal}).
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
829 @code{eudc-bbdbify-phone} and @code{eudc-bbdbify-address} are provided as
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
830 convenience functions to parse phones and addresses.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
831 @end table
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
832 @end defvar
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
833
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
834 The default value of the PH-specific value of that variable is
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
835 @code{eudc-ph-bbdb-conversion-alist}:
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
836
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
837 @lisp
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
838 ((name . name)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
839 (net . email)
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
840 (address . (eudc-bbdbify-address address "Address"))
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
841 (phone . ((eudc-bbdbify-phone phone "Phone")
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
842 (eudc-bbdbify-phone office_phone "Office Phone"))))
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
843 @end lisp
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
844
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
845 This means that:
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
846
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
847 @itemize @bullet
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
848 @item
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
849 the @code{name} field of the BBDB record gets its value
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
850 from the @code{name} attribute of the directory record
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
851 @item
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
852 the @code{net} field of the BBDB record gets its value
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
853 from the @code{email} attribute of the directory record
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
854 @item
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
855 the @code{address} field of the BBDB record is obtained by parsing the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
856 @code{address} attribute of the directory record with the function
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
857 @code{eudc-bbdbify-address}
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
858 @item
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
859 two @code{phone} fields are created (when possible) in the BBDB record.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
860 The first one has @cite{Phone} for location and its value is obtained by
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
861 parsing the @code{phone} attribute of the PH/QI record with the function
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
862 @code{eudc-bbdbify-phone}. The second one has @cite{Office Phone} for location
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
863 its value is obtained by parsing the @code{office_phone} attribute of the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
864 PH/QI record with the function @code{eudc-bbdbify-phone}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
865 @end itemize
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
866
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
867 @defun eudc-bbdbify-phone phone location
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
868 This is a convenience function provided for use in
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
869 @code{eudc-bbdb-conversion-alist}. It parses @var{phone} into a vector
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
870 compatible with @code{bbdb-create-internal}. @var{phone} is either a string
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
871 supposedly containing a phone number or a list of such strings which are
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
872 concatenated. @var{location} is used as the phone location for BBDB.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
873 @end defun
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
874
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
875 @defun eudc-bbdbify-address addr location
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
876 This is a convenience function provided for use in
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
877 @code{eudc-bbdb-conversion-alist}. It parses @var{addr} into a vector
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
878 compatible with @code{bbdb-create-internal}. @var{addr} should be an
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
879 address string of no more than four lines or a list of lines. The last
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
880 line is searched for the zip code, city and state name. @var{location}
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
881 is used as the phone location for BBDB.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
882 @end defun
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
883
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
884 Note that only a subset of the attributes you selected with
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
885 @code{eudc-default-return-attributes} and that are actually displayed may
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
886 actually be inserted as part of the newly created BBDB record.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
887
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
888
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
889 @node Server/Protocol Locals, , Creating BBDB Records, Usage
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
890 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
891 @section Server/Protocol Locals
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
892
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
893 EUDC can be customized independently for each server or directory
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
894 protocol. All variables can be given local bindings that are activated
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
895 when a particular server and/or protocol becomes active. This is much
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
896 like buffer-local bindings but on a per server or per protocol basis.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
897
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
898 @menu
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
899 * Manipulating local bindings:: Functions to set and query local bindings
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
900 @end menu
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
901
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
902 @node Manipulating local bindings, , Server/Protocol Locals, Server/Protocol Locals
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
903 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
904 @subsection Manipulating local bindings
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
905
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
906 EUDC offers functions that let you set and query variables on a per
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
907 server or per protocol basis.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
908
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
909 The following predicates allow you to test the existence of
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
910 server/protocol local bindings for a particular variable.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
911
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
912 @defun eudc-server-local-variable-p var
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
913 Return non-@code{nil} if @var{var} has server-local bindings
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
914 @end defun
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
915
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
916 @defun eudc-protocol-local-variable-p var
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
917 Return non-@code{nil} if @var{var} has protocol-local bindings
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
918 @end defun
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
919
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
920 The following functions allow you to set the value of a variable with
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
921 various degrees of localness.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
922
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
923 @defun eudc-default-set var val
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
924 Set the EUDC default value of @var{var} to @var{val}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
925 The current binding of @var{var} (if local to the current server or
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
926 protocol) is not changed.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
927 @end defun
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
928
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
929 @defun eudc-protocol-set var val &optional protocol
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
930 Set the binding of @var{var} local to @var{protocol} to @var{val}. If
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
931 omitted, @var{protocol} defaults to the current value of
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
932 @code{eudc-protocol}. The current binding of @var{var} is changed only
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
933 if @var{protocol} is omitted.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
934 @end defun
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
935
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
936 @defun eudc-server-set var val &optional server
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
937 Set the binding of @var{var} local to @var{server} to @var{val}. If
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
938 omitted, @var{server} defaults to the current value of
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
939 @code{eudc-server}. The current binding of @var{var} is changed only if
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
940 @var{server} is omitted.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
941 @end defun
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
942
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
943 @defun eudc-set var val
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
944 Set the most local (server, protocol or default) binding of @var{var} to
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
945 @var{val}. The current binding of @var{var} is also set to @var{val}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
946 @end defun
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
947
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
948 The following variables allow you to query the various bindings of a
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
949 variable (local or non-local).
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
950
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
951 @defun eudc-variable-default-value var
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
952 Return the default binding of @var{var} (outside of a particular server
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
953 or protocol local binding).
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
954 Return @code{unbound} if @var{var} has no EUDC default value.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
955 @end defun
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
956
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
957 @defun eudc-variable-protocol-value var &optional protocol
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
958 Return the value of @var{var} local to @var{protocol}. Return
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
959 @code{unbound} if @var{var} has no value local to @var{protocol}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
960 @var{protocol} defaults to @code{eudc-protocol}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
961 @end defun
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
962
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
963 @defun eudc-variable-server-value var [server]
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
964 Return the value of @var{var} local to @var{server}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
965 Return @code{unbound} if @var{var} has no value local to @var{server}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
966 @var{server} defaults to @code{eudc-server}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
967 @end defun
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
968
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
969
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
970 Changing a protocol-local or server-local value of a variable has no
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
971 effect on its current value. The following command is used to
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
972 synchronize the current values of variables with their local values
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
973 given the current @code{eudc-server} and @code{eudc-protocol}:
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
974
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
975 @defun eudc-update-local-variables
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
976 Update all EUDC variables according to their local settings.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
977 @end defun
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
978
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
979
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
980
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
981 @node Credits, Variables Index, Usage, Top
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
982 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
983 @chapter Credits
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
984
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
985 EUDC was written by Oscar Figueiredo based on @file{ph.el} by the
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
986 same author.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
987
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
988 Thanks to Soren Dayton for his suggestions, his enthusiasm and his help
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
989 in testing and proofreading the code and docs of @file{ph.el}.
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
990
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
991 @node Variables Index, , Credits, Top
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
992 @comment node-name, next, previous, up
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
993 @unnumbered Variables Index
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
994
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
995 @printindex vr
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
996
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
997 @contents
6e868e0bc324 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
998 @bye