Subject: bug#56981: 29.0.50; No org-loaddefs.el file could be found from where org.el is loaded

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 04 Aug 2022 18:42:25 +0200

Manuel Uberti via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <[email-masked]> writes:

> WARNING: No org-loaddefs.el file could be found from where org.el is loaded.
> You need to run "make" or "make autoloads" from Org lisp directory

Does the following patch fix the issue?

diff --git a/lisp/org/org.el b/lisp/org/org.el
index e62ee3203b..657f7dd80a 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -82,7 +82,7 @@ org-inlinetask-min-level
 (or (eq this-command 'eval-buffer)
     (condition-case nil
 	(load (concat (file-name-directory load-file-name)
-		      "org-loaddefs.el")
+		      "org-loaddefs")
 	      nil t t t)
       (error
        (message "WARNING: No org-loaddefs.el file could be found from where org.el is loaded.")