diff options
| author | Lars Ingebrigtsen | 2021-02-11 16:53:17 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-02-11 16:53:17 +0100 |
| commit | c46c1d592e61fa6fa7ee31b7ff54304579db73e6 (patch) | |
| tree | 65b47b0a4e010afa1c218cf825af88bd40eaeb5b /src | |
| parent | 4e35e212fc546727742eb66f5c7bd457c75c005c (diff) | |
| download | emacs-c46c1d592e61fa6fa7ee31b7ff54304579db73e6.tar.gz emacs-c46c1d592e61fa6fa7ee31b7ff54304579db73e6.zip | |
Add some comments
Diffstat (limited to 'src')
| -rw-r--r-- | src/data.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/data.c b/src/data.c index ad5ee663d1d..f7602c2d602 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -907,8 +907,12 @@ Value, if non-nil, is a list (interactive SPEC). */) | |||
| 907 | { | 907 | { |
| 908 | Lisp_Object form = AREF (fun, COMPILED_INTERACTIVE); | 908 | Lisp_Object form = AREF (fun, COMPILED_INTERACTIVE); |
| 909 | if (VECTORP (form)) | 909 | if (VECTORP (form)) |
| 910 | /* The vector form is the new form, where the first | ||
| 911 | element is the interactive spec, and the second is the | ||
| 912 | command modes. */ | ||
| 910 | return list2 (Qinteractive, AREF (form, 0)); | 913 | return list2 (Qinteractive, AREF (form, 0)); |
| 911 | else | 914 | else |
| 915 | /* Old form -- just the interactive spec. */ | ||
| 912 | return list2 (Qinteractive, form); | 916 | return list2 (Qinteractive, form); |
| 913 | } | 917 | } |
| 914 | } | 918 | } |
| @@ -966,8 +970,10 @@ The value, if non-nil, is a list of mode name symbols. */) | |||
| 966 | { | 970 | { |
| 967 | Lisp_Object form = AREF (fun, COMPILED_INTERACTIVE); | 971 | Lisp_Object form = AREF (fun, COMPILED_INTERACTIVE); |
| 968 | if (VECTORP (form)) | 972 | if (VECTORP (form)) |
| 973 | /* New form -- the second element is the command modes. */ | ||
| 969 | return AREF (form, 1); | 974 | return AREF (form, 1); |
| 970 | else | 975 | else |
| 976 | /* Old .elc file -- no command modes. */ | ||
| 971 | return Qnil; | 977 | return Qnil; |
| 972 | } | 978 | } |
| 973 | #ifdef HAVE_MODULES | 979 | #ifdef HAVE_MODULES |