summaryrefslogtreecommitdiff
path: root/lisp/help-fns.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2023-03-23 13:43:45 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2023-03-23 13:43:45 -0400
commitd93a439846f03dfb2be28d6b5c2e963ef6be0c22 (patch)
treee6bd40f0e1c0edf6edfb60566216d7364f2cae6c /lisp/help-fns.el
parentbe8147c53f9dd2d896c27d5b32bf4f38b0af9b3f (diff)
downloademacs-d93a439846f03dfb2be28d6b5c2e963ef6be0c22.tar.gz
* lisp/help-fns.el (find-lisp-object-file-name): Fix bug#62376 part2
Nowadays `loaddefs.el` are byte-compiled, so adjust pattern accordingly
Diffstat (limited to 'lisp/help-fns.el')
-rw-r--r--lisp/help-fns.el2
1 files changed, 1 insertions, 1 deletions
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'.