From: Nordlöw <per.nordlow@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Use of purecopy()
Date: Tue, 3 Nov 2009 02:00:56 -0800 (PST) [thread overview]
Message-ID: <7db147f3-8de9-4b69-b7e0-d8e1a9983cc6@m26g2000yqb.googlegroups.com> (raw)
I have seen a lot adding of purecopy() to Emacs CVS.
Why? Does it reduce memory use and performance?
Should it be used everywhere we have static string initializations in
emacs-lisp code?
I discovered it in Emacs CVS python.el and I have seen that emacs/lisp/
ChangeLog contains lots of such changes.
Here are two sample lines taken from python.el
(add-to-list 'auto-mode-alist (cons (purecopy "\\.py\\'") 'python-
mode))
(add-to-list 'same-window-buffer-names (purecopy "*Python*"))
Is this some special case where purecopy() is especially motivated?
Thanks in advance,
Nordlöw
reply other threads:[~2009-11-03 10:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7db147f3-8de9-4b69-b7e0-d8e1a9983cc6@m26g2000yqb.googlegroups.com \
--to=per.nordlow@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.