aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/data.c b/src/data.c
index 23b0e7c29d9..5894340aba3 100644
--- a/src/data.c
+++ b/src/data.c
@@ -1167,7 +1167,11 @@ The value, if non-nil, is a list of mode name symbols. */)
1167 fun = Fsymbol_function (fun); 1167 fun = Fsymbol_function (fun);
1168 } 1168 }
1169 1169
1170 if (COMPILEDP (fun)) 1170 if (SUBRP (fun))
1171 {
1172 return XSUBR (fun)->command_modes;
1173 }
1174 else if (COMPILEDP (fun))
1171 { 1175 {
1172 if (PVSIZE (fun) <= COMPILED_INTERACTIVE) 1176 if (PVSIZE (fun) <= COMPILED_INTERACTIVE)
1173 return Qnil; 1177 return Qnil;