summaryrefslogtreecommitdiff
path: root/src/fns.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-04-17 01:27:53 +0000
committerRichard M. Stallman <rms@gnu.org>1993-04-17 01:27:53 +0000
commite95f63fcf3b015d2b29f2e64a67dce3cd27d3468 (patch)
treef915b34003c3e6a832b44b50dfc216be332b49c8 /src/fns.c
parent4c7c1f327dc4a0f4cf42fb9085af5b3c88175b3f (diff)
downloademacs-e95f63fcf3b015d2b29f2e64a67dce3cd27d3468.tar.gz
(provide, require): Put appropriately-marked
conses in the current-globals list.
Diffstat (limited to 'src/fns.c')
-rw-r--r--src/fns.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fns.c b/src/fns.c
index cca000c148e..a448d49a2f8 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -31,7 +31,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "buffer.h"
#include "keyboard.h"
-Lisp_Object Qstring_lessp;
+Lisp_Object Qstring_lessp, Qprovide, Qrequire;
static Lisp_Object internal_equal ();
@@ -1273,6 +1273,7 @@ DEFUN ("provide", Fprovide, Sprovide, 1, 1, 0,
tem = Fmemq (feature, Vfeatures);
if (NILP (tem))
Vfeatures = Fcons (feature, Vfeatures);
+ LOADHIST_ATTACH (Fcons (Qprovide, feature));
return feature;
}
@@ -1287,6 +1288,7 @@ If FILENAME is omitted, the printname of FEATURE is used as the file name.")
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;
@@ -1314,6 +1316,10 @@ syms_of_fns ()
{
Qstring_lessp = intern ("string-lessp");
staticpro (&Qstring_lessp);
+ Qprovide = intern ("provide");
+ staticpro (&Qprovide);
+ Qrequire = intern ("require");
+ staticpro (&Qrequire);
DEFVAR_LISP ("features", &Vfeatures,
"A list of symbols which are the features of the executing emacs.\n\