diff options
| author | Paul Eggert | 2011-04-15 00:48:51 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-15 00:48:51 -0700 |
| commit | 4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9 (patch) | |
| tree | e993b231bb5555c9c961f5d0b20d90ac76f77bbd /src/data.c | |
| parent | 1963a2e0bb07cc8dee6d27f972f93d9cfd7c6b2d (diff) | |
| parent | 49093f601b69d91126aefd328ee8f6bfeb797407 (diff) | |
| download | emacs-4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9.tar.gz emacs-4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9.zip | |
Merge from mainline.
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 44 |
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/>. */ | |||
| 52 | extern double atof (const char *); | 52 | extern double atof (const char *); |
| 53 | #endif /* !atof */ | 53 | #endif /* !atof */ |
| 54 | 54 | ||
| 55 | Lisp_Object Qnil, Qt, Qquote, Qlambda, Qsubr, Qunbound; | 55 | Lisp_Object Qnil, Qt, Qquote, Qlambda, Qunbound; |
| 56 | static Lisp_Object Qsubr; | ||
| 56 | Lisp_Object Qerror_conditions, Qerror_message, Qtop_level; | 57 | Lisp_Object Qerror_conditions, Qerror_message, Qtop_level; |
| 57 | Lisp_Object Qerror, Qquit, Qwrong_type_argument, Qargs_out_of_range; | 58 | Lisp_Object Qerror, Qquit, Qargs_out_of_range; |
| 58 | Lisp_Object Qvoid_variable, Qvoid_function, Qcyclic_function_indirection; | 59 | static Lisp_Object Qwrong_type_argument; |
| 59 | Lisp_Object Qcyclic_variable_indirection, Qcircular_list; | 60 | Lisp_Object Qvoid_variable, Qvoid_function; |
| 60 | Lisp_Object Qsetting_constant, Qinvalid_read_syntax; | 61 | static Lisp_Object Qcyclic_function_indirection; |
| 62 | static Lisp_Object Qcyclic_variable_indirection; | ||
| 63 | Lisp_Object Qcircular_list; | ||
| 64 | static Lisp_Object Qsetting_constant; | ||
| 65 | Lisp_Object Qinvalid_read_syntax; | ||
| 61 | Lisp_Object Qinvalid_function, Qwrong_number_of_arguments, Qno_catch; | 66 | Lisp_Object Qinvalid_function, Qwrong_number_of_arguments, Qno_catch; |
| 62 | Lisp_Object Qend_of_file, Qarith_error, Qmark_inactive; | 67 | Lisp_Object Qend_of_file, Qarith_error, Qmark_inactive; |
| 63 | Lisp_Object Qbeginning_of_buffer, Qend_of_buffer, Qbuffer_read_only; | 68 | Lisp_Object Qbeginning_of_buffer, Qend_of_buffer, Qbuffer_read_only; |
| 64 | Lisp_Object Qtext_read_only; | 69 | Lisp_Object Qtext_read_only; |
| 65 | 70 | ||
| 66 | Lisp_Object Qintegerp, Qnatnump, Qwholenump, Qsymbolp, Qlistp, Qconsp; | 71 | Lisp_Object Qintegerp, Qwholenump, Qsymbolp, Qlistp, Qconsp; |
| 72 | static Lisp_Object Qnatnump; | ||
| 67 | Lisp_Object Qstringp, Qarrayp, Qsequencep, Qbufferp; | 73 | Lisp_Object Qstringp, Qarrayp, Qsequencep, Qbufferp; |
| 68 | Lisp_Object Qchar_or_string_p, Qmarkerp, Qinteger_or_marker_p, Qvectorp; | 74 | Lisp_Object Qchar_or_string_p, Qmarkerp, Qinteger_or_marker_p, Qvectorp; |
| 69 | Lisp_Object Qbuffer_or_string_p, Qkeywordp; | 75 | Lisp_Object Qbuffer_or_string_p; |
| 70 | Lisp_Object Qboundp, Qfboundp; | 76 | static Lisp_Object Qkeywordp, Qboundp; |
| 77 | Lisp_Object Qfboundp; | ||
| 71 | Lisp_Object Qchar_table_p, Qvector_or_char_table_p; | 78 | Lisp_Object Qchar_table_p, Qvector_or_char_table_p; |
| 72 | 79 | ||
| 73 | Lisp_Object Qcdr; | 80 | Lisp_Object Qcdr; |
| 74 | Lisp_Object Qad_advice_info, Qad_activate_internal; | 81 | static Lisp_Object Qad_advice_info, Qad_activate_internal; |
| 75 | 82 | ||
| 76 | Lisp_Object Qrange_error, Qdomain_error, Qsingularity_error; | 83 | Lisp_Object Qrange_error, Qdomain_error, Qsingularity_error; |
| 77 | Lisp_Object Qoverflow_error, Qunderflow_error; | 84 | Lisp_Object Qoverflow_error, Qunderflow_error; |
| @@ -83,7 +90,7 @@ Lisp_Object Qinteger; | |||
| 83 | static Lisp_Object Qsymbol, Qstring, Qcons, Qmarker, Qoverlay; | 90 | static Lisp_Object Qsymbol, Qstring, Qcons, Qmarker, Qoverlay; |
| 84 | Lisp_Object Qwindow; | 91 | Lisp_Object Qwindow; |
| 85 | static Lisp_Object Qfloat, Qwindow_configuration; | 92 | static Lisp_Object Qfloat, Qwindow_configuration; |
| 86 | Lisp_Object Qprocess; | 93 | static Lisp_Object Qprocess; |
| 87 | static Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector; | 94 | static Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector; |
| 88 | static Lisp_Object Qchar_table, Qbool_vector, Qhash_table; | 95 | static Lisp_Object Qchar_table, Qbool_vector, Qhash_table; |
| 89 | static Lisp_Object Qsubrp, Qmany, Qunevalled; | 96 | static Lisp_Object Qsubrp, Qmany, Qunevalled; |
| @@ -94,13 +101,6 @@ Lisp_Object Qinteractive_form; | |||
| 94 | static void swap_in_symval_forwarding (struct Lisp_Symbol *, struct Lisp_Buffer_Local_Value *); | 101 | static void swap_in_symval_forwarding (struct Lisp_Symbol *, struct Lisp_Buffer_Local_Value *); |
| 95 | 102 | ||
| 96 | 103 | ||
| 97 | void | ||
| 98 | circular_list_error (Lisp_Object list) | ||
| 99 | { | ||
| 100 | xsignal (Qcircular_list, list); | ||
| 101 | } | ||
| 102 | |||
| 103 | |||
| 104 | Lisp_Object | 104 | Lisp_Object |
| 105 | wrong_type_argument (register Lisp_Object predicate, register Lisp_Object value) | 105 | wrong_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 | ||
| 1482 | DEFUN ("make-variable-buffer-local", Fmake_variable_buffer_local, Smake_variable_buffer_local, | 1482 | DEFUN ("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. |
| 1485 | At any time, the value for the current buffer is in effect, | 1485 | At any time, the value for the current buffer is in effect, |
| 1486 | unless the variable has never been set in this buffer, | 1486 | unless 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 |
| 1956 | extern struct terminal *get_terminal (Lisp_Object display, int); | 1956 | extern struct terminal *get_terminal (Lisp_Object display, int); |
| 1957 | 1957 | ||
| 1958 | DEFUN ("terminal-local-value", Fterminal_local_value, Sterminal_local_value, 2, 2, 0, | 1958 | DEFUN ("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. |
| 1960 | If SYMBOL is not a terminal-local variable, then return its normal | 1961 | If SYMBOL is not a terminal-local variable, then return its normal |
| 1961 | value, like `symbol-value'. | 1962 | value, like `symbol-value'. |
| @@ -1972,7 +1973,8 @@ selected frame's terminal device). */) | |||
| 1972 | return result; | 1973 | return result; |
| 1973 | } | 1974 | } |
| 1974 | 1975 | ||
| 1975 | DEFUN ("set-terminal-local-value", Fset_terminal_local_value, Sset_terminal_local_value, 3, 3, 0, | 1976 | DEFUN ("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. |
| 1977 | If VARIABLE is not a terminal-local variable, then set its normal | 1979 | If VARIABLE is not a terminal-local variable, then set its normal |
| 1978 | binding, like `set'. | 1980 | binding, like `set'. |