emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 961cec0a7d: Fix apropos-documentation with universal argument


From: Lars Ingebrigtsen
Subject: master 961cec0a7d: Fix apropos-documentation with universal argument
Date: Tue, 17 May 2022 19:22:32 -0400 (EDT)

branch: master
commit 961cec0a7d0d300df4405215d0a0ece35c52b4c1
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 9970667179..428aeb1541 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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]