aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorMattias EngdegÄrd2024-03-04 14:14:05 +0100
committerMattias EngdegÄrd2024-03-04 14:14:05 +0100
commit11ffb4656d768b09e1f7dfacc091d85eef4a403a (patch)
tree4469592094317fb49925cf4408516e9349bfeb87 /src/buffer.c
parentb9e8474a4470f71c30a4b89651fd3c5f2ef92ba2 (diff)
downloademacs-11ffb4656d768b09e1f7dfacc091d85eef4a403a.tar.gz
emacs-11ffb4656d768b09e1f7dfacc091d85eef4a403a.zip
Revert "Replace XSETSYMBOL with make_lisp_symbol"
This reverts commit de6b1e1efb1a36c69e7a6e09297e1de5b1477121. While it did simplify code, there aren't much in the way of technical benefits the change at this time, and there were protest against the unwarranted style change.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 9f55a8813fa..43a9249528c 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1340,7 +1340,7 @@ buffer_local_value (Lisp_Object variable, Lisp_Object buffer)
1340 case SYMBOL_LOCALIZED: 1340 case SYMBOL_LOCALIZED:
1341 { /* Look in local_var_alist. */ 1341 { /* Look in local_var_alist. */
1342 struct Lisp_Buffer_Local_Value *blv = SYMBOL_BLV (sym); 1342 struct Lisp_Buffer_Local_Value *blv = SYMBOL_BLV (sym);
1343 variable = make_lisp_symbol (sym); /* Update In case of aliasing. */ 1343 XSETSYMBOL (variable, sym); /* Update In case of aliasing. */
1344 result = assq_no_quit (variable, BVAR (buf, local_var_alist)); 1344 result = assq_no_quit (variable, BVAR (buf, local_var_alist));
1345 if (!NILP (result)) 1345 if (!NILP (result))
1346 { 1346 {
@@ -4985,7 +4985,7 @@ defvar_per_buffer (struct Lisp_Buffer_Objfwd *bo_fwd, const char *namestring,
4985 sym->u.s.declared_special = true; 4985 sym->u.s.declared_special = true;
4986 sym->u.s.redirect = SYMBOL_FORWARDED; 4986 sym->u.s.redirect = SYMBOL_FORWARDED;
4987 SET_SYMBOL_FWD (sym, bo_fwd); 4987 SET_SYMBOL_FWD (sym, bo_fwd);
4988 PER_BUFFER_SYMBOL (offset) = make_lisp_symbol (sym); 4988 XSETSYMBOL (PER_BUFFER_SYMBOL (offset), sym);
4989 4989
4990 if (PER_BUFFER_IDX (offset) == 0) 4990 if (PER_BUFFER_IDX (offset) == 0)
4991 /* Did a DEFVAR_PER_BUFFER without initializing the corresponding 4991 /* Did a DEFVAR_PER_BUFFER without initializing the corresponding