Subject: bug#55492: 29.0.50; apropos-documentation with universal argument shows an error

From: Stefan Monnier <[email-masked]>
Date: Tue, 17 May 2022 22:19:45 -0400

> Right.  Then perhaps the error is just in:
>
> (apropos-documentation-check-elc-file "simple.elc")
>
> It assumes a full file name, and doesn't look into the load path, which
> it could trivially do.

Looking up the `load-path` should be of last resort because it's not
reliable (e.g. when you have foo/bar/comp.elc it's not clear if it's
emacs-lisp/comp.elc or semantic/wisent/comp.elc).

> But before I fix that -- is (aref (symbol-function 'kill-current-buffer)
> 4) supposed to be the full file name or just the leaf name?

The file name should be absolute for all files except the preloaded
ones, and those should be relative to `lisp-directory` (because the
preloaded files are loaded before we know where the Lisp files will be
available at run-time).

        Stefan