diff options
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/eval.c b/src/eval.c index 1ce14ae94a6..9db4d1fd81b 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -2146,11 +2146,10 @@ eval_sub (Lisp_Object form) | |||
| 2146 | 2146 | ||
| 2147 | /* Optimize for no indirection. */ | 2147 | /* Optimize for no indirection. */ |
| 2148 | fun = original_fun; | 2148 | fun = original_fun; |
| 2149 | if (SYMBOLP (fun) && !NILP (fun) | 2149 | if (!SYMBOLP (fun)) |
| 2150 | && (fun = XSYMBOL (fun)->function, SYMBOLP (fun))) | ||
| 2151 | fun = indirect_function (fun); | ||
| 2152 | else | ||
| 2153 | fun = Ffunction (Fcons (fun, Qnil)); | 2150 | fun = Ffunction (Fcons (fun, Qnil)); |
| 2151 | else if (!NILP (fun) && (fun = XSYMBOL (fun)->function, SYMBOLP (fun))) | ||
| 2152 | fun = indirect_function (fun); | ||
| 2154 | 2153 | ||
| 2155 | if (SUBRP (fun)) | 2154 | if (SUBRP (fun)) |
| 2156 | { | 2155 | { |