emacs-diffs
[Top][All Lists]
Advanced

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

emacs-29 d93a439846f: * lisp/help-fns.el (find-lisp-object-file-name): F


From: Stefan Monnier
Subject: emacs-29 d93a439846f: * lisp/help-fns.el (find-lisp-object-file-name): Fix bug#62376 part2
Date: Thu, 23 Mar 2023 13:43:54 -0400 (EDT)

branch: emacs-29
commit d93a439846f03dfb2be28d6b5c2e963ef6be0c22
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * lisp/help-fns.el (find-lisp-object-file-name): Fix bug#62376 part2
    
    Nowadays `loaddefs.el` are byte-compiled, so adjust pattern accordingly
---
 lisp/help-fns.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index a81051cee03..a1fc2267564 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -437,7 +437,7 @@ the C sources, too."
       (setq file-name
            (locate-file file-name load-path '(".el" ".elc") 'readable)))
      ((and (stringp file-name)
-          (string-match "[.]*loaddefs.el\\'" file-name))
+          (string-match "[.]*loaddefs.elc?\\'" file-name))
       ;; An autoloaded variable or face.  Visit loaddefs.el in a buffer
       ;; and try to extract the defining file.  The following form is
       ;; from `describe-function-1' and `describe-variable'.



reply via email to

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