From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: cvs emacs and (system-name) Date: Thu, 19 Apr 2007 17:25:13 -0400 Message-ID: References: <87ps62kcne.fsf@stupidchicken.com> <1todll8uvm.fsf@fencepost.gnu.org> <5qejmhhsbo.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1177017932 16446 80.91.229.12 (19 Apr 2007 21:25:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2007 21:25:32 +0000 (UTC) Cc: Glenn Morris , cyd@stupidchicken.com, emacs-devel@gnu.org, rms@gnu.org, schwab@suse.de To: tromey@redhat.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 19 23:25:25 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 1Hee85-0003jf-0n for ged-emacs-devel@m.gmane.org; Thu, 19 Apr 2007 23:25:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HeeD3-0000ah-KZ for ged-emacs-devel@m.gmane.org; Thu, 19 Apr 2007 17:30:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HeeD0-0000ac-6h for emacs-devel@gnu.org; Thu, 19 Apr 2007 17:30:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HeeCz-0000aQ-Tz for emacs-devel@gnu.org; Thu, 19 Apr 2007 17:30:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HeeCz-0000aN-L1 for emacs-devel@gnu.org; Thu, 19 Apr 2007 17:30:29 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hee7x-0007Eg-SY; Thu, 19 Apr 2007 17:25:18 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 999C12CF420; Thu, 19 Apr 2007 17:25:17 -0400 (EDT) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id EC06F3FE0; Thu, 19 Apr 2007 17:25:13 -0400 (EDT) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id DBE6B6C8C9; Thu, 19 Apr 2007 17:25:13 -0400 (EDT) In-Reply-To: (Tom Tromey's message of "19 Apr 2007 12\:25\:01 -0600") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.94 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: Linux 2.6 (newer, 3) 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:69662 Archived-At: >>>> 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 :) I believe the problem is that it is common to see entries in arbitrary order in there. Especially the fully-qualified entry is not necessarily first (although it should). > 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. And in that case it's indeed rather unimportant which name Emacs chooses. > 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. What I was suggesting (tho implicitly) is to do that whenever the IP address is 127.*.*.*. Stefan