diff options
| author | Mattias EngdegÄrd | 2024-02-24 17:47:37 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2024-02-24 18:36:30 +0100 |
| commit | de6b1e1efb1a36c69e7a6e09297e1de5b1477121 (patch) | |
| tree | 920c6a8c471db6b5657bf0ffd9f4419454ec025d /src/buffer.c | |
| parent | 56beeff14365d8e802ab7b4888aa7e95b2cf9509 (diff) | |
| download | emacs-de6b1e1efb1a36c69e7a6e09297e1de5b1477121.tar.gz emacs-de6b1e1efb1a36c69e7a6e09297e1de5b1477121.zip | |
Replace XSETSYMBOL with make_lisp_symbol
* src/lisp.h (XSETSYMBOL): Remove. All callers changed to use
make_lisp_symbol.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index d67e1d67cd6..e235ff8f9f8 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1334,7 +1334,7 @@ buffer_local_value (Lisp_Object variable, Lisp_Object buffer) | |||
| 1334 | case SYMBOL_LOCALIZED: | 1334 | case SYMBOL_LOCALIZED: |
| 1335 | { /* Look in local_var_alist. */ | 1335 | { /* Look in local_var_alist. */ |
| 1336 | struct Lisp_Buffer_Local_Value *blv = SYMBOL_BLV (sym); | 1336 | struct Lisp_Buffer_Local_Value *blv = SYMBOL_BLV (sym); |
| 1337 | XSETSYMBOL (variable, sym); /* Update In case of aliasing. */ | 1337 | variable = make_lisp_symbol (sym); /* Update In case of aliasing. */ |
| 1338 | result = assq_no_quit (variable, BVAR (buf, local_var_alist)); | 1338 | result = assq_no_quit (variable, BVAR (buf, local_var_alist)); |
| 1339 | if (!NILP (result)) | 1339 | if (!NILP (result)) |
| 1340 | { | 1340 | { |
| @@ -4971,7 +4971,7 @@ defvar_per_buffer (struct Lisp_Buffer_Objfwd *bo_fwd, const char *namestring, | |||
| 4971 | sym->u.s.declared_special = true; | 4971 | sym->u.s.declared_special = true; |
| 4972 | sym->u.s.redirect = SYMBOL_FORWARDED; | 4972 | sym->u.s.redirect = SYMBOL_FORWARDED; |
| 4973 | SET_SYMBOL_FWD (sym, bo_fwd); | 4973 | SET_SYMBOL_FWD (sym, bo_fwd); |
| 4974 | XSETSYMBOL (PER_BUFFER_SYMBOL (offset), sym); | 4974 | PER_BUFFER_SYMBOL (offset) = make_lisp_symbol (sym); |
| 4975 | 4975 | ||
| 4976 | if (PER_BUFFER_IDX (offset) == 0) | 4976 | if (PER_BUFFER_IDX (offset) == 0) |
| 4977 | /* Did a DEFVAR_PER_BUFFER without initializing the corresponding | 4977 | /* Did a DEFVAR_PER_BUFFER without initializing the corresponding |