aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiuseppe Scrivano2010-03-29 11:52:46 +0200
committerGiuseppe Scrivano2010-03-29 11:52:46 +0200
commitf17afbf5c25bd0901eb5d9800a07b9e8b7981293 (patch)
tree33c18971c2cf15902ba5f9664cc3464c2694a1d0
parent78ae7eb0bdb5fe79496a431b16b46ec0f1340d30 (diff)
downloademacs-f17afbf5c25bd0901eb5d9800a07b9e8b7981293.tar.gz
emacs-f17afbf5c25bd0901eb5d9800a07b9e8b7981293.zip
Define the `mutexp' function.
-rw-r--r--src/data.c11
-rw-r--r--src/lisp.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/data.c b/src/data.c
index 1263902d16f..fa28b883ded 100644
--- a/src/data.c
+++ b/src/data.c
@@ -426,6 +426,16 @@ DEFUN ("subrp", Fsubrp, Ssubrp, 1, 1, 0,
426 return Qnil; 426 return Qnil;
427} 427}
428 428
429DEFUN ("mutexp", Fmutexp, Smutexp, 1, 1, 0,
430 doc: /* Return t if OBJECT is a mutex. */)
431 (object)
432 Lisp_Object object;
433{
434 if (MUTEXP (object))
435 return Qt;
436 return Qnil;
437}
438
429DEFUN ("byte-code-function-p", Fbyte_code_function_p, Sbyte_code_function_p, 439DEFUN ("byte-code-function-p", Fbyte_code_function_p, Sbyte_code_function_p,
430 1, 1, 0, 440 1, 1, 0,
431 doc: /* Return t if OBJECT is a byte-compiled function object. */) 441 doc: /* Return t if OBJECT is a byte-compiled function object. */)
@@ -3448,6 +3458,7 @@ syms_of_data ()
3448 defsubr (&Sbufferp); 3458 defsubr (&Sbufferp);
3449 defsubr (&Smarkerp); 3459 defsubr (&Smarkerp);
3450 defsubr (&Ssubrp); 3460 defsubr (&Ssubrp);
3461 defsubr (&Smutexp);
3451 defsubr (&Sbyte_code_function_p); 3462 defsubr (&Sbyte_code_function_p);
3452 defsubr (&Schar_or_string_p); 3463 defsubr (&Schar_or_string_p);
3453 defsubr (&Scar); 3464 defsubr (&Scar);
diff --git a/src/lisp.h b/src/lisp.h
index c2847b168c5..857e184e3de 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -2312,6 +2312,7 @@ EXFUN (Fsequencep, 1);
2312EXFUN (Fbufferp, 1); 2312EXFUN (Fbufferp, 1);
2313EXFUN (Fmarkerp, 1); 2313EXFUN (Fmarkerp, 1);
2314EXFUN (Fsubrp, 1); 2314EXFUN (Fsubrp, 1);
2315EXFUN (Fmutexp, 1);
2315EXFUN (Fchar_or_string_p, 1); 2316EXFUN (Fchar_or_string_p, 1);
2316EXFUN (Finteger_or_marker_p, 1); 2317EXFUN (Finteger_or_marker_p, 1);
2317EXFUN (Ffloatp, 1); 2318EXFUN (Ffloatp, 1);