aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorDaniel Colascione2018-06-09 23:45:48 -0700
committerDaniel Colascione2018-06-11 16:08:42 -0700
commita20fe5a7e3577f9b9ad5e88006962966240d9b0c (patch)
treec80e8e819fef5cbf5f0ee0b55becf1065fbd18b5 /src/data.c
parentb4e953ba0442e351ef06b93e85fbe67bbf163771 (diff)
downloademacs-a20fe5a7e3577f9b9ad5e88006962966240d9b0c.tar.gz
emacs-a20fe5a7e3577f9b9ad5e88006962966240d9b0c.zip
Remove code #if-0-ed terminal-local code
This code hasn't been used since 2005. * src/data.c (get_terminal, Fterminal_local_value, Fset_terminal_local_value): Remove.
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/data.c b/src/data.c
index 6f23a26757a..49c3dd834ba 100644
--- a/src/data.c
+++ b/src/data.c
@@ -2153,47 +2153,6 @@ If the current binding is global (the default), the value is nil. */)
2153 } 2153 }
2154} 2154}
2155 2155
2156/* This code is disabled now that we use the selected frame to return
2157 keyboard-local-values. */
2158#if 0
2159extern struct terminal *get_terminal (Lisp_Object display, int);
2160
2161DEFUN ("terminal-local-value", Fterminal_local_value,
2162 Sterminal_local_value, 2, 2, 0,
2163 doc: /* Return the terminal-local value of SYMBOL on TERMINAL.
2164If SYMBOL is not a terminal-local variable, then return its normal
2165value, like `symbol-value'.
2166
2167TERMINAL may be a terminal object, a frame, or nil (meaning the
2168selected frame's terminal device). */)
2169 (Lisp_Object symbol, Lisp_Object terminal)
2170{
2171 Lisp_Object result;
2172 struct terminal *t = get_terminal (terminal, 1);
2173 push_kboard (t->kboard);
2174 result = Fsymbol_value (symbol);
2175 pop_kboard ();
2176 return result;
2177}
2178
2179DEFUN ("set-terminal-local-value", Fset_terminal_local_value,
2180 Sset_terminal_local_value, 3, 3, 0,
2181 doc: /* Set the terminal-local binding of SYMBOL on TERMINAL to VALUE.
2182If VARIABLE is not a terminal-local variable, then set its normal
2183binding, like `set'.
2184
2185TERMINAL may be a terminal object, a frame, or nil (meaning the
2186selected frame's terminal device). */)
2187 (Lisp_Object symbol, Lisp_Object terminal, Lisp_Object value)
2188{
2189 Lisp_Object result;
2190 struct terminal *t = get_terminal (terminal, 1);
2191 push_kboard (d->kboard);
2192 result = Fset (symbol, value);
2193 pop_kboard ();
2194 return result;
2195}
2196#endif
2197 2156
2198/* Find the function at the end of a chain of symbol function indirections. */ 2157/* Find the function at the end of a chain of symbol function indirections. */
2199 2158
@@ -3827,10 +3786,6 @@ syms_of_data (void)
3827 defsubr (&Slocal_variable_p); 3786 defsubr (&Slocal_variable_p);
3828 defsubr (&Slocal_variable_if_set_p); 3787 defsubr (&Slocal_variable_if_set_p);
3829 defsubr (&Svariable_binding_locus); 3788 defsubr (&Svariable_binding_locus);
3830#if 0 /* XXX Remove this. --lorentey */
3831 defsubr (&Sterminal_local_value);
3832 defsubr (&Sset_terminal_local_value);
3833#endif
3834 defsubr (&Saref); 3789 defsubr (&Saref);
3835 defsubr (&Saset); 3790 defsubr (&Saset);
3836 defsubr (&Snumber_to_string); 3791 defsubr (&Snumber_to_string);