aboutsummaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorDan Nicolaescu2009-10-24 06:32:03 +0000
committerDan Nicolaescu2009-10-24 06:32:03 +0000
commit905a9ed3923847f0323b5ad6f2e26558336fe9c0 (patch)
tree4cb4582eacfa663d308fc7152e8d0fb277624977 /src/eval.c
parent1dee7c238bf93b8192cbb615f408bed230fefeda (diff)
downloademacs-905a9ed3923847f0323b5ad6f2e26558336fe9c0.tar.gz
emacs-905a9ed3923847f0323b5ad6f2e26558336fe9c0.zip
* keymap.c (Fmake_sparse_keymap): Purecopy the name.
* eval.c (Fautoload): Purecopy the filename. Simplify. * category.c (Fdefine_category): Purecopy docstring. * international/mule-cmds.el (set-language-info-alist): Purecopy lang-env. (leim-list-header, leim-list-entry-regexp): Change defvars to defconst. (charset): Purecopy the name. (define-char-code-property): Purecopy string arguments. * emacs-lisp/byte-run.el (make-obsolete, make-obsolete-variable): Purecopy string arguments. * emacs-lisp/lisp-mode.el (emacs-lisp-mode-map): * ediff-hook.el (menu-bar-ediff-menu): * buff-menu.el (Buffer-menu-mode-map): Purecopy names and tooltips. * bookmark.el (menu-bar-bookmark-map): Add :help and purecopy the name.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/eval.c b/src/eval.c
index 4611731a65e..136b75f756b 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -2096,7 +2096,6 @@ then strings and vectors are not accepted. */)
2096 return Qnil; 2096 return Qnil;
2097} 2097}
2098 2098
2099/* ARGSUSED */
2100DEFUN ("autoload", Fautoload, Sautoload, 2, 5, 0, 2099DEFUN ("autoload", Fautoload, Sautoload, 2, 5, 0,
2101 doc: /* Define FUNCTION to autoload from FILE. 2100 doc: /* Define FUNCTION to autoload from FILE.
2102FUNCTION is a symbol; FILE is a file name string to pass to `load'. 2101FUNCTION is a symbol; FILE is a file name string to pass to `load'.
@@ -2113,9 +2112,7 @@ this does nothing and returns nil. */)
2113 (function, file, docstring, interactive, type) 2112 (function, file, docstring, interactive, type)
2114 Lisp_Object function, file, docstring, interactive, type; 2113 Lisp_Object function, file, docstring, interactive, type;
2115{ 2114{
2116#ifdef NO_ARG_ARRAY
2117 Lisp_Object args[4]; 2115 Lisp_Object args[4];
2118#endif
2119 2116
2120 CHECK_SYMBOL (function); 2117 CHECK_SYMBOL (function);
2121 CHECK_STRING (file); 2118 CHECK_STRING (file);
@@ -2131,16 +2128,15 @@ this does nothing and returns nil. */)
2131 not useful and else we get loads of them from the loaddefs.el. */ 2128 not useful and else we get loads of them from the loaddefs.el. */
2132 LOADHIST_ATTACH (Fcons (Qautoload, function)); 2129 LOADHIST_ATTACH (Fcons (Qautoload, function));
2133 2130
2134#ifdef NO_ARG_ARRAY 2131 if (NILP (Vpurify_flag))
2135 args[0] = file; 2132 args[0] = file;
2133 else
2134 args[0] = Fpurecopy (file);
2136 args[1] = docstring; 2135 args[1] = docstring;
2137 args[2] = interactive; 2136 args[2] = interactive;
2138 args[3] = type; 2137 args[3] = type;
2139 2138
2140 return Ffset (function, Fcons (Qautoload, Flist (4, &args[0]))); 2139 return Ffset (function, Fcons (Qautoload, Flist (4, &args[0])));
2141#else /* NO_ARG_ARRAY */
2142 return Ffset (function, Fcons (Qautoload, Flist (4, &file)));
2143#endif /* not NO_ARG_ARRAY */
2144} 2140}
2145 2141
2146Lisp_Object 2142Lisp_Object