diff options
| author | Tom Tromey | 2013-06-03 19:36:49 -0600 |
|---|---|---|
| committer | Tom Tromey | 2013-06-03 19:36:49 -0600 |
| commit | ac70709c2ad3fa97e7553adfb4958c0a08faa40b (patch) | |
| tree | e433872bae3ede837e13fe0e6f63376c21d1a47d /src/eval.c | |
| parent | 68359abba96d7ec4db8aab3d3dd9cf1105c3bab5 (diff) | |
| download | emacs-ac70709c2ad3fa97e7553adfb4958c0a08faa40b.tar.gz emacs-ac70709c2ad3fa97e7553adfb4958c0a08faa40b.zip | |
update eval.c to make it build again after the merge
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/eval.c b/src/eval.c index be9de93bf1f..7520164108f 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -3014,11 +3014,11 @@ let_shadows_global_binding_p (Lisp_Object symbol) | |||
| 3014 | } | 3014 | } |
| 3015 | 3015 | ||
| 3016 | static Lisp_Object | 3016 | static Lisp_Object |
| 3017 | binding_symbol (const struct specbinding *bind) | 3017 | binding_symbol (struct specbinding *bind) |
| 3018 | { | 3018 | { |
| 3019 | if (!CONSP (bind->symbol)) | 3019 | if (!CONSP (specpdl_symbol (bind))) |
| 3020 | return bind->symbol; | 3020 | return specpdl_symbol (bind); |
| 3021 | return XCAR (bind->symbol); | 3021 | return XCAR (specpdl_symbol (bind)); |
| 3022 | } | 3022 | } |
| 3023 | 3023 | ||
| 3024 | void | 3024 | void |
| @@ -3031,22 +3031,22 @@ do_specbind (struct Lisp_Symbol *sym, struct specbinding *bind, | |||
| 3031 | if (!sym->constant) | 3031 | if (!sym->constant) |
| 3032 | SET_SYMBOL_VAL (sym, value); | 3032 | SET_SYMBOL_VAL (sym, value); |
| 3033 | else | 3033 | else |
| 3034 | set_internal (bind->symbol, value, Qnil, 1); | 3034 | set_internal (specpdl_symbol (bind), value, Qnil, 1); |
| 3035 | break; | 3035 | break; |
| 3036 | 3036 | ||
| 3037 | case SYMBOL_LOCALIZED: | 3037 | case SYMBOL_LOCALIZED: |
| 3038 | case SYMBOL_FORWARDED: | 3038 | case SYMBOL_FORWARDED: |
| 3039 | if ((sym->redirect == SYMBOL_LOCALIZED | 3039 | if ((sym->redirect == SYMBOL_LOCALIZED |
| 3040 | || BUFFER_OBJFWDP (SYMBOL_FWD (sym))) | 3040 | || BUFFER_OBJFWDP (SYMBOL_FWD (sym))) |
| 3041 | && CONSP (bind->symbol)) | 3041 | && CONSP (specpdl_symbol (bind))) |
| 3042 | { | 3042 | { |
| 3043 | Lisp_Object where; | 3043 | Lisp_Object where; |
| 3044 | 3044 | ||
| 3045 | where = XCAR (XCDR (bind->symbol)); | 3045 | where = XCAR (XCDR (specpdl_symbol (bind))); |
| 3046 | if (NILP (where) | 3046 | if (NILP (where) |
| 3047 | && sym->redirect == SYMBOL_FORWARDED) | 3047 | && sym->redirect == SYMBOL_FORWARDED) |
| 3048 | { | 3048 | { |
| 3049 | Fset_default (XCAR (bind->symbol), value); | 3049 | Fset_default (XCAR (specpdl_symbol (bind)), value); |
| 3050 | return; | 3050 | return; |
| 3051 | } | 3051 | } |
| 3052 | } | 3052 | } |
| @@ -3164,16 +3164,16 @@ rebind_for_thread_switch (void) | |||
| 3164 | { | 3164 | { |
| 3165 | if (bind->kind >= SPECPDL_LET) | 3165 | if (bind->kind >= SPECPDL_LET) |
| 3166 | { | 3166 | { |
| 3167 | Lisp_Object value = bind->saved_value; | 3167 | Lisp_Object value = specpdl_saved_value (bind); |
| 3168 | 3168 | ||
| 3169 | bind->saved_value = Qnil; | 3169 | bind->v.let.saved_value = Qnil; |
| 3170 | do_specbind (XSYMBOL (binding_symbol (bind)), bind, value); | 3170 | do_specbind (XSYMBOL (binding_symbol (bind)), bind, value); |
| 3171 | } | 3171 | } |
| 3172 | } | 3172 | } |
| 3173 | } | 3173 | } |
| 3174 | 3174 | ||
| 3175 | static void | 3175 | static void |
| 3176 | do_one_unbind (const struct specbinding *this_binding, int unwinding) | 3176 | do_one_unbind (struct specbinding *this_binding, int unwinding) |
| 3177 | { | 3177 | { |
| 3178 | switch (this_binding->kind) | 3178 | switch (this_binding->kind) |
| 3179 | { | 3179 | { |
| @@ -3260,7 +3260,7 @@ unbind_for_thread_switch (void) | |||
| 3260 | { | 3260 | { |
| 3261 | if (bind->kind >= SPECPDL_LET) | 3261 | if (bind->kind >= SPECPDL_LET) |
| 3262 | { | 3262 | { |
| 3263 | bind->saved_value = find_symbol_value (binding_symbol (bind)); | 3263 | bind->v.let.saved_value = find_symbol_value (binding_symbol (bind)); |
| 3264 | do_one_unbind (bind, 0); | 3264 | do_one_unbind (bind, 0); |
| 3265 | } | 3265 | } |
| 3266 | } | 3266 | } |