* Use of purecopy()
@ 2009-11-03 10:00 Nordlöw
0 siblings, 0 replies; only message in thread
From: Nordlöw @ 2009-11-03 10:00 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-03 10:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-03 10:00 Use of purecopy() Nordlöw
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).