Mercurial > emacs
annotate lisp/net/eudcb-mab.el @ 72335:d6694b6039c1
(facemenu-add-face): Pass frame to facemenu-active-faces.
(facemenu-set-face): Doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 10 Aug 2006 04:00:34 +0000 |
parents | 067115a6e738 |
children | 0245a94c8ed9 |
rev | line source |
---|---|
66592
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
1 ;;; eudcb-mab.el --- Emacs Unified Directory Client - AddressBook backend |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
2 |
68648
067115a6e738
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
66651
diff
changeset
|
3 ;; Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
66592
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
4 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
5 ;; Author: John Wiegley <johnw@newartisans.com> |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
6 ;; Keywords: comm |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
7 |
66648
3dbeee07bb77
Now part of GNU Emacs. Update FSF's address. Update copyright years.
Romain Francoise <romain@orebokech.com>
parents:
66623
diff
changeset
|
8 ;; This file is part of GNU Emacs. |
66592
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
9 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
10 ;; This program is free software; you can redistribute it and/or |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
11 ;; modify it under the terms of the GNU General Public License as |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
12 ;; published by the Free Software Foundation; either version 2, or (at |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
13 ;; your option) any later version. |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
14 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
15 ;; This program is distributed in the hope that it will be useful, but |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
18 ;; General Public License for more details. |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
19 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
20 ;; You should have received a copy of the GNU General Public License |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
66648
3dbeee07bb77
Now part of GNU Emacs. Update FSF's address. Update copyright years.
Romain Francoise <romain@orebokech.com>
parents:
66623
diff
changeset
|
22 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
3dbeee07bb77
Now part of GNU Emacs. Update FSF's address. Update copyright years.
Romain Francoise <romain@orebokech.com>
parents:
66623
diff
changeset
|
23 ;; Boston, MA 02110-1301, USA. |
66592
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
24 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
25 ;;; Commentary: |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
26 ;; This library provides an interface to use the Mac's AddressBook, |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
27 ;; by way of the "contacts" command-line utility which can be found |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
28 ;; by searching on the Net. |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
29 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
30 ;;; Code: |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
31 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
32 (require 'eudc) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
33 (require 'executable) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
34 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
35 ;;{{{ Internal cooking |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
36 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
37 (defvar eudc-mab-conversion-alist nil) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
38 (defvar eudc-buffer-time nil) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
39 (defvar eudc-contacts-file |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
40 "~/Library/Application Support/AddressBook/AddressBook.data") |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
41 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
42 (eudc-protocol-set 'eudc-query-function 'eudc-mab-query-internal 'mab) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
43 (eudc-protocol-set 'eudc-list-attributes-function nil 'mab) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
44 (eudc-protocol-set 'eudc-mab-conversion-alist nil 'mab) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
45 (eudc-protocol-set 'eudc-protocol-has-default-query-attributes nil 'mab) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
46 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
47 (defun eudc-mab-query-internal (query &optional return-attrs) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
48 "Query MAB with QUERY. |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
49 QUERY is a list of cons cells (ATTR . VALUE) where ATTRs should be valid |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
50 MAB attribute names. |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
51 RETURN-ATTRS is a list of attributes to return, defaulting to |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
52 `eudc-default-return-attributes'." |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
53 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
54 (let ((fmt-string "%ln:%fn:%p:%e") |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
55 (mab-buffer (get-buffer-create " *mab contacts*")) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
56 (modified (nth 5 (file-attributes eudc-contacts-file))) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
57 result) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
58 (with-current-buffer mab-buffer |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
59 (make-local-variable 'eudc-buffer-time) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
60 (goto-char (point-min)) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
61 (when (or (eobp) (time-less-p eudc-buffer-time modified)) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
62 (erase-buffer) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
63 (call-process (executable-find "contacts") nil t nil |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
64 "-H" "-l" "-f" fmt-string) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
65 (setq eudc-buffer-time modified)) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
66 (goto-char (point-min)) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
67 (while (not (eobp)) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
68 (let* ((args (split-string (buffer-substring (point) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
69 (line-end-position)) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
70 "\\s-*:\\s-*")) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
71 (lastname (nth 0 args)) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
72 (firstname (nth 1 args)) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
73 (phone (nth 2 args)) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
74 (mail (nth 3 args)) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
75 (matched t)) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
76 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
77 (if (string-match "\\s-+\\'" mail) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
78 (setq mail (replace-match "" nil nil mail))) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
79 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
80 (dolist (term query) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
81 (cond |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
82 ((eq (car term) 'name) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
83 (unless (string-match (cdr term) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
84 (concat firstname " " lastname)) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
85 (setq matched nil))) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
86 ((eq (car term) 'email) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
87 (unless (string= (cdr term) mail) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
88 (setq matched nil))) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
89 ((eq (car term) 'phone)))) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
90 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
91 (when matched |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
92 (setq result |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
93 (cons `((firstname . ,firstname) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
94 (lastname . ,lastname) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
95 (name . ,(concat firstname " " lastname)) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
96 (phone . ,phone) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
97 (email . ,mail)) result)))) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
98 (forward-line))) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
99 (if (null return-attrs) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
100 result |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
101 (let (eudc-result) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
102 (dolist (entry result) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
103 (let (entry-attrs abort) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
104 (dolist (attr entry) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
105 (when (memq (car attr) return-attrs) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
106 (if (= (length (cdr attr)) 0) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
107 (setq abort t) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
108 (setq entry-attrs |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
109 (cons attr entry-attrs))))) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
110 (if (and entry-attrs (not abort)) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
111 (setq eudc-result |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
112 (cons entry-attrs eudc-result))))) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
113 eudc-result)))) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
114 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
115 ;;}}} |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
116 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
117 ;;{{{ High-level interfaces (interactive functions) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
118 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
119 (defun eudc-mab-set-server (dummy) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
120 "Set the EUDC server to MAB." |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
121 (interactive) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
122 (eudc-set-server dummy 'mab) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
123 (message "MAB server selected")) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
124 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
125 ;;}}} |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
126 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
127 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
128 (eudc-register-protocol 'mab) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
129 |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
130 (provide 'eudcb-mab) |
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
131 |
66623 | 132 ;; arch-tag: 4bef8e65-f109-47c7-91b9-8a6ea3ed7bb1 |
66592
a30dfd31ff22
(eudc-mab-query-internal): Added backend support for OS/X's
John Wiegley <johnw@newartisans.com>
parents:
diff
changeset
|
133 ;;; eudcb-mab.el ends here |