aboutsummaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/eval.c b/src/eval.c
index 184455f7e7d..120365f5f57 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -2134,8 +2134,6 @@ this does nothing and returns nil. */)
2134 (function, file, docstring, interactive, type) 2134 (function, file, docstring, interactive, type)
2135 Lisp_Object function, file, docstring, interactive, type; 2135 Lisp_Object function, file, docstring, interactive, type;
2136{ 2136{
2137 Lisp_Object args[4];
2138
2139 CHECK_SYMBOL (function); 2137 CHECK_SYMBOL (function);
2140 CHECK_STRING (file); 2138 CHECK_STRING (file);
2141 2139
@@ -2151,8 +2149,11 @@ this does nothing and returns nil. */)
2151 LOADHIST_ATTACH (Fcons (Qautoload, function)); 2149 LOADHIST_ATTACH (Fcons (Qautoload, function));
2152 else 2150 else
2153 /* We don't want the docstring in purespace (instead, 2151 /* We don't want the docstring in purespace (instead,
2154 Snarf-documentation should (hopefully) overwrite it). */ 2152 Snarf-documentation should (hopefully) overwrite it).
2155 docstring = make_number (0); 2153 We used to use 0 here, but that leads to accidental sharing in
2154 purecopy's hash-consing, so we use a (hopefully) unique integer
2155 instead. */
2156 docstring = make_number (XHASH (function));
2156 return Ffset (function, 2157 return Ffset (function,
2157 Fpurecopy (list5 (Qautoload, file, docstring, 2158 Fpurecopy (list5 (Qautoload, file, docstring,
2158 interactive, type))); 2159 interactive, type)));