aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorStefan Monnier2019-04-01 12:35:10 -0400
committerStefan Monnier2019-04-01 12:35:10 -0400
commit197fbfc71f49b307baa3831a30732c3a0c4c7420 (patch)
tree4a2ba9e37277cda9bcc0aa43dba56ff6503f32a1 /src/data.c
parent20ef15fbe6d49b0bb8a1841dbe4665cf81a567d7 (diff)
downloademacs-197fbfc71f49b307baa3831a30732c3a0c4c7420.tar.gz
emacs-197fbfc71f49b307baa3831a30732c3a0c4c7420.zip
* lisp/subr.el (setq-default): Define as a macro
* lisp/emacs-lisp/bytecomp.el (byte-compile-setq-default): Delete. (byte-compile-set-default): Inline the part that it used. * lisp/emacs-lisp/edebug.el (setq-default): Remove the debug spec. * src/data.c (Fsetq_default): Delete. (syms_of_data): Don't register.
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/data.c b/src/data.c
index 15b6106cfe8..30c578dee94 100644
--- a/src/data.c
+++ b/src/data.c
@@ -1744,36 +1744,6 @@ for this variable. */)
1744 set_default_internal (symbol, value, SET_INTERNAL_SET); 1744 set_default_internal (symbol, value, SET_INTERNAL_SET);
1745 return value; 1745 return value;
1746} 1746}
1747
1748DEFUN ("setq-default", Fsetq_default, Ssetq_default, 0, UNEVALLED, 0,
1749 doc: /* Set the default value of variable VAR to VALUE.
1750VAR, the variable name, is literal (not evaluated);
1751VALUE is an expression: it is evaluated and its value returned.
1752The default value of a variable is seen in buffers
1753that do not have their own values for the variable.
1754
1755More generally, you can use multiple variables and values, as in
1756 (setq-default VAR VALUE VAR VALUE...)
1757This sets each VAR's default value to the corresponding VALUE.
1758The VALUE for the Nth VAR can refer to the new default values
1759of previous VARs.
1760usage: (setq-default [VAR VALUE]...) */)
1761 (Lisp_Object args)
1762{
1763 Lisp_Object args_left, symbol, val;
1764
1765 args_left = val = args;
1766
1767 while (CONSP (args_left))
1768 {
1769 val = eval_sub (Fcar (XCDR (args_left)));
1770 symbol = XCAR (args_left);
1771 Fset_default (symbol, val);
1772 args_left = Fcdr (XCDR (args_left));
1773 }
1774
1775 return val;
1776}
1777 1747
1778/* Lisp functions for creating and removing buffer-local variables. */ 1748/* Lisp functions for creating and removing buffer-local variables. */
1779 1749
@@ -4047,7 +4017,6 @@ syms_of_data (void)
4047 defsubr (&Sdefault_boundp); 4017 defsubr (&Sdefault_boundp);
4048 defsubr (&Sdefault_value); 4018 defsubr (&Sdefault_value);
4049 defsubr (&Sset_default); 4019 defsubr (&Sset_default);
4050 defsubr (&Ssetq_default);
4051 defsubr (&Smake_variable_buffer_local); 4020 defsubr (&Smake_variable_buffer_local);
4052 defsubr (&Smake_local_variable); 4021 defsubr (&Smake_local_variable);
4053 defsubr (&Skill_local_variable); 4022 defsubr (&Skill_local_variable);