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: Sun, 10 Mar 2013 15:07:44 +0800 Organization: The Church of Emacs Message-ID: <20130310150744.7b8112be0ac72712658a6db6@gmail.com> References: <20130310143815.79a2a26ee9ffc88b53cf08d5@gmail.com> <874ngjagwf.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 1362899284 25803 80.91.229.3 (10 Mar 2013 07:08:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Mar 2013 07:08:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Jambunathan K Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 10 08:08:28 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 1UEaMt-0006hP-6g for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Mar 2013 08:08:27 +0100 Original-Received: from localhost ([::1]:52308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEaMX-0006MW-14 for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Mar 2013 03:08:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEaMK-0006ML-Vs for help-gnu-emacs@gnu.org; Sun, 10 Mar 2013 03:07:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UEaMJ-00023V-SU for help-gnu-emacs@gnu.org; Sun, 10 Mar 2013 03:07:52 -0400 Original-Received: from mail-pb0-f47.google.com ([209.85.160.47]:51982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEaMJ-00022Z-L5 for help-gnu-emacs@gnu.org; Sun, 10 Mar 2013 03:07:51 -0400 Original-Received: by mail-pb0-f47.google.com with SMTP id rp2so2656714pbb.20 for ; Sat, 09 Mar 2013 23:07:50 -0800 (PST) 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=OM9NspNw6ljsRhqEVOu1Bj8eJSdHpE35k0ZY9C3nSbk=; b=fsfqpgtWz7vk9kQE31Mt4h3ff8WLJJGZM7LEWeHZ67vJ6SEOk0VjU+V4P0WllQ/GxF L5kSuf752tAsxqu5I8dzDZ9diEgA1MwyXCnRvnrGF1ekJS78AuK0pp1RsZNbJrAbzWs+ eQAuNNO85rrKN5kCSILM//kAbhLnZ6/zGKKAwxS7om95OhEpCh3yVutlJpgV+kKoqr+i yjq0QlQyExwb346RQkUP6kODM4ZQtluhEPz7pV6kbDJa1O1DNFkWUHYoIOaHN4hO9Lx0 CZvy2iTsczy9wobvgahizrKbz/rHXPpxt+DgWhSbW2xhsSGF5O043o+bw6bd6d22xbku CHrw== X-Received: by 10.68.237.100 with SMTP id vb4mr17593718pbc.202.1362899270711; Sat, 09 Mar 2013 23:07:50 -0800 (PST) Original-Received: from Emacs ([123.114.124.78]) by mx.google.com with ESMTPS id eg1sm14047408pbb.33.2013.03.09.23.07.47 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 09 Mar 2013 23:07:49 -0800 (PST) In-Reply-To: <874ngjagwf.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.47 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:89456 Archived-At: On Sun, 10 Mar 2013 12:19:20 +0530 Jambunathan K wrote: > Xue Fuqiao writes: > > >> > 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'? > >> > >> It's a 'while', not an 'if'. > > > > Can you explain it more detailed? Do you mean `emacs-version' won't > > contain "-+_.a-zA-Z0-9"? [...] > So it is stripping stuff. I see. It makes the program more robust, isn't it? > I am reminded of `replace-regexp-in-string'. I am reminded of the `strip' function in GNU `make'. -- Best regards, Xue Fuqiao. http://www.emacswiki.org/emacs/XueFuqiao