From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Allow specifying services as symbols? Date: Tue, 19 Oct 2010 18:20:55 -0400 Message-ID: <8739s19648.fsf@stupidchicken.com> References: <49549.130.55.132.18.1287523965.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1287526869 30604 80.91.229.12 (19 Oct 2010 22:21:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Oct 2010 22:21:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: herring@lanl.gov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 20 00:21:06 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P8KYK-0008U3-Fm for ged-emacs-devel@m.gmane.org; Wed, 20 Oct 2010 00:21:04 +0200 Original-Received: from localhost ([127.0.0.1]:44347 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8KYJ-0001jV-Py for ged-emacs-devel@m.gmane.org; Tue, 19 Oct 2010 18:21:03 -0400 Original-Received: from [140.186.70.92] (port=56848 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8KYD-0001jF-Tw for emacs-devel@gnu.org; Tue, 19 Oct 2010 18:20:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8KYC-0004e3-QG for emacs-devel@gnu.org; Tue, 19 Oct 2010 18:20:57 -0400 Original-Received: from pantheon-po26.its.yale.edu ([130.132.50.121]:40318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8KYC-0004dy-NG for emacs-devel@gnu.org; Tue, 19 Oct 2010 18:20:56 -0400 Original-Received: from furry (dhcp128036014158.central.yale.edu [128.36.14.158]) (authenticated bits=0) by pantheon-po26.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o9JMKua5018659 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 19 Oct 2010 18:20:56 -0400 Original-Received: by furry (Postfix, from userid 1000) id E1FF3C018; Tue, 19 Oct 2010 18:20:55 -0400 (EDT) In-Reply-To: <49549.130.55.132.18.1287523965.squirrel@webmail.lanl.gov> (Davis Herring's message of "Tue, 19 Oct 2010 14:32:45 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:131864 Archived-At: "Davis Herring" writes: >> ! :service SERVICE -- SERVICE is name of the service desired (a string >> ! or a symbol) or an integer specifying a port number to connect to. If >> ! SERVICE is t, a random port number is selected for the server. (If >> ! Emacs was compiled with getaddrinfo, a port number can also be >> ! specified as a string, e.g. "http", as well as an integer. This is >> ! not portable.) > > As more of a philosophical objection than anything, t is a symbol. Hmm, good catch. So's nil. So let's back up for a moment, here. Lars, could you provide an example that shows why it's convenient to allow symbols to name services?