From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: featurep Date: 21 Mar 2002 14:12:56 +0100 Sender: emacs-devel-admin@gnu.org Message-ID: <5xit7qgj3b.fsf@kfs2.cua.dk> References: <200203190844.g2J8iOq09224@wijiji.santafe.edu> <5xg02wd6cm.fsf@kfs2.cua.dk> <200203210904.g2L94HA10124@wijiji.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1016716557 31134 127.0.0.1 (21 Mar 2002 13:15:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2002 13:15:57 +0000 (UTC) Cc: jasonr@gnu.org, emacs-devel@gnu.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16o2Q8-000862-00 for ; Thu, 21 Mar 2002 14:15:56 +0100 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16o2WM-0007t8-00 for ; Thu, 21 Mar 2002 14:22:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16o2PV-0006MM-00; Thu, 21 Mar 2002 08:15:17 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16o2ML-00061g-00; Thu, 21 Mar 2002 08:12:01 -0500 Original-Received: from kfs2.cua.dk.cua.dk (kfs2.local.filanet.dk [192.168.1.182]) by mail.filanet.dk (Postfix) with SMTP id 8EF3A7C035; Thu, 21 Mar 2002 13:11:59 +0000 (GMT) Original-To: rms@gnu.org In-Reply-To: <200203210904.g2L94HA10124@wijiji.santafe.edu> Original-Lines: 37 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2093 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2093 Richard Stallman writes: > Having make-network-process doing something other than making a > network process is not a more intuitive solution than featurep. > > That is exactly what bothers me about it. > > Perhaps we can implement use of lists as subfeatures. Then > (featurep 'make-network-process '(:family local)) could be used > instead of (make-network-process :feature :family 'local). Good idea. I've done that! Using featurep has the added bonus of being able to test for networking support in general with (featurep 'make-network-process). You can use (get 'make-network-process 'subfeatures) to get a list of all supported (non-standard) networking features. I'm don't know whether this is an officially supported way to access subfeatures (?), but it allows us to enhance e.g. report-emacs-bug to include the list of supported networking features if you think that might be interesting. I didn't include all the standard features, so while (featurep 'make-network-process '(:family local)) returns t iff local sockets are supported, testing with (featurep 'make-network-process '(:family nil)) returns nil, because the default is always supported, so there is no reason to (be able to) test for it. Is that ok? BTW, I've changed Ffeaturep to use Fmember instead of Fmemq to compare features, so we can now use all sorts of data (e.g. lists or strings) as subfeatures. -- Kim F. Storm http://www.cua.dk _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel