changeset 44072:434c70e973e8

Explain how to use featurep with make-network-process. Changed :datagram t to :type 'datagram for datagram connection.
author Kim F. Storm <storm@cua.dk>
date Thu, 21 Mar 2002 12:41:49 +0000
parents 32fbb48c7bc6
children 9984126a7008
files etc/NEWS
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/etc/NEWS	Thu Mar 21 12:37:23 2002 +0000
+++ b/etc/NEWS	Thu Mar 21 12:41:49 2002 +0000
@@ -692,11 +692,14 @@
 create a stream or datagram server inside emacs.
 
 - A server is started using :server t arg.
-- Datagram connection is selected using :datagram t arg.
+- Datagram connection is selected using :type 'datagram arg.
 - A server can open on a random port using :service t arg.
 - Local sockets are supported using :family 'local arg.
 - Non-blocking connect is supported using :nowait t arg.
 
+To test for the availability of a given feature, use featurep like this:
+  (featurep 'make-network-process '(:type datagram))
+
 *** Original open-network-stream is now emulated using make-network-process.
 
 *** New function open-network-stream-nowait.