* `purecopy' usage in ruby-mode.el and python.el
@ 2012-12-26 18:53 Dmitry Gutov
2012-12-26 19:12 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Gutov @ 2012-12-26 18:53 UTC (permalink / raw)
To: emacs-devel
Hi all,
I see some places in the above files where purecopy is called. But:
Pure storage is allocated only while temacs is loading the standard
preloaded Lisp libraries.
(...)
— Function: purecopy object (...)
This function is a no-op except while Emacs is being built and dumped;
it is usually called only in preloaded Lisp files.
I take this to mean that `purecopy' can only be useful in elisp files
that Emacs preloads during compilation, but not in ruby-mode, python, or
any third-party libraries. Is that true?
Can we remove its uses from non-preloaded packages?
--Dmitry
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: `purecopy' usage in ruby-mode.el and python.el
2012-12-26 18:53 `purecopy' usage in ruby-mode.el and python.el Dmitry Gutov
@ 2012-12-26 19:12 ` Glenn Morris
2012-12-26 19:23 ` Dmitry Gutov
0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2012-12-26 19:12 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: emacs-devel
Dmitry Gutov wrote:
> I take this to mean that `purecopy' can only be useful in elisp files
> that Emacs preloads during compilation, but not in ruby-mode, python, or
> any third-party libraries.
Autoloads end up in loaddefs.el, which is preloaded.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: `purecopy' usage in ruby-mode.el and python.el
2012-12-26 19:12 ` Glenn Morris
@ 2012-12-26 19:23 ` Dmitry Gutov
0 siblings, 0 replies; 3+ messages in thread
From: Dmitry Gutov @ 2012-12-26 19:23 UTC (permalink / raw)
To: Glenn Morris; +Cc: emacs-devel
On 26.12.2012 23:12, Glenn Morris wrote:
> Dmitry Gutov wrote:
>
>> I take this to mean that `purecopy' can only be useful in elisp files
>> that Emacs preloads during compilation, but not in ruby-mode, python, or
>> any third-party libraries.
>
> Autoloads end up in loaddefs.el, which is preloaded.
Ah, I see, thanks.
I'll take this to mean that I should convert the recent addition of
Rakefile to auto-mode-alist to use purecopy, too.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-12-26 19:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-26 18:53 `purecopy' usage in ruby-mode.el and python.el Dmitry Gutov
2012-12-26 19:12 ` Glenn Morris
2012-12-26 19:23 ` Dmitry Gutov
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.