aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorPaul Eggert2011-04-15 00:48:51 -0700
committerPaul Eggert2011-04-15 00:48:51 -0700
commit4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9 (patch)
treee993b231bb5555c9c961f5d0b20d90ac76f77bbd /src/data.c
parent1963a2e0bb07cc8dee6d27f972f93d9cfd7c6b2d (diff)
parent49093f601b69d91126aefd328ee8f6bfeb797407 (diff)
downloademacs-4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9.tar.gz
emacs-4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9.zip
Merge from mainline.
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c44
1 files changed, 23 insertions, 21 deletions
diff --git a/src/data.c b/src/data.c
index 4b9d2ec0387..956ff3700f2 100644
--- a/src/data.c
+++ b/src/data.c
@@ -52,26 +52,33 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
52extern double atof (const char *); 52extern double atof (const char *);
53#endif /* !atof */ 53#endif /* !atof */
54 54
55Lisp_Object Qnil, Qt, Qquote, Qlambda, Qsubr, Qunbound; 55Lisp_Object Qnil, Qt, Qquote, Qlambda, Qunbound;
56static Lisp_Object Qsubr;
56Lisp_Object Qerror_conditions, Qerror_message, Qtop_level; 57Lisp_Object Qerror_conditions, Qerror_message, Qtop_level;
57Lisp_Object Qerror, Qquit, Qwrong_type_argument, Qargs_out_of_range; 58Lisp_Object Qerror, Qquit, Qargs_out_of_range;
58Lisp_Object Qvoid_variable, Qvoid_function, Qcyclic_function_indirection; 59static Lisp_Object Qwrong_type_argument;
59Lisp_Object Qcyclic_variable_indirection, Qcircular_list; 60Lisp_Object Qvoid_variable, Qvoid_function;
60Lisp_Object Qsetting_constant, Qinvalid_read_syntax; 61static Lisp_Object Qcyclic_function_indirection;
62static Lisp_Object Qcyclic_variable_indirection;
63Lisp_Object Qcircular_list;
64static Lisp_Object Qsetting_constant;
65Lisp_Object Qinvalid_read_syntax;
61Lisp_Object Qinvalid_function, Qwrong_number_of_arguments, Qno_catch; 66Lisp_Object Qinvalid_function, Qwrong_number_of_arguments, Qno_catch;
62Lisp_Object Qend_of_file, Qarith_error, Qmark_inactive; 67Lisp_Object Qend_of_file, Qarith_error, Qmark_inactive;
63Lisp_Object Qbeginning_of_buffer, Qend_of_buffer, Qbuffer_read_only; 68Lisp_Object Qbeginning_of_buffer, Qend_of_buffer, Qbuffer_read_only;
64Lisp_Object Qtext_read_only; 69Lisp_Object Qtext_read_only;
65 70
66Lisp_Object Qintegerp, Qnatnump, Qwholenump, Qsymbolp, Qlistp, Qconsp; 71Lisp_Object Qintegerp, Qwholenump, Qsymbolp, Qlistp, Qconsp;
72static Lisp_Object Qnatnump;
67Lisp_Object Qstringp, Qarrayp, Qsequencep, Qbufferp; 73Lisp_Object Qstringp, Qarrayp, Qsequencep, Qbufferp;
68Lisp_Object Qchar_or_string_p, Qmarkerp, Qinteger_or_marker_p, Qvectorp; 74Lisp_Object Qchar_or_string_p, Qmarkerp, Qinteger_or_marker_p, Qvectorp;
69Lisp_Object Qbuffer_or_string_p, Qkeywordp; 75Lisp_Object Qbuffer_or_string_p;
70Lisp_Object Qboundp, Qfboundp; 76static Lisp_Object Qkeywordp, Qboundp;
77Lisp_Object Qfboundp;
71Lisp_Object Qchar_table_p, Qvector_or_char_table_p; 78Lisp_Object Qchar_table_p, Qvector_or_char_table_p;
72 79
73Lisp_Object Qcdr; 80Lisp_Object Qcdr;
74Lisp_Object Qad_advice_info, Qad_activate_internal; 81static Lisp_Object Qad_advice_info, Qad_activate_internal;
75 82
76Lisp_Object Qrange_error, Qdomain_error, Qsingularity_error; 83Lisp_Object Qrange_error, Qdomain_error, Qsingularity_error;
77Lisp_Object Qoverflow_error, Qunderflow_error; 84Lisp_Object Qoverflow_error, Qunderflow_error;
@@ -83,7 +90,7 @@ Lisp_Object Qinteger;
83static Lisp_Object Qsymbol, Qstring, Qcons, Qmarker, Qoverlay; 90static Lisp_Object Qsymbol, Qstring, Qcons, Qmarker, Qoverlay;
84Lisp_Object Qwindow; 91Lisp_Object Qwindow;
85static Lisp_Object Qfloat, Qwindow_configuration; 92static Lisp_Object Qfloat, Qwindow_configuration;
86Lisp_Object Qprocess; 93static Lisp_Object Qprocess;
87static Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector; 94static Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector;
88static Lisp_Object Qchar_table, Qbool_vector, Qhash_table; 95static Lisp_Object Qchar_table, Qbool_vector, Qhash_table;
89static Lisp_Object Qsubrp, Qmany, Qunevalled; 96static Lisp_Object Qsubrp, Qmany, Qunevalled;
@@ -94,13 +101,6 @@ Lisp_Object Qinteractive_form;
94static void swap_in_symval_forwarding (struct Lisp_Symbol *, struct Lisp_Buffer_Local_Value *); 101static void swap_in_symval_forwarding (struct Lisp_Symbol *, struct Lisp_Buffer_Local_Value *);
95 102
96 103
97void
98circular_list_error (Lisp_Object list)
99{
100 xsignal (Qcircular_list, list);
101}
102
103
104Lisp_Object 104Lisp_Object
105wrong_type_argument (register Lisp_Object predicate, register Lisp_Object value) 105wrong_type_argument (register Lisp_Object predicate, register Lisp_Object value)
106{ 106{
@@ -1479,8 +1479,8 @@ make_blv (struct Lisp_Symbol *sym, int forwarded, union Lisp_Val_Fwd valcontents
1479 return blv; 1479 return blv;
1480} 1480}
1481 1481
1482DEFUN ("make-variable-buffer-local", Fmake_variable_buffer_local, Smake_variable_buffer_local, 1482DEFUN ("make-variable-buffer-local", Fmake_variable_buffer_local,
1483 1, 1, "vMake Variable Buffer Local: ", 1483 Smake_variable_buffer_local, 1, 1, "vMake Variable Buffer Local: ",
1484 doc: /* Make VARIABLE become buffer-local whenever it is set. 1484 doc: /* Make VARIABLE become buffer-local whenever it is set.
1485At any time, the value for the current buffer is in effect, 1485At any time, the value for the current buffer is in effect,
1486unless the variable has never been set in this buffer, 1486unless the variable has never been set in this buffer,
@@ -1955,7 +1955,8 @@ If the current binding is global (the default), the value is nil. */)
1955#if 0 1955#if 0
1956extern struct terminal *get_terminal (Lisp_Object display, int); 1956extern struct terminal *get_terminal (Lisp_Object display, int);
1957 1957
1958DEFUN ("terminal-local-value", Fterminal_local_value, Sterminal_local_value, 2, 2, 0, 1958DEFUN ("terminal-local-value", Fterminal_local_value,
1959 Sterminal_local_value, 2, 2, 0,
1959 doc: /* Return the terminal-local value of SYMBOL on TERMINAL. 1960 doc: /* Return the terminal-local value of SYMBOL on TERMINAL.
1960If SYMBOL is not a terminal-local variable, then return its normal 1961If SYMBOL is not a terminal-local variable, then return its normal
1961value, like `symbol-value'. 1962value, like `symbol-value'.
@@ -1972,7 +1973,8 @@ selected frame's terminal device). */)
1972 return result; 1973 return result;
1973} 1974}
1974 1975
1975DEFUN ("set-terminal-local-value", Fset_terminal_local_value, Sset_terminal_local_value, 3, 3, 0, 1976DEFUN ("set-terminal-local-value", Fset_terminal_local_value,
1977 Sset_terminal_local_value, 3, 3, 0,
1976 doc: /* Set the terminal-local binding of SYMBOL on TERMINAL to VALUE. 1978 doc: /* Set the terminal-local binding of SYMBOL on TERMINAL to VALUE.
1977If VARIABLE is not a terminal-local variable, then set its normal 1979If VARIABLE is not a terminal-local variable, then set its normal
1978binding, like `set'. 1980binding, like `set'.