From: Xue Fuqiao <xfq.free@gmail.com>
To: Andy Moreton <andrewjmoreton@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: About `name' in loadup.el
Date: Mon, 11 Mar 2013 06:37:47 +0800 [thread overview]
Message-ID: <20130311063747.c9770a86852e180d10c2ba6b@gmail.com> (raw)
In-Reply-To: <82sj43f2jd.fsf@gmail.com>
On Sun, 10 Mar 2013 20:00:38 +0000
Andy Moreton <andrewjmoreton@gmail.com> 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
next prev parent reply other threads:[~2013-03-10 22:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-10 6:38 About `name' in loadup.el Xue Fuqiao
2013-03-10 6:49 ` Jambunathan K
2013-03-10 7:07 ` Xue Fuqiao
2013-03-10 20:00 ` Andy Moreton
2013-03-10 22:37 ` Xue Fuqiao [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-03-10 0:11 Xue Fuqiao
2013-03-10 0:44 ` Pascal J. Bourguignon
2013-03-10 3:51 ` Eli Zaretskii
2013-03-10 11:27 ` Thien-Thi Nguyen
2013-03-10 13:02 ` Xue Fuqiao
2013-03-13 10:35 ` Thien-Thi Nguyen
2013-03-13 11:10 ` Xue Fuqiao
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130311063747.c9770a86852e180d10c2ba6b@gmail.com \
--to=xfq.free@gmail.com \
--cc=andrewjmoreton@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).