From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: cvs emacs and (system-name) Date: 19 Apr 2007 12:25:01 -0600 Message-ID: References: <87ps62kcne.fsf@stupidchicken.com> <1todll8uvm.fsf@fencepost.gnu.org> <5qejmhhsbo.fsf@fencepost.gnu.org> Reply-To: tromey@redhat.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1177008205 12836 80.91.229.12 (19 Apr 2007 18:43:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2007 18:43:25 +0000 (UTC) Cc: Glenn Morris , cyd@stupidchicken.com, emacs-devel@gnu.org, rms@gnu.org, schwab@suse.de To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 19 20:43:19 2007 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.50) id 1HebbC-0001cM-84 for ged-emacs-devel@m.gmane.org; Thu, 19 Apr 2007 20:43:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HebgA-0007U6-Bn for ged-emacs-devel@m.gmane.org; Thu, 19 Apr 2007 14:48:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HebfP-0006xr-O7 for emacs-devel@gnu.org; Thu, 19 Apr 2007 14:47:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HebfM-0006vt-HG for emacs-devel@gnu.org; Thu, 19 Apr 2007 14:47:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HebfL-0006vV-IN for emacs-devel@gnu.org; Thu, 19 Apr 2007 14:47:35 -0400 Original-Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HebaL-0003ue-CE; Thu, 19 Apr 2007 14:42:25 -0400 Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l3JIgNa7021495; Thu, 19 Apr 2007 14:42:23 -0400 Original-Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l3JIgNXG028444; Thu, 19 Apr 2007 14:42:23 -0400 Original-Received: from opsy.redhat.com (ton.toronto.redhat.com [172.16.14.15]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l3JIgMH2027440; Thu, 19 Apr 2007 14:42:22 -0400 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id 505D288826A; Thu, 19 Apr 2007 12:25:01 -0600 (MDT) X-Attribution: Tom In-Reply-To: Original-Lines: 34 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:69652 Archived-At: >>>>> "Stefan" == Stefan Monnier writes: >>> I don't really have a domain I would put my machine in, and I think >>> a reasonable number of people may fall into this category. Emacs >>> picking "localhost.localdomain" over the actual name of my machine >>> still seems a bit odd. Stefan> But it's kind of difficult for Emacs to guess which of the Stefan> three names you put there is "my machine name". My recollection is that traditionally the first host name is considered the canonical one. 'man 5 hosts' backs me up on this :) Stefan> Maybe "localhost" could be ruled out Stefan> because it's sufficiently standard. But "localhost.localdomain" is not Stefan> particularly standard, AFAIK. I don't recall seeing 'localhost.localdomain' back in the day -- but I know *I* didn't put it there. If Fedora does it then that is standard enough for me; we're talking about thousands or millions of hosts here. Stefan> Maybe the answer is that Emacs should just disregard the Stefan> "127.*.*.*" IP range. I don't have any other entry in /etc/hosts. My machine has no fixed address and is not in a domain. This, I believe, is extremely common among laptop users. Perhaps if only "localhost" and "localhost.localdomain" are found, Emacs could fall back to gethostname(2) or uname(2). With glibc the latter appears to try to return the domain name as well. Tom