From: Glenn Morris Date: Fri, 20 Oct 2017 23:18:23 +0000 (-0400) Subject: Tweak Fdocumentation's error for an undefined function X-Git-Tag: emacs-26.0.91~509 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6a00914d6d4e4eaac4d4beea19570838a72a1e39;p=emacs.git Tweak Fdocumentation's error for an undefined function * src/doc.c (Fdocumentation): Restore the pre-25 behavior of signalling a void-function error for an undefined function. This seems cleaner than Emacs 25's "invalid-function: nil" error, which was (probably) an unintended consequence of changes to Findirect_function. --- 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'. */) } fun = Findirect_function (function, Qnil); + if (NILP (fun)) + xsignal1 (Qvoid_function, function); if (CONSP (fun) && EQ (XCAR (fun), Qmacro)) fun = XCDR (fun); if (SUBRP (fun))