diff options
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 15 |
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 | ||
| 734 | DEFUN ("subr-interactive-form", Fsubr_interactive_form, Ssubr_interactive_form, 1, 1, 0, | ||
| 735 | "Return the interactive form of SUBR or nil if none.\n\ | ||
| 736 | SUBR 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); |