[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/subr.el
From: |
Kim F . Storm |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/subr.el |
Date: |
Sun, 15 May 2005 16:42:43 -0400 |
Index: emacs/lisp/subr.el
diff -c emacs/lisp/subr.el:1.448 emacs/lisp/subr.el:1.449
*** emacs/lisp/subr.el:1.448 Sat May 14 13:54:21 2005
--- emacs/lisp/subr.el Sun May 15 20:42:43 2005
***************
*** 1041,1052 ****
FILE should be the name of a library, with no directory name."
(eval-after-load file (read)))
! ;;; make-network-process wrappers
! (if (featurep 'make-network-process)
! (progn
!
! (defun open-network-stream (name buffer host service)
"Open a TCP connection for a service to a host.
Returns a subprocess-object to represent the connection.
Input and output work as for subprocesses; `delete-process' closes it.
--- 1041,1050 ----
FILE should be the name of a library, with no directory name."
(eval-after-load file (read)))
! ;;; open-network-stream is a wrapper around make-network-process.
! (when (featurep 'make-network-process)
! (defun open-network-stream (name buffer host service)
"Open a TCP connection for a service to a host.
Returns a subprocess-object to represent the connection.
Input and output work as for subprocesses; `delete-process' closes it.
***************
*** 1062,1117 ****
SERVICE is name of the service desired, or an integer specifying
a port number to connect to."
(make-network-process :name name :buffer buffer
! :host host :service service))
!
! (defun open-network-stream-nowait (name buffer host service &optional
sentinel filter)
! "Initiate connection to a TCP connection for a service to a host.
! It returns nil if non-blocking connects are not supported; otherwise,
! it returns a subprocess-object to represent the connection.
!
! This function is similar to `open-network-stream', except that it
! returns before the connection is established. When the connection
! is completed, the sentinel function will be called with second arg
! matching `open' (if successful) or `failed' (on error).
!
! Args are NAME BUFFER HOST SERVICE SENTINEL FILTER.
! NAME, BUFFER, HOST, and SERVICE are as for `open-network-stream'.
! Optional args SENTINEL and FILTER specify the sentinel and filter
! functions to be used for this network stream."
! (if (featurep 'make-network-process '(:nowait t))
! (make-network-process :name name :buffer buffer :nowait t
! :host host :service service
! :filter filter :sentinel sentinel)))
!
! (defun open-network-stream-server (name buffer service &optional sentinel
filter)
! "Create a network server process for a TCP service.
! It returns nil if server processes are not supported; otherwise,
! it returns a subprocess-object to represent the server.
!
! When a client connects to the specified service, a new subprocess
! is created to handle the new connection, and the sentinel function
! is called for the new process.
!
! Args are NAME BUFFER SERVICE SENTINEL FILTER.
! NAME is name for the server process. Client processes are named by
! appending the ip-address and port number of the client to NAME.
! BUFFER is the buffer (or buffer name) to associate with the server
! process. Client processes will not get a buffer if a process filter
! is specified or BUFFER is nil; otherwise, a new buffer is created for
! the client process. The name is similar to the process name.
! Third arg SERVICE is name of the service desired, or an integer
! specifying a port number to connect to. It may also be t to select
! an unused port number for the server.
! Optional args SENTINEL and FILTER specify the sentinel and filter
! functions to be used for the client processes; the server process
! does not use these function."
! (if (featurep 'make-network-process '(:server t))
! (make-network-process :name name :buffer buffer
! :service service :server t :noquery t
! :sentinel sentinel :filter filter)))
!
! )) ;; (featurep 'make-network-process)
!
;; compatibility
--- 1060,1066 ----
SERVICE is name of the service desired, or an integer specifying
a port number to connect to."
(make-network-process :name name :buffer buffer
! :host host :service service)))
;; compatibility
***************
*** 2363,2369 ****
"Delete from ALIST all elements whose car is `eq' to KEY.
Return the modified alist.
Elements of ALIST that are not conses are ignored."
! (while (and (consp (car alist))
(eq (car (car alist)) key))
(setq alist (cdr alist)))
(let ((tail alist) tail-cdr)
--- 2312,2318 ----
"Delete from ALIST all elements whose car is `eq' to KEY.
Return the modified alist.
Elements of ALIST that are not conses are ignored."
! (while (and (consp (car alist))
(eq (car (car alist)) key))
(setq alist (cdr alist)))
(let ((tail alist) tail-cdr)
***************
*** 2378,2384 ****
"Delete from ALIST all elements whose cdr is `eq' to VALUE.
Return the modified alist.
Elements of ALIST that are not conses are ignored."
! (while (and (consp (car alist))
(eq (cdr (car alist)) value))
(setq alist (cdr alist)))
(let ((tail alist) tail-cdr)
--- 2327,2333 ----
"Delete from ALIST all elements whose cdr is `eq' to VALUE.
Return the modified alist.
Elements of ALIST that are not conses are ignored."
! (while (and (consp (car alist))
(eq (cdr (car alist)) value))
(setq alist (cdr alist)))
(let ((tail alist) tail-cdr)
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Nick Roberts, 2005/05/01
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Richard M . Stallman, 2005/05/01
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Nick Roberts, 2005/05/01
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Nick Roberts, 2005/05/01
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Luc Teirlinck, 2005/05/02
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Richard M . Stallman, 2005/05/14
- [Emacs-diffs] Changes to emacs/lisp/subr.el,
Kim F . Storm <=
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Nick Roberts, 2005/05/16
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Juanma Barranquero, 2005/05/17
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Juanma Barranquero, 2005/05/18
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Nick Roberts, 2005/05/18
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Richard M . Stallman, 2005/05/19
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Juanma Barranquero, 2005/05/19
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Juanma Barranquero, 2005/05/22
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Lute Kamstra, 2005/05/22
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Lute Kamstra, 2005/05/26
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Richard M . Stallman, 2005/05/29