Mercurial > emacs
changeset 13200:5fd4e8e4185a
(Qvector_or_char_table_p): New variable.
(Fvector_or_char_table_p): New function.
(syms_of_data): Set up Lisp var and function.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 12 Oct 1995 19:17:05 +0000 |
parents | 9424e02a6e18 |
children | e9007fec678e |
files | src/data.c |
diffstat | 1 files changed, 15 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/data.c Thu Oct 12 19:16:20 1995 +0000 +++ b/src/data.c Thu Oct 12 19:17:05 1995 +0000 @@ -74,7 +74,7 @@ Lisp_Object Qchar_or_string_p, Qmarkerp, Qinteger_or_marker_p, Qvectorp; Lisp_Object Qbuffer_or_string_p; Lisp_Object Qboundp, Qfboundp; -Lisp_Object Qchar_table_p; +Lisp_Object Qchar_table_p, Qvector_or_char_table_p; Lisp_Object Qcdr; Lisp_Object Qad_advice_info, Qad_activate; @@ -324,6 +324,17 @@ return Qnil; } +DEFUN ("vector-or-char-table-p", Fvector_or_char_table_p, + Svector_or_char_table_p, 1, 1, 0, + "T if OBJECT is a char-table or vector.") + (object) + Lisp_Object object; +{ + if (VECTORP (object) || CHAR_TABLE_P (object)) + return Qt; + return Qnil; +} + DEFUN ("bool-vector-p", Fbool_vector_p, Sbool_vector_p, 1, 1, 0, "T if OBJECT is a bool-vector.") (object) Lisp_Object object; @@ -2382,6 +2393,7 @@ #endif /* LISP_FLOAT_TYPE */ Qchar_table_p = intern ("char-table-p"); + Qvector_or_char_table_p = intern ("vector-or-char-table-p"); Qcdr = intern ("cdr"); @@ -2568,6 +2580,7 @@ staticpro (&Qnumber_or_marker_p); #endif /* LISP_FLOAT_TYPE */ staticpro (&Qchar_table_p); + staticpro (&Qvector_or_char_table_p); staticpro (&Qboundp); staticpro (&Qfboundp); @@ -2627,6 +2640,7 @@ defsubr (&Sstringp); defsubr (&Svectorp); defsubr (&Schar_table_p); + defsubr (&Svector_or_char_table_p); defsubr (&Sbool_vector_p); defsubr (&Sarrayp); defsubr (&Ssequencep);