aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/doc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/doc.c b/src/doc.c
index 3286c12675a..e81740bfc1c 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -336,6 +336,8 @@ string is passed through `substitute-command-keys'. */)
336 } 336 }
337 337
338 fun = Findirect_function (function, Qnil); 338 fun = Findirect_function (function, Qnil);
339 if (NILP (fun))
340 xsignal1 (Qvoid_function, function);
339 if (CONSP (fun) && EQ (XCAR (fun), Qmacro)) 341 if (CONSP (fun) && EQ (XCAR (fun), Qmacro))
340 fun = XCDR (fun); 342 fun = XCDR (fun);
341 if (SUBRP (fun)) 343 if (SUBRP (fun))