From 09d67f86d9beea6b49e15ff929439d9e0daa822c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 29 Jul 2019 12:25:35 +0200 Subject: [PATCH] lang/org: move org-release hack back to config.el We don't need it available *that* early. --- modules/lang/org/autoload/org.el | 9 --------- modules/lang/org/config.el | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/lang/org/autoload/org.el b/modules/lang/org/autoload/org.el index 723fe0352..0b26b94ac 100644 --- a/modules/lang/org/autoload/org.el +++ b/modules/lang/org/autoload/org.el @@ -1,14 +1,5 @@ ;;; lang/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 diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index d768c8b54..8a3f0c0f9 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -898,3 +898,12 @@ compelling reason, so..." (org-clock-load)) :config (add-hook 'kill-emacs-hook #'org-clock-save))) + + +;; 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... +(defun org-release () "9.3") +(fset 'org-git-version #'ignore)