diff --git a/modules/lang/org/autoload/org.el b/modules/lang/org/autoload/org.el index 590866344..2d88a243d 100644 --- a/modules/lang/org/autoload/org.el +++ b/modules/lang/org/autoload/org.el @@ -1,5 +1,17 @@ ;;; org/org/autoload/org.el -*- lexical-binding: t; -*- +;; HACK A necessary hack because org requires a compilation step after being +;; cloned, and during that compilation a org-version.el is generated with these +;; two functions, which return the output of a 'git describe ...' call in the +;; repo's root. Of course, this command won't work in a sparse clone, and more +;; than that, initiating these compilation step is a hassle, so... +;;;###autoload (defun org-release () "9.3") +;;;###autoload (fset 'org-git-version #'ignore) + + +;; +;;; Helpers + (defun +org--get-property (name &optional bound) (save-excursion (let ((re (format "^#\\+%s:[ \t]*\\([^\n]+\\)" (upcase name)))) diff --git a/modules/lang/org/init.el b/modules/lang/org/init.el deleted file mode 100644 index 636d73b64..000000000 --- a/modules/lang/org/init.el +++ /dev/null @@ -1,9 +0,0 @@ -;;; lang/org/init.el -*- lexical-binding: t; -*- - -;; HACK A necessary hack because org requires a compilation step after being -;; cloned, and during that compilation a org-version.el is generated with these -;; two functions, which return the output of a 'git describe ...' call in the -;; repo's root. Of course, this command won't work in a sparse clone, and more -;; than that, initiating these compilation step is a hassle, so... -(fset 'org-release #'ignore) -(fset 'org-git-version #'ignore)