Mercurial > emacs
comparison lisp/net/eudcb-ph.el @ 88155:d7ddb3e565de
sync with trunk
author | Henrik Enberg <henrik.enberg@telia.com> |
---|---|
date | Mon, 16 Jan 2006 00:03:54 +0000 |
parents | b136d94976d9 |
children |
comparison
equal
deleted
inserted
replaced
88154:8ce476d3ba36 | 88155:d7ddb3e565de |
---|---|
1 ;;; eudcb-ph.el --- Emacs Unified Directory Client - CCSO PH/QI Backend | 1 ;;; eudcb-ph.el --- Emacs Unified Directory Client - CCSO PH/QI Backend |
2 | 2 |
3 ;; Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc. | 3 ;; Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, |
4 ;; 2005 Free Software Foundation, Inc. | |
4 | 5 |
5 ;; Author: Oscar Figueiredo <oscar@cpe.fr> | 6 ;; Author: Oscar Figueiredo <oscar@cpe.fr> |
6 ;; Maintainer: Pavel Janík <Pavel@Janik.cz> | 7 ;; Maintainer: Pavel Janík <Pavel@Janik.cz> |
7 ;; Keywords: comm | 8 ;; Keywords: comm |
8 | 9 |
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 ;; GNU General Public License for more details. | 20 ;; GNU General Public License for more details. |
20 | 21 |
21 ;; You should have received a copy of the GNU General Public License | 22 ;; You should have received a copy of the GNU General Public License |
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the | 23 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 24 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
24 ;; Boston, MA 02111-1307, USA. | 25 ;; Boston, MA 02110-1301, USA. |
25 | 26 |
26 ;;; Commentary: | 27 ;;; Commentary: |
27 | 28 |
28 ;; This library provides specific CCSO PH/QI protocol support for the | 29 ;; This library provides specific CCSO PH/QI protocol support for the |
29 ;; Emacs Unified Directory Client package. | 30 ;; Emacs Unified Directory Client package. |
181 (and eudc-xemacs-mule-p | 182 (and eudc-xemacs-mule-p |
182 (set-buffer-file-coding-system 'binary t))) | 183 (set-buffer-file-coding-system 'binary t))) |
183 (setq process (open-network-stream "ph" eudc-ph-process-buffer host port)) | 184 (setq process (open-network-stream "ph" eudc-ph-process-buffer host port)) |
184 (if (null process) | 185 (if (null process) |
185 (throw 'done nil)) | 186 (throw 'done nil)) |
186 (process-kill-without-query process) | 187 (set-process-query-on-exit-flag process t) |
187 process))) | 188 process))) |
188 | 189 |
189 (defun eudc-ph-close-session (process) | 190 (defun eudc-ph-close-session (process) |
190 (save-excursion | 191 (save-excursion |
191 (set-buffer (process-buffer process)) | 192 (set-buffer (process-buffer process)) |
242 | 243 |
243 (eudc-register-protocol 'ph) | 244 (eudc-register-protocol 'ph) |
244 | 245 |
245 (provide 'eudcb-ph) | 246 (provide 'eudcb-ph) |
246 | 247 |
248 ;;; arch-tag: 4365bbf5-af20-453e-b5b6-2e7118ebfcdb | |
247 ;;; eudcb-ph.el ends here | 249 ;;; eudcb-ph.el ends here |