From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.help Subject: Re: About `name' in loadup.el Date: Mon, 11 Mar 2013 06:37:47 +0800 Organization: The Church of Emacs Message-ID: <20130311063747.c9770a86852e180d10c2ba6b@gmail.com> References: <20130310143815.79a2a26ee9ffc88b53cf08d5@gmail.com> <874ngjagwf.fsf@gmail.com> <20130310150744.7b8112be0ac72712658a6db6@gmail.com> <82sj43f2jd.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1362955089 19936 80.91.229.3 (10 Mar 2013 22:38:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Mar 2013 22:38:09 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andy Moreton Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 10 23:38:34 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UEot0-0005p3-45 for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Mar 2013 23:38:34 +0100 Original-Received: from localhost ([::1]:59595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEose-0001il-1R for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Mar 2013 18:38:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEosS-0001ig-RG for help-gnu-emacs@gnu.org; Sun, 10 Mar 2013 18:38:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UEosR-0004V3-1L for help-gnu-emacs@gnu.org; Sun, 10 Mar 2013 18:38:00 -0400 Original-Received: from mail-pb0-f54.google.com ([209.85.160.54]:57901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEosQ-0004Ux-RH for help-gnu-emacs@gnu.org; Sun, 10 Mar 2013 18:37:58 -0400 Original-Received: by mail-pb0-f54.google.com with SMTP id rr4so3047779pbb.13 for ; Sun, 10 Mar 2013 15:37:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:in-reply-to :references:organization:x-mailer:mime-version:content-type :content-transfer-encoding; bh=OBIOxV1hNb9MoozatN7m20mwVqGEW+cFNgEoyGIbLfE=; b=wU0K3V/Li/8yRtBJ3DQo14sMMjxEJLcmHx+TvdckHevDr6jus2shjp71Gkgu+35fFw uFbtRSudywn2r/DfB52MW+kU+vuTC3fNVS09ZbqWdBjOK3rQgDFfkLfuSsC0KX9TuPmk MmxlDx/8WirzfV9W3HPYtMxrUyVDrYYxATmgpLZt/rj24hX4L/pSHKF4Yvy9qytRbfB8 mpXOLQuaxNR5lKKY3wSDSDTqdKVOH5xOzX4hIXYmUv2XFgL1c1iE7Ay0AOVx7zM0tw08 KvcPWmeXbetg4hwQMtzNNFZqnZ+jLyWoDViG3fwgmyWV0bblxa+ShxqGM1GhA0+5i9sR BHZg== X-Received: by 10.68.186.132 with SMTP id fk4mr23136232pbc.18.1362955077840; Sun, 10 Mar 2013 15:37:57 -0700 (PDT) Original-Received: from Emacs ([123.114.123.9]) by mx.google.com with ESMTPS id hs8sm17249329pbc.27.2013.03.10.15.37.54 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 10 Mar 2013 15:37:57 -0700 (PDT) In-Reply-To: <82sj43f2jd.fsf@gmail.com> X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.13; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.54 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89465 Archived-At: On Sun, 10 Mar 2013 20:00:38 +0000 Andy Moreton wrote: > >> >> > In lisp/loadup.el: > >> >> > > >> >> > (let ((name (concat "emacs-" emacs-version))) > >> >> > (while (string-match "[^-+_.a-zA-Z0-9]+" name) > >> >> > (setq name (concat (downcase (substring name 0 (match-beginning 0))) > >> >> > "-" > >> >> > (substring name (match-end 0))))) > >> >> > (message "Adding name %s" name) > >> >> > (add-name-to-file "emacs" name t)) [...] > >> >> > And when will characters other than "-+_.a-zA-Z0-9" be in > >> >> > `emacs-version'? [...] > >> So it is stripping stuff. > > I see. It makes the program more robust, isn't it? > The name is used to create a hardlink, so to avoid problems it should > only contain characters that are allowed in portable filenames. This > means removing the non-portable characters and replacing them with > something that all filesystems should be able to cope with. Thanks. -- Best regards, Xue Fuqiao. http://www.emacswiki.org/emacs/XueFuqiao