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: cvs emacs and (system-name) Date: Thu, 19 Apr 2007 17:30:44 -0400 Message-ID: <874pncdpbv.fsf@stupidchicken.com> 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 1177018135 17109 80.91.229.12 (19 Apr 2007 21:28:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2007 21:28:55 +0000 (UTC) Cc: tromey@redhat.com, Glenn Morris , 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 23:28:48 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 1HeeBL-0004s0-OX for ged-emacs-devel@m.gmane.org; Thu, 19 Apr 2007 23:28:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HeeGK-000119-M7 for ged-emacs-devel@m.gmane.org; Thu, 19 Apr 2007 17:33:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HeeGH-000114-3R for emacs-devel@gnu.org; Thu, 19 Apr 2007 17:33:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HeeGE-00010s-Nt for emacs-devel@gnu.org; Thu, 19 Apr 2007 17:33:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HeeGE-00010p-IO for emacs-devel@gnu.org; Thu, 19 Apr 2007 17:33:50 -0400 Original-Received: from cyd.mit.edu ([18.19.1.138]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HeeBD-0007g9-RE; Thu, 19 Apr 2007 17:28:39 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id D5DAD4E68E; Thu, 19 Apr 2007 17:30:44 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Thu\, 19 Apr 2007 17\:23\:30 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.98 (gnu/linux) 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:69663 Archived-At: Stefan Monnier writes: >> ! while (*alias && ( !index (*alias, '.') || >> ! !strcmp (*alias, "localhost.localdomain" ) ) ) > > How 'bout the patch below instead. > > PS: Now that I think about it, maybe a better approach is to look for > an alias that not only has a "." but additionally has the hostname > as prefix. This is what my second patch does. Both patches are > guaranteed 100% untested. Is there any reason to think that we need to solve this for Emacs 22.1?