From: Andy Moreton <andrewjmoreton@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: About `name' in loadup.el
Date: Sun, 10 Mar 2013 20:00:38 +0000 [thread overview]
Message-ID: <82sj43f2jd.fsf@gmail.com> (raw)
In-Reply-To: 20130310150744.7b8112be0ac72712658a6db6@gmail.com
On Sun 10 Mar 2013, Xue Fuqiao wrote:
> On Sun, 10 Mar 2013 12:19:20 +0530
> Jambunathan K <kjambunathan@gmail.com> wrote:
>
>> Xue Fuqiao <xfq.free@gmail.com> 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?
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.
AndyM
next prev parent reply other threads:[~2013-03-10 20:00 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 [this message]
2013-03-10 22:37 ` Xue Fuqiao
-- 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=82sj43f2jd.fsf@gmail.com \
--to=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).