comparison src/lread.c @ 47021:3bd4234e0844

(build_load_history): Use Fmember to see if a definition is already in the Vload_history element. (syms_of_lread): Doc fix.
author Richard M. Stallman <rms@gnu.org>
date Sat, 24 Aug 2002 03:17:18 +0000
parents c246e05b9c70
children 04a4d5eda995
comparison
equal deleted inserted replaced
47020:de9a20871faa 47021:3bd4234e0844
1199 1199
1200 while (CONSP (tem2)) 1200 while (CONSP (tem2))
1201 { 1201 {
1202 newelt = XCAR (tem2); 1202 newelt = XCAR (tem2);
1203 1203
1204 if (NILP (Fmemq (newelt, tem))) 1204 if (NILP (Fmember (newelt, tem)))
1205 Fsetcar (tail, Fcons (XCAR (tem), 1205 Fsetcar (tail, Fcons (XCAR (tem),
1206 Fcons (newelt, XCDR (tem)))); 1206 Fcons (newelt, XCDR (tem))));
1207 1207
1208 tem2 = XCDR (tem2); 1208 tem2 = XCDR (tem2);
1209 QUIT; 1209 QUIT;
3758 DEFVAR_LISP ("load-history", &Vload_history, 3758 DEFVAR_LISP ("load-history", &Vload_history,
3759 doc: /* Alist mapping source file names to symbols and features. 3759 doc: /* Alist mapping source file names to symbols and features.
3760 Each alist element is a list that starts with a file name, 3760 Each alist element is a list that starts with a file name,
3761 except for one element (optional) that starts with nil and describes 3761 except for one element (optional) that starts with nil and describes
3762 definitions evaluated from buffers not visiting files. 3762 definitions evaluated from buffers not visiting files.
3763 The remaining elements of each list are symbols defined as functions 3763 The remaining elements of each list are symbols defined as functions,
3764 or variables, and cons cells `(provide . FEATURE)', `(require . FEATURE)', 3764 and cons cells of the form `(provide . FEATURE)', `(require . FEATURE)',
3765 and `(autoload . SYMBOL)'. */); 3765 `(defvar . VARIABLE), and `(autoload . SYMBOL)'. */);
3766 Vload_history = Qnil; 3766 Vload_history = Qnil;
3767 3767
3768 DEFVAR_LISP ("load-file-name", &Vload_file_name, 3768 DEFVAR_LISP ("load-file-name", &Vload_file_name,
3769 doc: /* Full name of file being loaded by `load'. */); 3769 doc: /* Full name of file being loaded by `load'. */);
3770 Vload_file_name = Qnil; 3770 Vload_file_name = Qnil;