]> git.eshelyaron.com Git - emacs.git/commitdiff
Test for network process support with featurep.
authorKim F. Storm <storm@cua.dk>
Thu, 21 Mar 2002 12:37:23 +0000 (12:37 +0000)
committerKim F. Storm <storm@cua.dk>
Thu, 21 Mar 2002 12:37:23 +0000 (12:37 +0000)
lisp/simple.el
src/ChangeLog

index 57493bb06e29157492efaaba1bc227c65a97922f..29a0f2a34acef2cd51405e1e49b076db1eb544ee 100644 (file)
@@ -4206,7 +4206,7 @@ See also `normal-erase-is-backspace'."
 
 ;;; make-network-process wrappers
 
-(if (fboundp 'make-network-process)
+(if (featurep 'make-network-process)
     (progn
 
 (defun open-network-stream (name buffer host service)
@@ -4271,7 +4271,7 @@ does not use these function."
       (make-network-process :name name :buffer buffer
                            :service service :server t :noquery t)))
 
-))  ;; (fboundp 'make-network-process)
+))  ;; (featurep 'make-network-process)
 
 
 ;; compatibility
index d215a29bd70252ba86b7c1a28d5167d797939604..05a22d7e8eea47638af9b38e463e05da46bff6bb 100644 (file)
@@ -1,3 +1,31 @@
+2002-03-21  Kim F. Storm  <storm@cua.dk>
+
+       * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
+       removed the wrong version of the DEFUN macro; fixed it.
+
+       * fns.c (Ffeaturep): Allow subfeature to be a list (test using
+       Fmember rather than Fmemq).
+       (Fprovide): Check that subfeatures is a list.
+
+       * process.c (QCfeature, QCdatagram): Removed variables.
+       (QCtype, Qdatagram): New variables.
+       (network_process_featurep): Removed function.
+       (Fmake_network_process): Removed :feature check.
+       Use :type 'datagram instead of :datagram t to create a datagram
+       socket.  This allows us to add other connection types (e.g. raw
+       sockets) later in a consistent manner.
+       (init_process) [subprocess]: Provide list of supported subfeatures
+       for feature make-network-process.
+       (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
+       Intern and staticpro QCtype and Qdatagram.
+       (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
+
+       * xfns.c: (QCtype): Remove duplicate declaration and
+       initialization (is now declared in process.c).
+
+       * w32fns.c: (QCtype): Remove duplicate declaration and
+       initialization (is now declared in process.c).
+
 2002-03-21  Richard M. Stallman  <rms@gnu.org>
 
        * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.