help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About `name' in loadup.el


From: Pascal J. Bourguignon
Subject: Re: About `name' in loadup.el
Date: Sun, 10 Mar 2013 01:44:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

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))
>
> I'm confused here.  What does this fragment of code do?  And when will
> characters other than "-+_.a-zA-Z0-9" be in `emacs-version'?  

When you run Xemacs, or some other emacs:

emacs-version --> "21.4 (patch 22) \"Instant Classic\" XEmacs Lucid"


> Can anybody help?  

Probably.


> Thanks.

You're welcome.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]