* space leak in require
@ 2002-11-27 12:22 Dave Love
0 siblings, 0 replies; only message in thread
From: Dave Love @ 2002-11-27 12:22 UTC (permalink / raw)
Calls of `require' for already-provided features cause
`current-load-list' to grow without limit. As far as I can tell,
there's no reason always to call LOADHIST_ATTACH.
2002-11-27 Dave Love <fx@gnu.org>
* fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
already provided.
*** fns.c.~1.286.4.1.~ Fri Oct 11 19:40:14 2002
--- fns.c Wed Nov 27 12:08:10 2002
***************
*** 3076,3087 ****
register Lisp_Object tem;
CHECK_SYMBOL (feature, 0);
tem = Fmemq (feature, Vfeatures);
-
- LOADHIST_ATTACH (Fcons (Qrequire, feature));
if (NILP (tem))
{
int count = specpdl_ptr - specpdl;
/* Value saved here is to be restored into Vautoload_queue */
record_unwind_protect (un_autoload, Vautoload_queue);
--- 3076,3087 ----
register Lisp_Object tem;
CHECK_SYMBOL (feature, 0);
tem = Fmemq (feature, Vfeatures);
if (NILP (tem))
{
int count = specpdl_ptr - specpdl;
+
+ LOADHIST_ATTACH (Fcons (Qrequire, feature));
/* Value saved here is to be restored into Vautoload_queue */
record_unwind_protect (un_autoload, Vautoload_queue);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-27 12:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-27 12:22 space leak in require Dave Love
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.