diff options
| author | Joakim Verona | 2012-08-01 13:16:20 +0200 |
|---|---|---|
| committer | Joakim Verona | 2012-08-01 13:16:20 +0200 |
| commit | 610ba6f8ddf2298849cad522b6952bc694f0e63f (patch) | |
| tree | 64548d6651c0501eb5838c566a6902d500228b5f /src/eval.c | |
| parent | 55fa71b3d9bb8609ca3cbb56f92c776ad8724a69 (diff) | |
| parent | 069bac5e5b55c0f63bd2764e727108d2b48b2643 (diff) | |
| download | emacs-610ba6f8ddf2298849cad522b6952bc694f0e63f.tar.gz emacs-610ba6f8ddf2298849cad522b6952bc694f0e63f.zip | |
upstream
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/eval.c b/src/eval.c index e6cd4e8dc27..64f384f2ca9 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -976,7 +976,7 @@ definitions to shadow the loaded ones for use in file byte-compilation. */) | |||
| 976 | tem = Fassq (sym, environment); | 976 | tem = Fassq (sym, environment); |
| 977 | if (NILP (tem)) | 977 | if (NILP (tem)) |
| 978 | { | 978 | { |
| 979 | def = XSYMBOL (sym)->function; | 979 | def = SVAR (XSYMBOL (sym), function); |
| 980 | if (!EQ (def, Qunbound)) | 980 | if (!EQ (def, Qunbound)) |
| 981 | continue; | 981 | continue; |
| 982 | } | 982 | } |
| @@ -1893,9 +1893,9 @@ this does nothing and returns nil. */) | |||
| 1893 | CHECK_STRING (file); | 1893 | CHECK_STRING (file); |
| 1894 | 1894 | ||
| 1895 | /* If function is defined and not as an autoload, don't override. */ | 1895 | /* If function is defined and not as an autoload, don't override. */ |
| 1896 | if (!EQ (XSYMBOL (function)->function, Qunbound) | 1896 | if (!EQ (SVAR (XSYMBOL (function), function), Qunbound) |
| 1897 | && !(CONSP (XSYMBOL (function)->function) | 1897 | && !(CONSP (SVAR (XSYMBOL (function), function)) |
| 1898 | && EQ (XCAR (XSYMBOL (function)->function), Qautoload))) | 1898 | && EQ (XCAR (SVAR (XSYMBOL (function), function)), Qautoload))) |
| 1899 | return Qnil; | 1899 | return Qnil; |
| 1900 | 1900 | ||
| 1901 | if (NILP (Vpurify_flag)) | 1901 | if (NILP (Vpurify_flag)) |
| @@ -2081,7 +2081,7 @@ eval_sub (Lisp_Object form) | |||
| 2081 | /* Optimize for no indirection. */ | 2081 | /* Optimize for no indirection. */ |
| 2082 | fun = original_fun; | 2082 | fun = original_fun; |
| 2083 | if (SYMBOLP (fun) && !EQ (fun, Qunbound) | 2083 | if (SYMBOLP (fun) && !EQ (fun, Qunbound) |
| 2084 | && (fun = XSYMBOL (fun)->function, SYMBOLP (fun))) | 2084 | && (fun = SVAR (XSYMBOL (fun), function), SYMBOLP (fun))) |
| 2085 | fun = indirect_function (fun); | 2085 | fun = indirect_function (fun); |
| 2086 | 2086 | ||
| 2087 | if (SUBRP (fun)) | 2087 | if (SUBRP (fun)) |
| @@ -2266,7 +2266,7 @@ usage: (apply FUNCTION &rest ARGUMENTS) */) | |||
| 2266 | 2266 | ||
| 2267 | /* Optimize for no indirection. */ | 2267 | /* Optimize for no indirection. */ |
| 2268 | if (SYMBOLP (fun) && !EQ (fun, Qunbound) | 2268 | if (SYMBOLP (fun) && !EQ (fun, Qunbound) |
| 2269 | && (fun = XSYMBOL (fun)->function, SYMBOLP (fun))) | 2269 | && (fun = SVAR (XSYMBOL (fun), function), SYMBOLP (fun))) |
| 2270 | fun = indirect_function (fun); | 2270 | fun = indirect_function (fun); |
| 2271 | if (EQ (fun, Qunbound)) | 2271 | if (EQ (fun, Qunbound)) |
| 2272 | { | 2272 | { |
| @@ -2771,7 +2771,7 @@ usage: (funcall FUNCTION &rest ARGUMENTS) */) | |||
| 2771 | /* Optimize for no indirection. */ | 2771 | /* Optimize for no indirection. */ |
| 2772 | fun = original_fun; | 2772 | fun = original_fun; |
| 2773 | if (SYMBOLP (fun) && !EQ (fun, Qunbound) | 2773 | if (SYMBOLP (fun) && !EQ (fun, Qunbound) |
| 2774 | && (fun = XSYMBOL (fun)->function, SYMBOLP (fun))) | 2774 | && (fun = SVAR (XSYMBOL (fun), function), SYMBOLP (fun))) |
| 2775 | fun = indirect_function (fun); | 2775 | fun = indirect_function (fun); |
| 2776 | 2776 | ||
| 2777 | if (SUBRP (fun)) | 2777 | if (SUBRP (fun)) |
| @@ -3254,7 +3254,7 @@ unbind_to (ptrdiff_t count, Lisp_Object value) | |||
| 3254 | local binding, but only if that binding still exists. */ | 3254 | local binding, but only if that binding still exists. */ |
| 3255 | else if (BUFFERP (where) | 3255 | else if (BUFFERP (where) |
| 3256 | ? !NILP (Flocal_variable_p (symbol, where)) | 3256 | ? !NILP (Flocal_variable_p (symbol, where)) |
| 3257 | : !NILP (Fassq (symbol, XFRAME (where)->param_alist))) | 3257 | : !NILP (Fassq (symbol, FVAR (XFRAME (where), param_alist)))) |
| 3258 | set_internal (symbol, this_binding.old_value, where, 1); | 3258 | set_internal (symbol, this_binding.old_value, where, 1); |
| 3259 | } | 3259 | } |
| 3260 | /* If variable has a trivial value (no forwarding), we can | 3260 | /* If variable has a trivial value (no forwarding), we can |