aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-03-29 13:58:30 +0000
committerGerd Moellmann2001-03-29 13:58:30 +0000
commitcc515226efa8cc9c7827bf3edb940325ee2b13ec (patch)
treed45d6ba8e7f1f4b920d75b2b28026e6982e4e964 /src
parent8b2375e77fc7d1828448938ece6853214b69d61e (diff)
downloademacs-cc515226efa8cc9c7827bf3edb940325ee2b13ec.tar.gz
emacs-cc515226efa8cc9c7827bf3edb940325ee2b13ec.zip
(Fsubr_interactive_form): New function.
(syms_of_data): Defsubr it.
Diffstat (limited to 'src')
-rw-r--r--src/data.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/data.c b/src/data.c
index b635cb5619b..f84ee1b03ca 100644
--- a/src/data.c
+++ b/src/data.c
@@ -731,6 +731,20 @@ function with `&rest' args, or `unevalled' for a special form.")
731 return Fcons (make_number (minargs), make_number (maxargs)); 731 return Fcons (make_number (minargs), make_number (maxargs));
732} 732}
733 733
734DEFUN ("subr-interactive-form", Fsubr_interactive_form, Ssubr_interactive_form, 1, 1, 0,
735 "Return the interactive form of SUBR or nil if none.\n\
736SUBR must be a built-in function. Value, if non-nil, is a list\n\
737\(interactive SPEC).")
738 (subr)
739 Lisp_Object subr;
740{
741 if (!SUBRP (subr))
742 wrong_type_argument (Qsubrp, subr);
743 if (XSUBR (subr)->prompt)
744 return list2 (Qinteractive, build_string (XSUBR (subr)->prompt));
745 return Qnil;
746}
747
734 748
735/* Getting and setting values of symbols */ 749/* Getting and setting values of symbols */
736 750
@@ -3000,6 +3014,7 @@ syms_of_data ()
3000 staticpro (&Qbool_vector); 3014 staticpro (&Qbool_vector);
3001 staticpro (&Qhash_table); 3015 staticpro (&Qhash_table);
3002 3016
3017 defsubr (&Ssubr_interactive_form);
3003 defsubr (&Seq); 3018 defsubr (&Seq);
3004 defsubr (&Snull); 3019 defsubr (&Snull);
3005 defsubr (&Stype_of); 3020 defsubr (&Stype_of);