diff options
| author | Sergey Vinokurov | 2022-01-14 08:49:11 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-01-14 08:50:06 +0100 |
| commit | a5ce31a192f474bce1259b97e599258d1fde7c8c (patch) | |
| tree | 60bc8a18648682c7fcb53339deed6ecd3bfd1361 /src/buffer.c | |
| parent | 3ae74c2e478e65de2cdc78013c0d6524b97442c0 (diff) | |
| download | emacs-a5ce31a192f474bce1259b97e599258d1fde7c8c.tar.gz emacs-a5ce31a192f474bce1259b97e599258d1fde7c8c.zip | |
Use assq_no_quit on all local_var_alist accesses
* src/data.c (Fkill_local_variable):
* src/buffer.c (buffer_local_value): Use assq_no_quit instead of
Fassoc/Fassq on local_var_alist (bug#53242).
* src/data.c (Flocal_variable_p): Use assq_no_quit instead of
open-coding the search on local_var_alist.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index 10ac91915c6..a3091015d9b 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1247,7 +1247,7 @@ buffer_local_value (Lisp_Object variable, Lisp_Object buffer) | |||
| 1247 | { /* Look in local_var_alist. */ | 1247 | { /* Look in local_var_alist. */ |
| 1248 | struct Lisp_Buffer_Local_Value *blv = SYMBOL_BLV (sym); | 1248 | struct Lisp_Buffer_Local_Value *blv = SYMBOL_BLV (sym); |
| 1249 | XSETSYMBOL (variable, sym); /* Update In case of aliasing. */ | 1249 | XSETSYMBOL (variable, sym); /* Update In case of aliasing. */ |
| 1250 | result = Fassoc (variable, BVAR (buf, local_var_alist), Qnil); | 1250 | result = assq_no_quit (variable, BVAR (buf, local_var_alist)); |
| 1251 | if (!NILP (result)) | 1251 | if (!NILP (result)) |
| 1252 | { | 1252 | { |
| 1253 | if (blv->fwd.fwdptr) | 1253 | if (blv->fwd.fwdptr) |