diff options
| author | Mattias EngdegÄrd | 2024-08-15 16:00:47 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2024-08-15 16:02:17 +0200 |
| commit | 8db72a8d4b77ccdbb68f7361a52d7f2ebe78b656 (patch) | |
| tree | 31462f8884d9a2cb5dcb253e82421ad1acc71d04 /src/eval.c | |
| parent | 03a791556af3b3683921799cce6df2f5ec81c1e7 (diff) | |
| download | emacs-8db72a8d4b77ccdbb68f7361a52d7f2ebe78b656.tar.gz emacs-8db72a8d4b77ccdbb68f7361a52d7f2ebe78b656.zip | |
Replace some EQ with BASE_EQ
* src/eval.c (FletX, Flet, funcall_lambda)
(let_shadows_buffer_binding_p):
* src/data.c (set_blv_found, set_internal, default_value)
(set_default_internal, Flocal_variable_p):
* src/buffer.c (Fkill_buffer):
(mouse_face_overlay_overlaps, compare_overlays)
(report_overlay_modification):
BASE_EQ is safe because we don't actually compare symbols here.
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/eval.c b/src/eval.c index 16ece744f42..b4103acd28f 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -1026,7 +1026,7 @@ usage: (let* VARLIST BODY...) */) | |||
| 1026 | { | 1026 | { |
| 1027 | Lisp_Object newenv | 1027 | Lisp_Object newenv |
| 1028 | = Fcons (Fcons (var, val), Vinternal_interpreter_environment); | 1028 | = Fcons (Fcons (var, val), Vinternal_interpreter_environment); |
| 1029 | if (EQ (Vinternal_interpreter_environment, lexenv)) | 1029 | if (BASE_EQ (Vinternal_interpreter_environment, lexenv)) |
| 1030 | /* Save the old lexical environment on the specpdl stack, | 1030 | /* Save the old lexical environment on the specpdl stack, |
| 1031 | but only for the first lexical binding, since we'll never | 1031 | but only for the first lexical binding, since we'll never |
| 1032 | need to revert to one of the intermediate ones. */ | 1032 | need to revert to one of the intermediate ones. */ |
| @@ -1102,7 +1102,7 @@ usage: (let VARLIST BODY...) */) | |||
| 1102 | specbind (var, tem); | 1102 | specbind (var, tem); |
| 1103 | } | 1103 | } |
| 1104 | 1104 | ||
| 1105 | if (!EQ (lexenv, Vinternal_interpreter_environment)) | 1105 | if (!BASE_EQ (lexenv, Vinternal_interpreter_environment)) |
| 1106 | /* Instantiate a new lexical environment. */ | 1106 | /* Instantiate a new lexical environment. */ |
| 1107 | specbind (Qinternal_interpreter_environment, lexenv); | 1107 | specbind (Qinternal_interpreter_environment, lexenv); |
| 1108 | 1108 | ||
| @@ -3320,7 +3320,7 @@ funcall_lambda (Lisp_Object fun, ptrdiff_t nargs, Lisp_Object *arg_vector) | |||
| 3320 | else if (i < nargs) | 3320 | else if (i < nargs) |
| 3321 | xsignal2 (Qwrong_number_of_arguments, fun, make_fixnum (nargs)); | 3321 | xsignal2 (Qwrong_number_of_arguments, fun, make_fixnum (nargs)); |
| 3322 | 3322 | ||
| 3323 | if (!EQ (lexenv, Vinternal_interpreter_environment)) | 3323 | if (!BASE_EQ (lexenv, Vinternal_interpreter_environment)) |
| 3324 | /* Instantiate a new lexical environment. */ | 3324 | /* Instantiate a new lexical environment. */ |
| 3325 | specbind (Qinternal_interpreter_environment, lexenv); | 3325 | specbind (Qinternal_interpreter_environment, lexenv); |
| 3326 | 3326 | ||
| @@ -3471,7 +3471,7 @@ let_shadows_buffer_binding_p (struct Lisp_Symbol *symbol) | |||
| 3471 | eassert (let_bound_symbol->u.s.redirect != SYMBOL_VARALIAS); | 3471 | eassert (let_bound_symbol->u.s.redirect != SYMBOL_VARALIAS); |
| 3472 | if (symbol == let_bound_symbol | 3472 | if (symbol == let_bound_symbol |
| 3473 | && p->kind != SPECPDL_LET_LOCAL /* bug#62419 */ | 3473 | && p->kind != SPECPDL_LET_LOCAL /* bug#62419 */ |
| 3474 | && EQ (specpdl_where (p), buf)) | 3474 | && BASE_EQ (specpdl_where (p), buf)) |
| 3475 | return 1; | 3475 | return 1; |
| 3476 | } | 3476 | } |
| 3477 | 3477 | ||