From 961cec0a7d0d300df4405215d0a0ece35c52b4c1 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 18 May 2022 01:22:18 +0200 Subject: [PATCH] Fix apropos-documentation with universal argument * lisp/apropos.el (apropos-documentation-check-elc-file): Look up .elc files in the load path (and don't bug out on deleted .elc files) (bug#55492). --- lisp/apropos.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/apropos.el b/lisp/apropos.el index 99706671792..428aeb15412 100644 --- a/lisp/apropos.el +++ b/lisp/apropos.el @@ -1055,7 +1055,10 @@ non-nil." (setq sepa (goto-char sepb))))) (defun apropos-documentation-check-elc-file (file) - (if (member file apropos-files-scanned) + (unless (file-name-absolute-p file) + (setq file (locate-library file))) + (if (or (member file apropos-files-scanned) + (not (file-exists-p file))) nil (let (symbol doc beg end this-is-a-variable) (setq apropos-files-scanned (cons file apropos-files-scanned)) -- 2.39.2