all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Glenn Morris <rgm@gnu.org>,
	cyd@stupidchicken.com, emacs-devel@gnu.org, rms@gnu.org,
	schwab@suse.de
Subject: Re: cvs emacs and (system-name)
Date: 19 Apr 2007 12:25:01 -0600	[thread overview]
Message-ID: <m38xcoz0g2.fsf@localhost.localdomain> (raw)
In-Reply-To: <jwv3b2wwdib.fsf-monnier+emacs@gnu.org>

>>>>> "Stefan" == Stefan Monnier <monnier@iro.umontreal.ca> 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

  reply	other threads:[~2007-04-19 18:25 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-17 18:31 cvs emacs and (system-name) Tom Tromey
2007-04-17 19:05 ` Andreas Schwab
2007-04-17 18:50   ` Tom Tromey
2007-04-17 19:45     ` Chong Yidong
2007-04-17 19:30       ` Tom Tromey
2007-04-18 14:55         ` Richard Stallman
2007-04-18 17:17           ` Glenn Morris
2007-04-18 21:40             ` Tom Tromey
2007-04-19  5:00               ` Glenn Morris
2007-04-19 16:14                 ` Stefan Monnier
2007-04-19 18:25                   ` Tom Tromey [this message]
2007-04-19 18:48                     ` Chong Yidong
2007-04-19 21:25                     ` Stefan Monnier
2007-04-19 21:23                 ` Stefan Monnier
2007-04-19 21:30                   ` Chong Yidong
2007-04-19 21:31                     ` Glenn Morris
2007-04-20 14:52                   ` Richard Stallman
2007-04-20 21:39                     ` Chong Yidong
2007-04-19 23:17                 ` Richard Stallman
2007-04-20  1:27                   ` Glenn Morris
2007-04-19 13:42             ` Richard Stallman
2007-04-19 17:05               ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m38xcoz0g2.fsf@localhost.localdomain \
    --to=tromey@redhat.com \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rgm@gnu.org \
    --cc=rms@gnu.org \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.