aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorEli Zaretskii2022-03-19 17:19:19 +0200
committerEli Zaretskii2022-03-19 17:19:19 +0200
commit6887bf555f12e2059f237862159e19deddf596e1 (patch)
tree465582b2ac45db1de297a6a80fa13b7bc2f9ea16 /src/data.c
parent9c68894399e928220192fd44efbd71a1ca116028 (diff)
parent71b8f1fc635d9bbe00ca89457065e0c83456ac43 (diff)
downloademacs-6887bf555f12e2059f237862159e19deddf596e1.tar.gz
emacs-6887bf555f12e2059f237862159e19deddf596e1.zip
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
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;